File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -646,7 +646,11 @@ class StyleElementController extends NodeController<HTMLStyleElement> {
646646
647647class GlobalStyleElementController extends NodeController < HTMLStyleElement > {
648648 connected ( ) : void {
649- this . node . innerHTML = `* { ${ CUSTOM_PROPERTY_TYPE } : cq-normal; ${ CUSTOM_PROPERTY_NAME } : cq-none; }` ;
649+ const style = `* { ${ CUSTOM_PROPERTY_TYPE } : cq-normal; ${ CUSTOM_PROPERTY_NAME } : cq-none; }` ;
650+ this . node . innerHTML =
651+ typeof ( window as any ) . CSSLayerBlockRule === 'undefined'
652+ ? style
653+ : `@layer cq-polyfill-${ PER_RUN_UID } { ${ style } }` ;
650654 }
651655}
652656
Original file line number Diff line number Diff line change 77 }
88
99 @layer test-layer {
10+ # a {
11+ container-type : inline-size;
12+ }
13+
1014 @container (width > 0) {
1115 h1 {
1216 font-size : 20px ;
1317 }
1418 }
1519 }
16-
17- # a {
18- container-type : inline-size;
19- }
2020</ style >
2121< div id ="a ">
2222 < h1 > Ohai</ h1 >
You can’t perform that action at this time.
0 commit comments