Closed Bug 1899949 Opened 5 months ago Closed 5 months ago

Implement parsing of CSS 'position-try-options' property

Categories

(Core :: CSS Parsing and Computation, enhancement)

enhancement

Tracking

()

RESOLVED FIXED

People

(Reporter: jwatt, Assigned: jwatt)

References

(Blocks 1 open bug)

Details

(Whiteboard: [anchorpositioning:m1])

Attachments

(3 files)

No description provided.
Depends on: 1900195
Depends on: 1900208

Emilio, is there somehow a way to preserve the order of flags when #[css(bitflags is used to store them? I'm using bitflags for PositionTryOptionsTryTactic, but when test_valid_value is called in position-try-options-parsing.html, an argument for serializedValue is not passed, which means that the canonical order of the keywords is expected to be the order in which they were specified.

This must mean that Chrome supports preserving keyword ordering, and I'm guessing we've encountered this issue before.

Flags: needinfo?(emilio)

No, the right thing to do is serializing in the canonical ordering. Canonical ordering is the order in which they appear in the CSS spec. If chrome is serializing using specified order instead of canonical, it's a bug in chrome.

Flags: needinfo?(emilio)
Blocks: 1900234
Type: task → enhancement
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/fd33c3d00f8b Add the ability to have a custom parse function to derived variants. r=jwatt
Pushed by jwatt@jwatt.org: https://hg.mozilla.org/integration/autoland/rev/adf81b513db5 Implement parsing of CSS 'position-try-options' property. r=emilio,firefox-style-system-reviewers https://hg.mozilla.org/integration/autoland/rev/8631cededbb3 p2. Enable layout.css.anchor-positioning.enabled for css/css-anchor-position/parsing/position-try-options-parsing.html. r=emilio
Keywords: leave-open
Status: NEW → RESOLVED
Closed: 5 months ago
Resolution: --- → FIXED
Blocks: 1918419
Whiteboard: [anchorpositioning:m1]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: