Skip to content

[scroll-animations] Relative lengths are not allowed for the inset property on ViewTimelineOptions.#61266

Open
BorisChiou wants to merge 1 commit into
web-platform-tests:masterfrom
BorisChiou:scroll-animations/view-timeline-insets-relative-units
Open

[scroll-animations] Relative lengths are not allowed for the inset property on ViewTimelineOptions.#61266
BorisChiou wants to merge 1 commit into
web-platform-tests:masterfrom
BorisChiou:scroll-animations/view-timeline-insets-relative-units

Conversation

@BorisChiou

Copy link
Copy Markdown
Member

Per the discussion in w3c/csswg-drafts#13853 and w3c/csswg-drafts#13852, we should make ViewTimelineOptions.inset be consistent with rangeStart/rangeEnd:

"Restrict allowed values from the CSSNumericValue or DOMString input to absolute units as was done with DOMMatrix and IntersectionObservers."

So remove the testcase of relative lengths and expect them throw.

@BorisChiou

Copy link
Copy Markdown
Member Author

The test change proposal: web-platform-tests/interop#1304

…operty on ViewTimelineOptions.

Per the discussion in w3c/csswg-drafts#13853
and w3c/csswg-drafts#13852, we should make
ViewTimelineOptions.inset be consistent with rangeStart/rangeEnd:

"Restrict allowed values from the CSSNumericValue or DOMString input
to absolute units as was done with DOMMatrix and IntersectionObservers."

So remove the testcase of relative lengths and expect them throw.
@BorisChiou
BorisChiou force-pushed the scroll-animations/view-timeline-insets-relative-units branch from 0878cc2 to 25cc56a Compare July 13, 2026 22:45
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