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

Unified Diff: LayoutTests/fast/dom/shadow/style-with-shadow-pseudo-element.html

Issue 1224673002: Implement proposed shadow tree cascade order. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Added documentation Created 5 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/dom/shadow/style-with-shadow-pseudo-element.html
diff --git a/LayoutTests/fast/dom/shadow/style-with-shadow-pseudo-element.html b/LayoutTests/fast/dom/shadow/style-with-shadow-pseudo-element.html
index c1b2b3f4422cef7273b6b207ab204d6f815dbc0a..72a703f9d32b8a44414d5807d54ca36942c03926 100644
--- a/LayoutTests/fast/dom/shadow/style-with-shadow-pseudo-element.html
+++ b/LayoutTests/fast/dom/shadow/style-with-shadow-pseudo-element.html
@@ -88,7 +88,7 @@ sandbox.appendChild(
createDOM('div', {'id': 'host'},
createShadowRoot(
createDOM('span', {'id': 'target'},
- document.createTextNode('green border, because of hat.'))))));
+ document.createTextNode('green border, because of ::shadow.'))))));
borderColorShouldBe('host/target', 'rgb(0, 128, 0)');
@@ -104,7 +104,7 @@ sandbox.appendChild(
createDOM('style', {},
document.createTextNode('span { border: 1px solid red; }')),
createDOM('span', {'id': 'target'},
- document.createTextNode('green border, because of hat.'))))));
+ document.createTextNode('green border, because of ::shadow.'))))));
borderColorShouldBe('host/target', 'rgb(0, 128, 0)');
@@ -119,10 +119,9 @@ sandbox.appendChild(
createDOM('style', {},
document.createTextNode('span#target { border: 1px solid red; }')),
createDOM('span', {'id': 'target'},
- document.createTextNode('green border, because of hat.'))))));
+ document.createTextNode('green border, because of ::shadow.'))))));
-// Need to clarify the spec, i.e. using specificity? Currently rgb(255,0,0).
-borderColorShouldBe('host/target', 'rgb(255, 0, 0)');
+borderColorShouldBe('host/target', 'rgb(0, 128, 0)');
cleanUp();
@@ -133,7 +132,7 @@ sandbox.appendChild(
createDOM('div', {'id': 'host'},
createShadowRoot(
createDOM('span', {'id': 'target'},
- document.createTextNode('green border, because of hat.'))))));
+ document.createTextNode('green border, because of ::shadow.'))))));
borderColorShouldBe('host/target', 'rgb(0, 128, 0)');
@@ -149,7 +148,7 @@ sandbox.appendChild(
document.createTextNode('div > span { border: 1px solid red; }')),
createDOM('div', {},
createDOM('span', {'id': 'target'},
- document.createTextNode('green border, because parent hat wins.')))))));
+ document.createTextNode('green border, because parent ::shadow wins.')))))));
borderColorShouldBe('host/target', 'rgb(0, 128, 0)');

Powered by Google App Engine
This is Rietveld 408576698