From 205dc2fc80430066e9677bb326eb014a6ff53da2 Mon Sep 17 00:00:00 2001 From: Brandon McConnell Date: Tue, 9 May 2023 16:13:13 -0700 Subject: [PATCH] Extend current preflight `html` styles to support other root/host scopes Supports SVG root scope, ShadowDOM, and presumably other root scopes --- src/css/preflight.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/css/preflight.css b/src/css/preflight.css index fab875d95904..6d57b3f546e1 100644 --- a/src/css/preflight.css +++ b/src/css/preflight.css @@ -26,7 +26,7 @@ 6. Use the user's configured `sans` font-variation-settings by default. */ -html { +:root, :host { line-height: 1.5; /* 1 */ -webkit-text-size-adjust: 100%; /* 2 */ -moz-tab-size: 4; /* 3 */