Skip to content

Commit

Permalink
v12.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
romainmenke committed Dec 29, 2023
1 parent 1d2f04b commit 23b1868
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 25 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changes to @csstools/normalize.css

### 12.1.0 (December 29, 2023)

- Added: `text-size-adjust` [#25](https://github.com/csstools/normalize.css/issues/25)
- Fixed: group `pre` with `code`, `kbd`, `samp` [#24](https://github.com/csstools/normalize.css/issues/24)

### 12.0.0 (September 15, 2021)

- Changed: normalize.css no longer contributes specificity.
Expand Down
15 changes: 4 additions & 11 deletions normalize.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,13 @@

/**
* 1. Correct the line height in all browsers.
* 2. Prevent adjustments of font size after orientation changes in iOS.
*/

:where(html) {
line-height: 1.15; /* 1 */
-webkit-text-size-adjust: 100%; /* 2 */
text-size-adjust: 100%; /* 2 */
}

/* Sections
Expand Down Expand Up @@ -46,16 +49,6 @@
height: 0; /* 1 */
}

/**
* 1. Correct the inheritance and scaling of font size in all browsers.
* 2. Correct the odd `em` font sizing in all browsers.
*/

:where(pre) {
font-family: monospace, monospace; /* 1 */
font-size: 1em; /* 2 */
}

/* Text-level semantics
* ========================================================================== */

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

:where(code, kbd, samp) {
:where(code, kbd, pre, samp) {
font-family: monospace, monospace; /* 1 */
font-size: 1em; /* 2 */
}
Expand Down
15 changes: 4 additions & 11 deletions opinionated.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,13 @@

/**
* 1. Correct the line height in all browsers.
* 2. Prevent adjustments of font size after orientation changes in iOS.
*/

:where(html) {
line-height: 1.15; /* 1 */
-webkit-text-size-adjust: none; /* 2 */
text-size-adjust: none; /* 2 */
}

/* Sections
Expand Down Expand Up @@ -54,16 +57,6 @@
height: 0; /* 1 */
}

/**
* 1. Correct the inheritance and scaling of font size in all browsers.
* 2. Correct the odd `em` font sizing in all browsers.
*/

:where(pre) {
font-family: monospace, monospace; /* 1 */
font-size: 1em; /* 2 */
}

/* Text-level semantics
* ========================================================================== */

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

:where(code, kbd, samp) {
:where(code, kbd, pre, samp) {
font-family: monospace, monospace; /* 1 */
font-size: 1em; /* 2 */
}
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@csstools/normalize.css",
"version": "12.0.0",
"version": "12.1.0",
"description": "A cross-browser CSS foundation",
"author": "Jonathan Neal <[email protected]>",
"contributors": [
Expand Down

0 comments on commit 23b1868

Please sign in to comment.