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

Unified Diff: LayoutTests/fast/css/invalidation/shadow-add-sheet-content.html

Issue 1311463004: Invalidate style from shadow host, not root, to apply :host rules. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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
« no previous file with comments | « no previous file | LayoutTests/fast/css/invalidation/shadow-add-sheet-content-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/css/invalidation/shadow-add-sheet-content.html
diff --git a/LayoutTests/fast/css/invalidation/shadow-add-sheet-content.html b/LayoutTests/fast/css/invalidation/shadow-add-sheet-content.html
index a1bf5539172b50ad5f808779ff9a3c89b17109ea..e299bf99d9e554750c845541b6f8d91b4dc831c8 100644
--- a/LayoutTests/fast/css/invalidation/shadow-add-sheet-content.html
+++ b/LayoutTests/fast/css/invalidation/shadow-add-sheet-content.html
@@ -32,12 +32,13 @@
shouldBeEqualToString("getComputedStyle(outerSpan).color", "rgb(255, 0, 0)");
+ document.body.offsetTop;
var sheet = document.createElement("style");
sheet.appendChild(document.createTextNode("::content #outerSpan { color: green }"));
root2.appendChild(sheet);
if (window.internals)
- shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "9");
+ shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "5");
shouldBeEqualToString("getComputedStyle(outerSpan).color", "rgb(0, 128, 0)");
</script>
« no previous file with comments | « no previous file | LayoutTests/fast/css/invalidation/shadow-add-sheet-content-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698