Skip to content

Commit 6316198

Browse files
committed
hide all before DSD polyfill does its work
1 parent 8d8e361 commit 6316198

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/index.css

+4-4
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ body {
3939
}
4040
}
4141

42-
/* TODO: Generate this for elements to hide Light DOM children in browsers
43-
that don't support Declarative Shadow DOM to avoid FOUC. */
44-
my-element:not(:defined) > template[shadowroot] ~ *,
45-
my-child:not(:defined) > template[shadowroot] ~ * {
42+
/* Make all template shadowroot invisible till polyfill converts it to
43+
* actual shadowroot. This is only for browsers that don't support
44+
* Declarative Shadow DOM */
45+
* > template[shadowroot] ~ * {
4646
display: none;
4747
}

0 commit comments

Comments
 (0)