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

Merged

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
@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
This means that relative width values are now correctly resolved when
calling `getComputedStyle()`.
@tcl3 tcl3 force-pushed the libweb_getcomputedstyle_relative_values branch from 5a06051 to 6418db4 Compare May 27, 2024 20:16
@tcl3 tcl3 marked this pull request as ready for review May 27, 2024 20:23
@github-actions github-actions bot added the 👀 pr-needs-review PR needs review from a maintainer or community member label May 27, 2024
@awesomekling awesomekling merged commit 0b0ad5c into SerenityOS:master May 28, 2024
12 of 13 checks passed
@github-actions github-actions bot removed the 👀 pr-needs-review PR needs review from a maintainer or community member label May 28, 2024
@tcl3 tcl3 deleted the libweb_getcomputedstyle_relative_values branch May 28, 2024 06:08
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

2 participants