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

Side by Side Diff: LayoutTests/fast/dom/shadow/shadow-tree-styles-select-host-expected.txt

Issue 317143002: Revert of Remove scoped styles. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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 | Annotate | Revision Log
OLDNEW
1 Test for issue 247275: shadow tree styles selects shadow host. 1 Test for issue 247275: shadow tree styles selects shadow host.
2 2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ". 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4 4
5 5
6 Test that tag selectors in a shadow tree cannot match without :host. 6 Test that tag selectors in a shadow tree cannot match without :host.
7 PASS borderColorOf('host') is "rgb(0, 0, 0)" 7 PASS borderColorOf('host') is "rgb(0, 0, 0)"
8 PASS borderColorOf('host-child') is "rgb(0, 0, 0)" 8 PASS borderColorOf('host-child') is "rgb(0, 0, 0)"
9 Test that * in a shadow tree cannot match without :host. 9 Test that * in a shadow tree cannot match without :host.
10 PASS borderColorOf('host') is not "rgb(0, 128, 0)" 10 PASS borderColorOf('host') is not "rgb(0, 128, 0)"
(...skipping 10 matching lines...) Expand all
21 Test that child selector with a shadow host and children of a shadow root of the shadow host works. 21 Test that child selector with a shadow host and children of a shadow root of the shadow host works.
22 PASS borderColorOf('divA') is "rgb(0, 0, 0)" 22 PASS borderColorOf('divA') is "rgb(0, 0, 0)"
23 PASS borderColorOf('divA-child') is "rgb(0, 0, 0)" 23 PASS borderColorOf('divA-child') is "rgb(0, 0, 0)"
24 PASS borderColorOf('host') is "rgb(0, 0, 0)" 24 PASS borderColorOf('host') is "rgb(0, 0, 0)"
25 PASS borderColorOf('host/divC') is "rgb(0, 128, 0)" 25 PASS borderColorOf('host/divC') is "rgb(0, 128, 0)"
26 PASS borderColorOf('host-child') is "rgb(0, 0, 0)" 26 PASS borderColorOf('host-child') is "rgb(0, 0, 0)"
27 Test that descendant selector with a shadow host and descendants of a shadow roo t of the shadow host works. 27 Test that descendant selector with a shadow host and descendants of a shadow roo t of the shadow host works.
28 PASS borderColorOf('host/spanD') is "rgb(255, 0, 0)" 28 PASS borderColorOf('host/spanD') is "rgb(255, 0, 0)"
29 Test the case where there are no styles in a contanining treescope. 29 Test the case where there are no styles in a contanining treescope.
30 PASS borderColorOf('host/target') is "rgb(0, 128, 0)" 30 PASS borderColorOf('host/target') is "rgb(0, 128, 0)"
31 Test the case where there exists a style scoped in a contanining treescope.
32 PASS borderColorOf('host') is "rgb(255, 0, 0)"
31 Test that style sharing is disabled when styles in shadow trees would match shad ow hosts. 33 Test that style sharing is disabled when styles in shadow trees would match shad ow hosts.
32 PASS borderColorOf('hostA') is "rgb(255, 0, 0)" 34 PASS borderColorOf('hostA') is "rgb(255, 0, 0)"
33 PASS borderColorOf('hostB') is "rgb(0, 128, 0)" 35 PASS borderColorOf('hostB') is "rgb(0, 128, 0)"
34 PASS successfullyParsed is true 36 PASS successfullyParsed is true
35 37
36 TEST COMPLETE 38 TEST COMPLETE
37 39
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698