Skip to content

Commit 23b1868

Browse files
committed
v12.1.0
1 parent 1d2f04b commit 23b1868

5 files changed

Lines changed: 16 additions & 25 deletions

File tree

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changes to @csstools/normalize.css
22

3+
### 12.1.0 (December 29, 2023)
4+
5+
- Added: `text-size-adjust` [#25](https://github.com/csstools/normalize.css/issues/25)
6+
- Fixed: group `pre` with `code`, `kbd`, `samp` [#24](https://github.com/csstools/normalize.css/issues/24)
7+
38
### 12.0.0 (September 15, 2021)
49

510
- Changed: normalize.css no longer contributes specificity.

normalize.css

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,13 @@
33

44
/**
55
* 1. Correct the line height in all browsers.
6+
* 2. Prevent adjustments of font size after orientation changes in iOS.
67
*/
78

89
:where(html) {
910
line-height: 1.15; /* 1 */
11+
-webkit-text-size-adjust: 100%; /* 2 */
12+
text-size-adjust: 100%; /* 2 */
1013
}
1114

1215
/* Sections
@@ -46,16 +49,6 @@
4649
height: 0; /* 1 */
4750
}
4851

49-
/**
50-
* 1. Correct the inheritance and scaling of font size in all browsers.
51-
* 2. Correct the odd `em` font sizing in all browsers.
52-
*/
53-
54-
:where(pre) {
55-
font-family: monospace, monospace; /* 1 */
56-
font-size: 1em; /* 2 */
57-
}
58-
5952
/* Text-level semantics
6053
* ========================================================================== */
6154

@@ -81,7 +74,7 @@
8174
* 2. Correct the odd `em` font sizing in all browsers.
8275
*/
8376

84-
:where(code, kbd, samp) {
77+
:where(code, kbd, pre, samp) {
8578
font-family: monospace, monospace; /* 1 */
8679
font-size: 1em; /* 2 */
8780
}

opinionated.css

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,13 @@
33

44
/**
55
* 1. Correct the line height in all browsers.
6+
* 2. Prevent adjustments of font size after orientation changes in iOS.
67
*/
78

89
:where(html) {
910
line-height: 1.15; /* 1 */
11+
-webkit-text-size-adjust: none; /* 2 */
12+
text-size-adjust: none; /* 2 */
1013
}
1114

1215
/* Sections
@@ -54,16 +57,6 @@
5457
height: 0; /* 1 */
5558
}
5659

57-
/**
58-
* 1. Correct the inheritance and scaling of font size in all browsers.
59-
* 2. Correct the odd `em` font sizing in all browsers.
60-
*/
61-
62-
:where(pre) {
63-
font-family: monospace, monospace; /* 1 */
64-
font-size: 1em; /* 2 */
65-
}
66-
6760
/* Text-level semantics
6861
* ========================================================================== */
6962

@@ -89,7 +82,7 @@
8982
* 2. Correct the odd `em` font sizing in all browsers.
9083
*/
9184

92-
:where(code, kbd, samp) {
85+
:where(code, kbd, pre, samp) {
9386
font-family: monospace, monospace; /* 1 */
9487
font-size: 1em; /* 2 */
9588
}

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@csstools/normalize.css",
3-
"version": "12.0.0",
3+
"version": "12.1.0",
44
"description": "A cross-browser CSS foundation",
55
"author": "Jonathan Neal <[email protected]>",
66
"contributors": [

0 commit comments

Comments
 (0)