[css-shapes-1] Implement shape() function for offset-path
Categories
(Core :: CSS Parsing and Computation, enhancement)
Tracking
()
Tracking | Status | |
---|---|---|
firefox126 | --- | fixed |
People
(Reporter: boris, Assigned: boris)
References
(Blocks 2 open bugs)
Details
(Keywords: dev-doc-complete)
Attachments
(1 file)
Assignee | ||
Comment 1•2 years ago
|
||
We treat it as other basic shapes (excluding path(), which has some
special handling and it doesn't rely on the current layout position).
Therefore, we don't have any implementation for caching and we would like to
leave this part to Bug 1837042.
Also, add some more simple tests in css/motion to make sure we render it
properly.
Assignee | ||
Updated•2 years ago
|
Comment 4•2 years ago
|
||
bugherder |
Comment 6•2 years ago
|
||
:boris could you consider nominating this for a release note? (Process info)
We could include it in the nightly release notes.
Assignee | ||
Comment 7•2 years ago
|
||
Release Note Request (optional, but appreciated)
[Why is this notable]: This is a new feature on Firefox. We support shape() function on offset-path property now. It provides a better CSS syntax for path commands (compared with path(), which uses SVG Path string syntax).
[Affects Firefox for Android]: Yes
[Suggested wording]: Support shape()
function on offset-path
property.
[Links (documentation, blog post, etc)]:
https://drafts.csswg.org/css-shapes-2/#shape-function
https://drafts.fxtf.org/motion-1/#offset-path-property
Comment 8•2 years ago
|
||
Thanks, added to the Fx126 nightly release notes, please allow 30 minutes for the site to update.
Keeping the relnote-firefox flag as ? to keep it on the radar for inclusion in the final Fx126 release notes.
Hi Boris, could you confirm if the support for the shape()
function in offset-path
and in clip-path
will be available only in Nightly starting from release 126 (behind the layout.css.basic-shape-shape.enabled
preference)?
Assignee | ||
Comment 10•1 years ago
|
||
(In reply to Dipika from comment #9)
Hi Boris, could you confirm if the support for the
shape()
function inoffset-path
and inclip-path
will be available only in Nightly starting from release 126 (behind thelayout.css.basic-shape-shape.enabled
preference)?
Yes. Since Fx126, and until now, we support shape function only on Nightly, behind layout.css.basic-shape-shape.enabled
.
Updated•1 years ago
|
Comment 11•1 year ago
|
||
MDN docs have been updated and the shape()
function documentation is now available. The related work can be tracked via the doc issue https://github.com/mdn/content/issues/33081.
Thanks a lot Boris for your timely help with all my questions!
Comment 12•1 year ago
|
||
Removing from the Nightly release notes as this has been included for more than 3 cycles now.
Comment 13•4 months ago
|
||
--> updating title and metabug to point at css-shapes-1 rather than 2, since this moved from css-shapes-2 to css-shapes-1 (per csswg discussion). (The spec text is now here: https://drafts.csswg.org/css-shapes-1/#shape-function)
Description
•