Make <ray-size> optional and its default value is 'closest-side'
Categories
(Core :: Layout, enhancement)
Tracking
()
Tracking | Status | |
---|---|---|
firefox112 | --- | fixed |
People
(Reporter: boris, Assigned: boris)
References
(Blocks 2 open bugs, )
Details
(Keywords: dev-doc-complete)
Attachments
(1 file)
Due to the spec change, <ray-size>
is optional now. We have to update the parser.
Assignee | ||
Updated•7 months ago
|
Assignee | ||
Comment 1•7 months ago
|
||
Per the spec update, the new syntax is:
ray() = ray( <angle> && <ray-size>? && contain? )
And for <ray-size>
:
"If no <ray-size> is specified it defaults to closest-side."
So <ray-size>
is optional and we omit it if it's default value, for
serialization.
By the way, offset=* properties are supported only in Gecko, so we don't
need a servo function to check the preference.
Updated•7 months ago
|
Assignee | ||
Updated•7 months ago
|
Assignee | ||
Comment 2•7 months ago
|
||
Note: we need to update MDN for offset-path syntax (https://developer.mozilla.org/en-US/docs/Web/CSS/offset-path).
Reference spec link: https://drafts.fxtf.org/motion/#ray-function.
Pushed by bchiou@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/6c84f9f0b88d Make <ray-size> optional and default to 'closest-side'. r=emilio
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/38840 for changes under testing/web-platform/tests
Comment 5•7 months ago
|
||
bugherder |
Upstream PR merged by moz-wptsync-bot
The doc updates on MDN for this feature can be tracked via this issue tracker: https://github.com/mdn/content/issues/25358.
Thanks a lot, Boris, for all your help understanding this feature behavior!
Description
•