Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / css / counters / counter-increment-not-reflected-on-stylechange.html
blob365857b451d78cf99f687505a15144f51562d2cd
1 <!DOCTYPE html>
2 <script src="../../../resources/js-test.js"></script>
3 <style>
4 #outer
6 counter-reset: c;
9 #outer > div:before
11 content: counter(c);
14 .active > div:before {
15 counter-increment: c;
18 .inactive > div:before {
19 counter-increment: none;
21 </style>
23 <div id="outer">
24 <div id="inner1"></div>
25 <div id="inner2"></div>
26 </div>
28 <script>
29 var outerDiv = document.getElementById("outer");
30 outerDiv.className = "inactive";
31 outerDiv.offsetTop;
32 outerDiv.className = "active";
34 shouldBeEqualToString("window.internals.counterValue(document.getElementById('inner1'))", "1");
35 shouldBeEqualToString("window.internals.counterValue(document.getElementById('inner2'))", "2");
36 </script>