Closed Bug 1923763 Opened 1 year ago Closed 1 year ago

Handle invalid `anchor()` values.

Categories

(Core :: CSS Parsing and Computation, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
136 Branch
Tracking Status
firefox136 --- fixed

People

(Reporter: dshin, Assigned: dshin)

References

Details

(Whiteboard: [anchorpositioning:m1])

Attachments

(6 files)

Invalid if:

  • Used outside of inset property
  • Used in non-abspos positioning
  • Keyword used for anchor side does not match physical side e.g. left: anchor(top)
  • Anchor specified refers to itself e.g. anchor-name: --foo; anchor(--foo left). Possible since anchors can have anchors.

Need to give fallback in this case, or treat the entire property as invalid at compute time.

Blocks: 1923758
No longer depends on: 1923758
Blocks: 1909332
No longer blocks: 1923758
Whiteboard: [anchorpositioning:m1]
Assignee: nobody → dshin
Status: NEW → ASSIGNED
Blocks: 1942715
Pushed by dshin@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/8018734b5491 Part 1 - Enable sharing StylePositionProperty between C++ and Rust. r=firefox-style-system-reviewers,emilio https://hg.mozilla.org/integration/autoland/rev/93e59980eac1 Part 2 - Implement Anchor function resolution functions from Rust side. r=firefox-style-system-reviewers,emilio https://hg.mozilla.org/integration/autoland/rev/d2139afa933b Part 3 - Implement anchor function resolution in math functions from Rust side. r=firefox-style-system-reviewers,emilio https://hg.mozilla.org/integration/autoland/rev/0cc5e744c01a Part 4 - Implement a way to get anchor-function-resolved inset. r=layout-reviewers,firefox-style-system-reviewers,emilio https://hg.mozilla.org/integration/autoland/rev/2203e2c5268e Part 5 - Replace inset evaluations with anchor-resolved inset evaluations. r=layout-reviewers,emilio https://hg.mozilla.org/integration/autoland/rev/a92a0bc6047f Part 6 - Adjust test expectations. r=layout-reviewers,emilio https://hg.mozilla.org/integration/autoland/rev/d55070e64ced apply code formatting via Lando

Backed out for causing build bustages in nsStyleStruct.cpp.

Flags: needinfo?(dshin)
Pushed by dshin@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/d0554ce87d45 Part 1 - Enable sharing StylePositionProperty between C++ and Rust. r=firefox-style-system-reviewers,emilio https://hg.mozilla.org/integration/autoland/rev/1b116dd05e95 Part 2 - Implement Anchor function resolution functions from Rust side. r=firefox-style-system-reviewers,emilio https://hg.mozilla.org/integration/autoland/rev/a27ef6564c6a Part 3 - Implement anchor function resolution in math functions from Rust side. r=firefox-style-system-reviewers,emilio https://hg.mozilla.org/integration/autoland/rev/99c81ec1fcb6 Part 4 - Implement a way to get anchor-function-resolved inset. r=layout-reviewers,firefox-style-system-reviewers,emilio https://hg.mozilla.org/integration/autoland/rev/ef47cdd0c025 Part 5 - Replace inset evaluations with anchor-resolved inset evaluations. r=layout-reviewers,emilio https://hg.mozilla.org/integration/autoland/rev/f21f52fd370b Part 6 - Adjust test expectations. r=layout-reviewers,emilio https://hg.mozilla.org/integration/autoland/rev/317477da15d1 apply code formatting via Lando
Flags: needinfo?(dshin)
Blocks: 1950903
Depends on: 1957747
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: