Skip to content

Conversation

@Calme1709
Copy link
Contributor

Various improvements to the parsing and serialization of the background property and it's shorthands.

Gains us at least 200 WPT tests.

See individual commits for details.

Matches the behavior of parsing these longhands directly.
This is required after e937f5d - it went unnoticed until now since the
serialization is the same and the relevant code just fell back to it's
own defaults which were the same.
We can deduplicate some code by using `assemble_coordinated_value_list`,
also moves this to a method in `ComputedProperties` to be in line with
other values
Copy link
Member

@AtkinsSJ AtkinsSJ left a comment

Choose a reason for hiding this comment

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

A tiny nit, otherwise I think this is great. 👍

Updates the `position-serialization.html` test to be 2-valued so that
all cases are covered.
@AtkinsSJ AtkinsSJ enabled auto-merge (rebase) December 8, 2025 11:05
@AtkinsSJ AtkinsSJ merged commit 2331464 into LadybirdBrowser:master Dec 8, 2025
10 checks passed
@Calme1709 Calme1709 deleted the background-parsing branch December 8, 2025 21:20
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.

2 participants