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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/dom/shadow/content-pseudo-element-css-text.html

Issue 1587643004: Restrict use of pseudo elements within compound. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@valid-selectors
Patch Set: Workaround for invalid selectors in UA style. 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/dom/shadow/content-pseudo-element-css-text-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
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../../../resources/js-test.js"></script> 4 <script src="../../../resources/js-test.js"></script>
5 <style id="style1"> 5 <style id="style1">
6 .foo::content div .bar::before { display: block; } 6 .foo::content div .bar::before { display: block; }
7 ::content { display: block; } 7 ::content { display: block; }
8 div content::content div content::content div.green { color: green; } 8 div content::content div content::content div.green { color: green; }
9 *::content * { color: blue; } 9 *::content * { color: blue; }
10 div::shadow::shadow::content { } 10 div::shadow::shadow::content { }
11 </style> 11 </style>
12 </head> 12 </head>
13 <script> 13 <script>
14 description("Test for cssText of '::content' rule."); 14 description("Test for cssText of '::content' rule.");
15 shouldBeEqualToString("document.getElementById('style1').sheet.cssRules.item(0). cssText", ".foo::content div .bar::before { display: block; }"); 15 shouldBeEqualToString("document.getElementById('style1').sheet.cssRules.item(0). cssText", ".foo::content div .bar::before { display: block; }");
16 shouldBeEqualToString("document.getElementById('style1').sheet.cssRules.item(1). cssText", "::content { display: block; }"); 16 shouldBeEqualToString("document.getElementById('style1').sheet.cssRules.item(1). cssText", "::content { display: block; }");
17 shouldBeEqualToString("document.getElementById('style1').sheet.cssRules.item(2). cssText", "div content::content div content::content div.green { color: green; } "); 17 shouldBeEqualToString("document.getElementById('style1').sheet.cssRules.item(2). cssText", "div content::content div content::content div.green { color: green; } ");
18 shouldBeEqualToString("document.getElementById('style1').sheet.cssRules.item(3). cssText", "::content * { color: blue; }"); 18 shouldBeEqualToString("document.getElementById('style1').sheet.cssRules.item(3). cssText", "::content * { color: blue; }");
19 shouldBeEqualToString("document.getElementById('style1').sheet.cssRules.item(4). cssText", "div::shadow::shadow::content { }"); // Should be dropped, really. 19 shouldBe("document.getElementById('style1').sheet.cssRules.length", "4");
20 </script> 20 </script>
21 </html> 21 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/dom/shadow/content-pseudo-element-css-text-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698