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

LibWeb: Improve resolution of ResolvedCSSStyleDeclaration properties #24248

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

Conversation

tcl3
Copy link
Member

@tcl3 tcl3 commented May 6, 2024

The resolved value is now correctly calculated for all margin, padding and width properties of a ResolvedCSSStyleDeclaration.

This means the correct values are returned when these properties are accessed from a getComputedStyle() call.

This allows the following WPT tests to pass:

@tcl3 tcl3 requested a review from AtkinsSJ as a code owner May 6, 2024 22:36
@github-actions github-actions bot added the 👀 pr-needs-review PR needs review from a maintainer or community member label May 6, 2024
@@ -102,7 +102,7 @@ list-style-position: outside
list-style-type: disc
margin-block-end: 8px
margin-block-start: 8px
margin-bottom: 8px
margin-bottom: 16px
Copy link
Member Author

Choose a reason for hiding this comment

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

This appears to be incorrect, but I'm not sure whether this is due to something I've done, or some issue with margin calculation elsewhere.

The resolved value is now correctly calculated for all margin, padding
and width properties of a `ResolvedCSSStyleDeclaration`.

This means the correct values are returned when these properties are
accessed from a `getComputedStyle()` call.
@tcl3 tcl3 force-pushed the libweb_getcomputedstyle_relative_values branch from a3572f0 to 5a06051 Compare May 6, 2024 22:41
@tcl3 tcl3 marked this pull request as draft May 17, 2024 05:17
@github-actions github-actions bot removed the 👀 pr-needs-review PR needs review from a maintainer or community member label May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant