From 5daad010a2f19c12b89f317ba9d2c8e4573210d7 Mon Sep 17 00:00:00 2001 From: Fritz Lin Date: Sat, 7 Nov 2015 19:20:52 +0800 Subject: [PATCH] Add comment addressing intentional duplicated monospace font https://github.com/necolas/normalize.css/issues/480 https://github.com/necolas/normalize.css/blob/2bdda84272650aedfb45d8abe11a6d177933a803/README.md#pre-code-kbd-samp --- CHANGELOG.md | 1 + normalize.css | 7 ++++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7797fe6..70fe149 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ * Ensure `mark` long-hand background declaration usage. * Remove color inheritance from form controls. * Address inconsistent styling of abbr[title]. +* Correct inheritance and scaling of font-size for preformatted text. === 3.0.3 (March 30, 2015) diff --git a/normalize.css b/normalize.css index 6b7e885..8debc1d 100644 --- a/normalize.css +++ b/normalize.css @@ -236,15 +236,16 @@ pre { } /** - * Address odd `em`-unit font size rendering in all browsers. + * 1. Correct inheritance and scaling of font-size for preformatted text. + * 2. Address odd `em`-unit font size rendering in all browsers. */ code, kbd, pre, samp { - font-family: monospace, monospace; - font-size: 1em; + font-family: monospace, monospace; /* 1 */ + font-size: 1em; /* 2 */ } /* Forms