Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

css-shadow-parts: fix ::part() when element also has @exportparts #35258

Merged
merged 1 commit into from Jul 28, 2022

Conversation

chromium-wpt-export-bot
Copy link
Collaborator

@chromium-wpt-export-bot chromium-wpt-export-bot commented Jul 28, 2022

CL:3610986 rearranges the loop in StyleResolver::MatchPseudoPartRules
to include the ::part() matching element’s own tree scope, so we can
consider :host::part() rules, but it erroneously maps part names
through @exportparts before moving to the scope directly above. As a
result, we start searching for ::part() rules with our forwarded part
names when we should be searching for rules with our own part names.

This patch defers mapping part names through @exportparts until after
the scope directly above the ::part() matching element.

Fixed: 1347634
Change-Id: Ibe369d0f9324fa9f45112d35d921511513b2b59e
Reviewed-on: https://chromium-review.googlesource.com/3791264
WPT-Export-Revision: 2555d69b7e352e06d955a6fab334f94861ccd7e0

Copy link
Collaborator

@wpt-pr-bot wpt-pr-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The review process for this patch is being conducted in the Chromium project.

CL:3610986 rearranges the loop in StyleResolver::MatchPseudoPartRules
to include the ::part() matching element’s own tree scope, so we can
consider :host::part() rules, but it erroneously maps part names
through @exportparts before moving to the scope directly above. As a
result, we start searching for ::part() rules with our forwarded part
names when we should be searching for rules with our own part names.

This patch defers mapping part names through @exportparts until after
the scope directly above the ::part() matching element.

Fixed: 1347634
Change-Id: Ibe369d0f9324fa9f45112d35d921511513b2b59e
@chromium-wpt-export-bot chromium-wpt-export-bot merged commit 60bc2a4 into master Jul 28, 2022
@chromium-wpt-export-bot chromium-wpt-export-bot deleted the chromium-export-cl-3791264 branch July 28, 2022 14:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants