Closed Bug 1598158 Opened 5 years ago Closed 9 months ago

[motion-1] Support offset-path: <url>

Categories

(Core :: CSS Transitions and Animations, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
118 Branch
Tracking Status
firefox118 --- fixed

People

(Reporter: boris, Assigned: boris)

References

(Blocks 4 open bugs, Regressed 1 open bug, )

Details

(Keywords: dev-doc-complete)

Attachments

(4 files)

Implement <url> for offset-path.

Keywords: dev-doc-needed
Blocks: 1598159
Severity: normal normal → S3 S3

This bug will presumably fix this interop-2023 test:
https://wpt.fyi/results/css/motion/offset-path-url.html

In layout, we build a default path("m 0 0") for now. We will implement
it later.

Besides, we don't support compositor animations for url().

Also, rename mIsClosedIntervals as mIsClosedLoop (and some other
similar renamings) to match the spec words.

Note: I also update offset-path-url-001.html because it seems its ref
html is incorrect per the current spec. We are using its <coord-box> (i.e.
the reference box of its containing block) as the viewport and user coordinate
system, so its offset-starting-position should be independent from its
current position from CSS reflow. The SVG shape element always provide the
offset starting position.

So I tweak offset-path-url-001.html a little bit to make it passed for all
browsers, and add some other tests to cover the case I mention above and
other cases.

Blocks: 1845390
Attachment #9345465 - Attachment description: Bug 1598158 - Resolve URL from SVG shape elements. → Bug 1598158 - Resolve URL to SVG shape elements.
Assignee: nobody → boris.chiou
Status: NEW → ASSIGNED
Blocks: 1847620
Blocks: 1847621
Pushed by bchiou@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/852440ba437b
Rename offset-path-url.html as offset-path-url-001.html. r=emilio
https://hg.mozilla.org/integration/autoland/rev/a48fa41db5cf
Support offset-path:url() in style. r=devtools-reviewers,emilio
https://hg.mozilla.org/integration/autoland/rev/f0f94c408338
Add IsClosedLoop() for SVGGeometryElement. r=emilio
https://hg.mozilla.org/integration/autoland/rev/aee04f35d4b0
Resolve URL to SVG shape elements. r=emilio
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/41375 for changes under testing/web-platform/tests
Upstream PR merged by moz-wptsync-bot

MDN doc updates for this feature can be tracked via this GitHub issue: https://github.com/mdn/content/issues/28846

Regressions: 1861999
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: