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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/css/cue-serialize.html

Issue 1574323003: Split compound selector after consume finished. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@upload-base
Patch Set: Removed obsolete serialization hack and fixed unit tests. Created 4 years, 11 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
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <style> 2 <style>
3 ::cue {} 3 ::cue {}
4 ::cue(c) {} 4 ::cue(c) {}
5 ::cue(c, .class, #id:past, i:future) {} 5 ::cue(c, .class, #id:past, i:future) {}
6 </style> 6 </style>
7 <script src="../../resources/js-test.js"></script> 7 <script src="../../resources/js-test.js"></script>
8 <script> 8 <script>
9 description("Check serialization of ::cue and ::cue()"); 9 description("Check serialization of ::cue and ::cue()");
10 10
11 var rules = document.styleSheets[0].cssRules; 11 var rules = document.styleSheets[0].cssRules;
12 12
13 shouldBe("rules.length", "3"); 13 shouldBe("rules.length", "3");
14 shouldBe("rules[0].selectorText", "'*::cue'"); 14 shouldBe("rules[0].selectorText", "'::cue'");
15 shouldBe("rules[1].selectorText", "'*::cue(c)'"); 15 shouldBe("rules[1].selectorText", "'::cue(c)'");
16 shouldBe("rules[2].selectorText", "'*::cue(c,.class,#id:past,i:future)'"); 16 shouldBe("rules[2].selectorText", "'::cue(c,.class,#id:past,i:future)'");
17 </script> 17 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698