Skip to content

Commit bbc4018

Browse files
brandonmcconnellreinink
authored andcommitted
Update Preflight html styles to include shadow DOM :host pseudo-class (#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 <[email protected]>
1 parent 9a8ef8d commit bbc4018

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1717
- Add `has-*` variants for `:has(...)` pseudo-class ([#11318](https://github.com/tailwindlabs/tailwindcss/pull/11318))
1818
- 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))
1919
- Extend default `opacity` scale to include all steps of 5 ([#11832](https://github.com/tailwindlabs/tailwindcss/pull/11832))
20+
- Update Preflight `html` styles to include shadow DOM `:host` pseudo-class ([#11200](https://github.com/tailwindlabs/tailwindcss/pull/11200))
2021

2122
## [3.3.6] - 2023-12-04
2223

src/css/preflight.css

+2-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@
2626
6. Use the user's configured `sans` font-variation-settings by default.
2727
*/
2828

29-
html {
29+
html,
30+
:host {
3031
line-height: 1.5; /* 1 */
3132
-webkit-text-size-adjust: 100%; /* 2 */
3233
-moz-tab-size: 4; /* 3 */

0 commit comments

Comments
 (0)