3 body:not(.ready) #content { color: red; }
7 var sr
= document
.getElementById('host').createShadowRoot();
8 var style
= document
.createElement('style');
9 style
.innerHTML
= "span { color: red; }";
11 // Finish style recalc.
12 document
.body
.offsetLeft
;
14 // Invoke StyleInvalidator.
15 document
.body
.className
= 'ready';
17 // Add a new stylesheet to pending stylesheets.
18 sr
.appendChild(style
);
20 // Finish adding all pending stylesheets via ensureUpdateRuleFeatureSet.
21 // c.f. Element::attributeChanged()
22 style
.setAttribute('test', 'test');