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

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

Issue 1774113002: Move Shadow DOM V1 tests from fast/dom/shadow to shadow-dom (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 9 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 <script src='../../../resources/testharness.js'></script> 2 <script src='../resources/testharness.js'></script>
3 <script src='../../../resources/testharnessreport.js'></script> 3 <script src='../resources/testharnessreport.js'></script>
4 <style id="style1"> 4 <style id="style1">
5 ::slotted { display: block; } /* invalid - no parameter */ 5 ::slotted { display: block; } /* invalid - no parameter */
6 ::slotted() { display: block; } /* invalid - empty parameter */ 6 ::slotted() { display: block; } /* invalid - empty parameter */
7 ::slotted(*) { display: block; } 7 ::slotted(*) { display: block; }
8 *::slotted(*) { display: block; } 8 *::slotted(*) { display: block; }
9 ::slotted(div) { display: block; } /* expects universal selector (*) on the left in cssText */ 9 ::slotted(div) { display: block; } /* expects universal selector (*) on the left in cssText */
10 ::slotted( div) { display: block; } /* allow a space on left */ 10 ::slotted( div) { display: block; } /* allow a space on left */
11 ::slotted(div ) { display: block; } /* allow a space on right */ 11 ::slotted(div ) { display: block; } /* allow a space on right */
12 ::slotted(div::before) { display: block; } /* having a pseudo element in () is i nvalid */ 12 ::slotted(div::before) { display: block; } /* having a pseudo element in () is i nvalid */
13 13
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 "div + slot::slotted(div) { color: red; }", 56 "div + slot::slotted(div) { color: red; }",
57 "span::slotted(*) { color: red; }" 57 "span::slotted(*) { color: red; }"
58 ]; 58 ];
59 59
60 for (var i = 0; i < expectedCSSTexts.length; ++i) 60 for (var i = 0; i < expectedCSSTexts.length; ++i)
61 assert_equals(cssRules.item(i).cssText, expectedCSSTexts[i]); 61 assert_equals(cssRules.item(i).cssText, expectedCSSTexts[i]);
62 assert_equals(cssRules.length, expectedCSSTexts.length); 62 assert_equals(cssRules.length, expectedCSSTexts.length);
63 63
64 }, "Test for cssText of '::slotted' rule."); 64 }, "Test for cssText of '::slotted' rule.");
65 </script> 65 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698