Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / css / invalidation / targeted-attribute-scope.html
blob88738294211735f65467a9be334a9a1ac1489da1
1 <!DOCTYPE html>
2 <script src="../../../resources/js-test.js"></script>
3 <style>
4 .inner1 [attr] { color: red; }
5 .inner2 .nomatch { color: red; }
6 </style>
7 <div id="outer">
8 <div id="inner1">
9 <div></div>
10 </div>
11 <div id="inner2">
12 <div attr></div>
13 </div>
14 </div>
15 <script>
16 description("Test invalidation set scope for attribute features.");
18 document.body.offsetLeft; // force style recalc.
20 document.getElementById("inner1").className = "inner1";
21 document.getElementById("inner2").className = "inner2";
22 if (window.internals)
23 shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "0");
24 </script>