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

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

Issue 208933006: Only :host and :ancestor should ever match the host in a ShadowRoot (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add a test for :first-child too 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 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)"
11 PASS borderColorOf('host-child') is "rgb(0, 0, 0)" 11 PASS borderColorOf('host-child') is "rgb(0, 0, 0)"
12 Test that :not(*) in a shadow tree can match without :host. 12 Test that :not(*) in a shadow tree cannot match without :host.
13 PASS borderColorOf('host') is "rgb(0, 128, 0)" 13 PASS borderColorOf('host') is "rgb(0, 0, 0)"
14 PASS borderColorOf('host-child') is "rgb(0, 0, 0)" 14 PASS borderColorOf('host-child') is "rgb(0, 0, 0)"
15 Test that :first-child in a shadow tree cannot match without :host.
16 PASS borderColorOf('host') is "rgb(0, 0, 0)"
15 Test that styles in a containing treescope wins if specificities are the same. 17 Test that styles in a containing treescope wins if specificities are the same.
16 PASS borderColorOf('host') is "rgb(0, 128, 0)" 18 PASS borderColorOf('host') is "rgb(0, 128, 0)"
17 Test that rules which has higher specificity win. 19 Test that rules which has higher specificity win.
18 PASS borderColorOf('host') is "rgb(255, 0, 0)" 20 PASS borderColorOf('host') is "rgb(255, 0, 0)"
19 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.
20 PASS borderColorOf('divA') is "rgb(0, 0, 0)" 22 PASS borderColorOf('divA') is "rgb(0, 0, 0)"
21 PASS borderColorOf('divA-child') is "rgb(0, 0, 0)" 23 PASS borderColorOf('divA-child') is "rgb(0, 0, 0)"
22 PASS borderColorOf('host') is "rgb(0, 0, 0)" 24 PASS borderColorOf('host') is "rgb(0, 0, 0)"
23 PASS borderColorOf('host/divC') is "rgb(0, 128, 0)" 25 PASS borderColorOf('host/divC') is "rgb(0, 128, 0)"
24 PASS borderColorOf('host-child') is "rgb(0, 0, 0)" 26 PASS borderColorOf('host-child') is "rgb(0, 0, 0)"
25 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.
26 PASS borderColorOf('host/spanD') is "rgb(255, 0, 0)" 28 PASS borderColorOf('host/spanD') is "rgb(255, 0, 0)"
27 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.
28 PASS borderColorOf('host/target') is "rgb(0, 128, 0)" 30 PASS borderColorOf('host/target') is "rgb(0, 128, 0)"
29 Test the case where there exists a style scoped in a contanining treescope. 31 Test the case where there exists a style scoped in a contanining treescope.
30 PASS borderColorOf('host') is "rgb(255, 0, 0)" 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
« no previous file with comments | « LayoutTests/fast/dom/shadow/shadow-tree-styles-select-host.html ('k') | Source/core/css/CSSParserValues.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698