15 document
.body
.offsetTop
;
17 var foo
= document
.createElement("div");
19 foo
.innerHTML
= "<div id=bar><div id=baz>This should be blue.</div></div>";
21 // Append foo but not attach it.
24 // Schedule invalidation on bar which sets childNeedsStyleInvalidation on foo.
25 bar
.setAttribute("attr", "attr");
27 // Remove from the tree and clear all invalidation bits, but foo still has them
28 // since it's not in the tree.
30 document
.body
.offsetTop
;
32 // Add foo back and attach it.
34 document
.body
.offsetTop
;
36 // Schedule invalidation, but it won't get above foo since the bits are
38 baz
.className
= "baz";