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

Unified Diff: LayoutTests/fast/css/style-scoped/style-scoped-with-important-rule-expected.txt

Issue 216543002: Revert of Remove applyAuthorStyles flag from ShadowRoot. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/css/style-scoped/style-scoped-with-important-rule-expected.txt
diff --git a/LayoutTests/fast/css/style-scoped/style-scoped-with-important-rule-expected.txt b/LayoutTests/fast/css/style-scoped/style-scoped-with-important-rule-expected.txt
index 65a5f11dca53cfff278d30e9f40c3f6e4445ffe1..fdb7af8cf6c366c28e1c2d5059ec1dc834c28432 100644
--- a/LayoutTests/fast/css/style-scoped/style-scoped-with-important-rule-expected.txt
+++ b/LayoutTests/fast/css/style-scoped/style-scoped-with-important-rule-expected.txt
@@ -1,3 +1,4 @@
+CONSOLE WARNING: 'ShadowRoot.applyAuthorStyles' is deprecated.
Test that rules in an inner scoped stylesheet don't override !important rules declared in an outer scoped stylesheet.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
@@ -15,6 +16,12 @@
PASS getComputedStyle(target5).borderColor is "rgb(0, 255, 0)"
Case6: The target element has matched important rules. One is declared in an author stylesheet (not scoped) and the other is declared in a scoped stylesheet.
PASS getComputedStyle(target6).borderColor is "rgb(0, 0, 255)"
+Case7: The target element has any matched important rule declared in an outer scoped stylesheet. The element is in a shadow dom tree whose shadow root has apply-author-styles true. The shadow dom tree has any other normal rules which match the element.
+PASS getComputedStyle(target7).borderColor is "rgb(0, 128, 0)"
+Case8: The target element in a shadow dom tree has any matched important rule declared in an outer scoped stylesheet in an enclosing shadow dom tree. The target element's shadow root has apply-author-styles true.
+PASS getComputedStyle(target8).borderColor is "rgb(0, 128, 0)"
+Case8': The target element is in a shadow dom tree. An enclosing shadow dom tree has some stylesheet which declares an important rule. The target element's shadow root has apply-author-styles false.
+PASS getComputedStyle(target8).borderColor is "rgb(0, 0, 255)"
PASS successfullyParsed is true
TEST COMPLETE

Powered by Google App Engine
This is Rietveld 408576698