Skip to content

Commit

Permalink
Update Preflight html styles to include shadow DOM :host pseudo-c…
Browse files Browse the repository at this point in the history
…lass (#11200)

* Extend current preflight `html` styles to support other root/host scopes

Supports SVG root scope, ShadowDOM, and presumably other root scopes

* Replace `:root` with `html`

* Update tests

* Update changelog

---------

Co-authored-by: Jonathan Reinink <jonathan@reinink.ca>
  • Loading branch information
2 people authored and thecrypticace committed Dec 5, 2023
1 parent 9a8ef8d commit bbc4018
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Add `has-*` variants for `:has(...)` pseudo-class ([#11318](https://github.com/tailwindlabs/tailwindcss/pull/11318))
- Add `text-wrap` utilities including `text-balance` and `text-pretty` ([#11320](https://github.com/tailwindlabs/tailwindcss/pull/11320), [#12031](https://github.com/tailwindlabs/tailwindcss/pull/12031))
- Extend default `opacity` scale to include all steps of 5 ([#11832](https://github.com/tailwindlabs/tailwindcss/pull/11832))
- Update Preflight `html` styles to include shadow DOM `:host` pseudo-class ([#11200](https://github.com/tailwindlabs/tailwindcss/pull/11200))

## [3.3.6] - 2023-12-04

Expand Down
3 changes: 2 additions & 1 deletion src/css/preflight.css
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
6. Use the user's configured `sans` font-variation-settings by default.
*/

html {
html,
:host {
line-height: 1.5; /* 1 */
-webkit-text-size-adjust: 100%; /* 2 */
-moz-tab-size: 4; /* 3 */
Expand Down

0 comments on commit bbc4018

Please sign in to comment.