Skip to content

Use embedded stylesheet for <details> element #52853

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

servo-wpt-sync
Copy link
Collaborator

Instead of injecting the style in <details> shadow tree for each update, we attach an embedded stylesheet layout/ stylesheet/details.css for that shadow DOM. The embedded stylesheet is introduced with it's parsing utilities in the shared components/shared/script_layout/lib.rs between layout and script.

All things considered, it is better to implement the styles inside UA stylesheet. But we will need to support shadow-scoped UA style sheet, as detailed in the discussion.

Testing: No WPT Test Regression
Reviewed in servo/servo#36994

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 Servo project.

Signed-off-by: stevennovaryo <[email protected]>
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.

3 participants