Closed Bug 1818666 Opened 2 years ago Closed 2 years ago

Support offset-position in style system

Categories

(Core :: CSS Parsing and Computation, enhancement)

All
Unspecified
enhancement

Tracking

()

RESOLVED FIXED
112 Branch
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.

Severity: -- → S3
Priority: P3 → --

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: nobody → boris.chiou
Pushed by bchiou@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/383cb19a14e3 Support offset-position in the style system. r=emilio
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/38811 for changes under testing/web-platform/tests
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 112 Branch
Upstream PR merged by moz-wptsync-bot
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: