Open Bug 2006337 (css-anchor-position-interop-2025) Opened 22 days ago Updated 3 days ago

[css-anchor-position] Investigate remaining interop 2025 failures

Categories

(Core :: Layout: Positioned, defect, P3)

defect

Tracking

()

People

(Reporter: emilio, Unassigned)

References

(Depends on 4 open bugs, Blocks 23 open bugs)

Details

Link: https://wpt.fyi/results/css/css-anchor-position?label=master&label=experimental&aligned&view=interop&q=label%3Ainterop-2025-anchor-positioning%20and%20firefox%3Afail

My understanding is:

Multicol

  • anchor-getComputedStyle-002.html
  • anchor-position-multicol*

position-try-order (bug 1989059)

  • All the ones in parsing/
  • property-interpolations.html failures
  • position-try-order-basic.html
  • position-try-order-position-area.html

@position-try invalidation (bug 1910616)

  • at-position-try-cssom.html failure
  • at-position-try-invalidation-shadow-dom.html (maybe, may depend on scoped names too)
  • at-position-try-invalidation.html

position-try-fallbacks should use the IMCB (bug 2004495 + bug 1924792)

  • A bunch in position-try-*
  • position-visibility-remove-no-overflow.html
  • Probably others

Last successful position-fallback selection (bug 2006373)

(Note these might also depend on ^)

  • last-successful-*

Scrolling (bug 2002789 + another one tbd)

  • anchor-scroll-chained-{002,003}.html (bug 2002789)
  • anchor-scroll-position-try-*

Should be removed (no bug)

Depends on interleaving, but can be fixed (bug 2006368)

  • try-tactic-sizing.html (we should change it to test rendering)

calc() simplification (bug 2006366)

  • anchor-parse-valid.html (probably can be tweaked since problem seems unrelated to anchor() itself)

Tree scoping of names (bug 1992387)

  • anchor-scope-shadow-flat-tree.html
  • position-try-tree-scoped.html
  • anchor-scope-shadow-*
  • anchor-name-cross-shadow.html

Grid interaction (bug 2004596)

  • anchor-position-grid-001.html
  • position-area-in-grid.html
  • position-try-grid-001.html

Others / need more digging

  • auto-margins-position-area.html
  • position-area-basic.html
  • position-try-backdrop.html (probably depends on ::backdrop being a real element...)
  • Any other that I haven't mentioned

Quick comments:

  • anchor-parse-valid.html: We simplify anchor(min(50%, 100%)) to anchor(calc(50%)) which the test does not expect.
  • anchor-position-grid-001.html: It has multicol mixed in it :(

Can the percentage basis of anchor() be negative? If not, our behavior seems more correct.

(In reply to Emilio Cobos Álvarez [:emilio] from comment #2)

Can the percentage basis of anchor() be negative? If not, our behavior seems more correct.

The basis is absolute containing block's size in that axis, which should be non-negative.
FWIW: calc() spec on simplification does say:

If a percentage is left at this point, it will usually block simplification of the node

Depends on: 2006352

position-try-fallbacks should use the IMCB

Bug 2004495

position-visibility-remove-no-overflow.html

Also depends on bug 1924792

Depends on: 2004495, 1924792
Depends on: 1989059, 1910616
No longer depends on: 1924792
Depends on: 1924792
Depends on: 2006366
Depends on: 2006368
Depends on: 2006371
Depends on: 2006373

anchor-scroll-chained-{002,003}.html

Bug 2002789

Depends on: 2002789

position-try-001.html (And maybe others as well) may depend on bug 2006373.
That test fails for us because we use the base style after trying out all options, but also we end up using the last fallback option's size.

Depends on: 2006398
Depends on: 2006402
No longer blocks: 1963090
Depends on: 1963090
Depends on: 2006499
No longer blocks: 1983943
Depends on: 1987931
Alias: css-anchor-position-interop-2025
Depends on: 2004596
Depends on: 2006964
No longer depends on: css-tree-scoped-names
No longer blocks: 1892117
Depends on: 1892117
No longer blocks: 1911925
Depends on: 1911925
You need to log in before you can comment on or make changes to this bug.