Skip to content

Conversation

@Calme1709
Copy link
Contributor

According to https://drafts.csswg.org/cssom/#serializing-css-values (step 1.2) shorthands should only be contracted if they can exactly represent the values of all it's longhands - that was not the case for these tests. Take for example the test which expected

scroll-timeline-name: --a, --b, --c;
scroll-timeline-axis: inline, inline;

to be serialized as

scroll-timeline: --a inline, --b inline, --c inline;

The serialized value actually represents the longhand value for scroll-timeline-axis of inline, inline, line (3 elements instead of the original 2).

This matches the behavior of Chrome & Firefox.

…nds have dissimilar cardinality

According to https://drafts.csswg.org/cssom/#serializing-css-values (step
1.2) shorthands should only be contracted if they can exactly represent
the values of all it's longhands - that was not the case for these
tests. Take for example the test which expected

```css
scroll-timeline-name: --a, --b, --c;
scroll-timeline-axis: inline, inline;
```

to be serialized as

```css
scroll-timeline: --a inline, --b inline, --c inline;
```

The serialized value actually represents the longhand value for
`scroll-timeline-axis` of `inline, inline, line` (3 elements instead of
the original 2).

This matches the behavior of Chrome & Firefox.
Calme1709 added a commit to Calme1709/ladybird that referenced this pull request Nov 23, 2025
The remaining failing tests in scroll-timeline-shorthand.html are due to
either:
 a) incorrect tests, see web-platform-tests/wpt#56181 or;
 b) a wider issue where we collapse coordinating value list longhand
properties to a single value when we shouldn't.
Calme1709 added a commit to Calme1709/ladybird that referenced this pull request Nov 23, 2025
The remaining failing tests in view-timeline-shorthand.html are due to
either:
 a) incorrect tests, see web-platform-tests/wpt#56181 or;
 b) a wider issue where we collapse coordinating value list longhand
properties to a single value when we shouldn't.
Calme1709 added a commit to Calme1709/ladybird that referenced this pull request Nov 23, 2025
The remaining failing tests in scroll-timeline-shorthand.html are due to
either:
 a) incorrect tests, see web-platform-tests/wpt#56181 or;
 b) a wider issue where we collapse coordinating value list longhand
properties to a single value when we shouldn't.
Calme1709 added a commit to Calme1709/ladybird that referenced this pull request Nov 23, 2025
The remaining failing tests in view-timeline-shorthand.html are due to
either:
 a) incorrect tests, see web-platform-tests/wpt#56181 or;
 b) a wider issue where we collapse coordinating value list longhand
properties to a single value when we shouldn't.
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