Skip to content

Commit fe79b60

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 9fbf934 commit fe79b60

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
@@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1313
- Add `has-*` variants for `:has(...)` pseudo-class ([#11318](https://github.com/tailwindlabs/tailwindcss/pull/11318))
1414
- 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))
1515
- Extend default `opacity` scale to include all steps of 5 ([#11832](https://github.com/tailwindlabs/tailwindcss/pull/11832))
16+
- Update Preflight `html` styles to include shadow DOM `:host` pseudo-class ([#11200](https://github.com/tailwindlabs/tailwindcss/pull/11200))
1617

1718

1819
## [3.3.6] - 2023-12-04

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)