Closed Bug 1820071 Opened 1 year ago Closed 1 year ago

Make <ray-size> optional and its default value is 'closest-side'

Categories

(Core :: Layout, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
112 Branch
Tracking Status
firefox112 --- fixed

People

(Reporter: boris, Assigned: boris)

References

(Blocks 1 open bug, )

Details

(Keywords: dev-doc-complete)

Attachments

(1 file)

Due to the spec change, <ray-size> is optional now. We have to update the parser.

Severity: -- → S3

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.

Assignee: nobody → boris.chiou
Status: NEW → ASSIGNED
Keywords: dev-doc-needed

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
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 112 Branch
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!

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

Attachment

General

Created:
Updated:
Size: