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

Issue 102953007: Selectors in styles in shadowRoots should match in all of the host's shadowRoots. (Closed)

Created:
7 years ago by tasak
Modified:
6 years, 7 months ago
Reviewers:
esprehn, dglazkov
CC:
blink-reviews, dglazkov+blink, apavlov+blink_chromium.org, darktears
Visibility:
Public.

Description

Selectors in styles in shadowRoots should match in all of the host's shadowRoots. Styles in shadow trees hosted by the same shadow host has the same scoping node, i.e. the shadow host. So the styles can match elements in all the shadow trees, i.e. (1) the styles should be checked when any element in a shadow tree hosted by the shadow host, (2) the styles should have the same cascade scope, (3) the style in older shadow tree has lower priority than the style in younger shadow tree (cascade order). The document for this patch is: https://docs.google.com/document/d/1qMsnHn9-dhkcDvoI-B1BR2yQ0RdWpWoZm6M5mU5gYgc/edit?usp=sharing BUG=311717 TEST=fast/dom/shadow/style-in-shadow-matches-elements-in-all-sibling-shadows.html

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : Rebased #

Patch Set 4 : Fixed @keyframes regression #

Total comments: 6

Patch Set 5 : #

Messages

Total messages: 7 (0 generated)
tasak
I will write a document to explain this patch.
7 years ago (2013-12-12 09:13:12 UTC) #1
tasak
I added google docs link (about this patch) to the description.
7 years ago (2013-12-16 09:13:01 UTC) #2
tasak
6 years, 11 months ago (2014-01-10 19:51:32 UTC) #3
tasak
Would you review this CL?
6 years, 11 months ago (2014-01-16 04:59:45 UTC) #4
dglazkov
lgtm https://codereview.chromium.org/102953007/diff/90001/Source/core/css/resolver/ScopedStyleResolver.h File Source/core/css/resolver/ScopedStyleResolver.h (right): https://codereview.chromium.org/102953007/diff/90001/Source/core/css/resolver/ScopedStyleResolver.h#newcode85 Source/core/css/resolver/ScopedStyleResolver.h:85: // Always ++cascadeScope if style scoped. "++cascadeScope" lacks ...
6 years, 11 months ago (2014-01-16 17:31:31 UTC) #5
tasak
Thank you for reviewing. I'm now looking at spec discussion https://www.w3.org/Bugs/Public/show_bug.cgi?id=23636. If the result is ...
6 years, 11 months ago (2014-01-20 03:50:05 UTC) #6
dglazkov
6 years, 11 months ago (2014-01-21 16:46:25 UTC) #7
Yes, Elliott and Scott ended up resolving this as wontfix. Thank you for your
work :)

Powered by Google App Engine
This is Rietveld 408576698