Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(74)

Side by Side Diff: LayoutTests/fast/css/counters/counter-increment-not-reflected-on-stylechange.html

Issue 1185573004: CSS Counters not properly updated on style changes (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | LayoutTests/fast/css/counters/counter-increment-not-reflected-on-stylechange-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
esprehn 2015/06/19 22:51:50 We usually leave out html, head and body.
ramya.v 2015/06/22 04:04:35 Done.
4 <script src="../../../resources/js-test.js"></script>
5 <style>
6 #outer
7 {
8 counter-reset: c;
9 }
10
11 #outer > div:before
12 {
13 content: counter(c);
14 }
15
16 .active > div:before {
17 counter-increment: c;
18 }
19
20 .inactive > div:before {
21 counter-increment: none;
22 }
23 </style>
24 </head>
25 <body>
26 <div id="outer">
27 <div id="inner1"></div>
28 <div id="inner2"></div>
29 </div>
30 <script>
31 var outerDiv = document.getElementById("outer");
32 outerDiv.className = "inactive";
33 outerDiv.offsetTop;
34 outerDiv.className = "active";
35
36 shouldBe("window.internals.counterValue(document.getElementById('inner1' ))", "'1'");
esprehn 2015/06/19 22:51:50 shouldBeEqualToString()
ramya.v 2015/06/22 04:04:35 Done.
37 shouldBe("window.internals.counterValue(document.getElementById('inner2' ))", "'2'");
esprehn 2015/06/19 22:51:50 ditto
ramya.v 2015/06/22 04:04:35 Done.
38 </script>
39 </body>
40 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/css/counters/counter-increment-not-reflected-on-stylechange-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698