Support offset-position in style system
Categories
(Core :: CSS Parsing and Computation, enhancement)
Tracking
()
Tracking | Status | |
---|---|---|
firefox112 | --- | fixed |
People
(Reporter: boris, Assigned: boris)
References
Details
Attachments
(1 file)
It seems Chromium and Webkit support offset-position
in the style system but not fully use it in motion transform, e.g. Webkit bug: https://bugs.webkit.org/show_bug.cgi?id=240272.
offset-position
is used for ray()
function and some <basic-shape>
s, but not for path()
function and others. In order to improve the interop score for [motion-1], we can support offset-position
in the style system first and then use other separate bugs to apply offset-position
for offset-path
values which need it.
Assignee | ||
Updated•2 years ago
|
Assignee | ||
Comment 1•2 years ago
|
||
Also, we make it animatable but not apply it to the motion transform for
now (so it works for getComputedStyle but doesn't have rendering result).
Per spec: https://w3c.github.io/csswg-drafts/css-values/#calc-serialize,
we tweak the WPT to let calc() serialize the percentage first, and maintain
zero-valued terms, i.e. 0%. (We are doing the same thing as
offset-anchor, so it should be fine with other browsers.)
Besides, I tweak the serialization of shorthand a little bit so we match
the implementation of WebKit.
Assignee | ||
Updated•2 years ago
|
Comment 4•2 years ago
|
||
bugherder |
Description
•