Open Bug 1838746 (css-anchor-position-1) Opened 2 years ago Updated 3 days ago

[META] [css-anchor-position-1] Implement CSS Anchor Positioning

Categories

(Core :: CSS Parsing and Computation, enhancement)

enhancement

Tracking

()

People

(Reporter: dholbert, Unassigned)

References

(Depends on 26 open bugs, Blocks 83 open bugs, )

Details

(5 keywords)

This bug tracks implementation of CSS Anchor Positioning Level 1.

Spec link: https://drafts.csswg.org/css-anchor-position-1/

See Also: → 1837502
See Also: → 1816760
Alias: css-anchor-position-1
Blocks: 1842698
Blocks: 1842703
Blocks: 1842114
Blocks: 1850104
Depends on: 1850829
Blocks: 1857653
Duplicate of this bug: 1863823
Depends on: 1865887
Depends on: 1875258
Depends on: 1877168
Depends on: 1877417
Depends on: 1881860
Blocks: 1881860
No longer depends on: 1881860
No longer blocks: 1881860
Depends on: 1881860
Depends on: 1882437
See Also: → 1885596
Blocks: 1867737
Blocks: 1895141
See Also: → popover
Blocks: 1897106
Blocks: 1897279
Blocks: 1897596
Keywords: dev-doc-needed
Depends on: 1900234
No longer depends on: 1897619
Depends on: 1908494
Depends on: 1906329
Depends on: 1909328
Depends on: 1909341
Depends on: 1909345
Depends on: 1909346
Depends on: 1909354
No longer depends on: 1908494

I see that this meta bug depends on a ticket about adding basic support in block layout, explicit excluding support in other layouts like flex and grid.
What is the plan for those other layouts ? Will the feature ship without support for them ? If yes, this will make feature detection harder in case the relevant support is for anchor positioning in a grid layout.

Flags: needinfo?(jwatt)

Those separations are just to provide some stepping stones to break up the implementation work into digestable parts. There's no intention to release those parts separately, and usable feature detection is something we'll very much be keeping in mind. If/when we get to the point that we're going to release something that will be noted here, whether or not it's a "complete" or partial release.

Flags: needinfo?(jwatt)
Depends on: 1911925
Depends on: 1917695
Depends on: 1920495
Blocks: 1920937
Depends on: 1923392
Depends on: 1923758
Depends on: 1923954
Depends on: 1924084
Depends on: 1924213
Blocks: 1911925
No longer depends on: 1911925
Blocks: 1917050
No longer depends on: 1917050
Blocks: 1920495
No longer depends on: 1920495
Blocks: 1906329
No longer depends on: 1906329
Depends on: 1924786
Depends on: 1924787
Depends on: 1924788
Depends on: 1924210
Depends on: 1925770
Depends on: 1925802
Depends on: 1925810
Depends on: 1925819
Blocks: 1925591
Blocks: 1925943

I noticed the spec specifically mentioned that transform and other post-layout effects will not affect the position of the anchors. Is there any plans to address this?

I noticed the spec specifically mentioned that transform and other post-layout effects will not affect the position of the anchors. Is there any plans to address this?

See this CSSWG issue: https://github.com/w3c/csswg-drafts/issues/8584 — if you have any specific use cases you're thinking about, please, comment in the issue, it will help with moving it forward!

Depends on: 1931935
Depends on: 1929380
Blocks: 1933967
Depends on: 1950201
Depends on: 1950251
Blocks: 1951910
Depends on: 1959416
Depends on: 1959421
Blocks: 1962487
Blocks: 1962074
Blocks: 1962017
Depends on: 1928128
Blocks: 1963512
Depends on: 1968745
Depends on: 1966524
Depends on: 1967755
Depends on: 1969350
Depends on: 1970240
Blocks: 1973949
Blocks: 1976614
Blocks: 1977088
Blocks: 1977917
Blocks: 1976354
Blocks: 1979986
Blocks: 1979911
Blocks: 1979593
Blocks: 1978980
Blocks: 1978736
Blocks: 1980278
Depends on: 1985654
Depends on: 1986090
Depends on: 1986132
Depends on: 1985302
Depends on: 1986554
Depends on: 1986919
Depends on: 1987916
Depends on: 1987917
Blocks: 1970240
No longer depends on: 1970240
Blocks: 1969350
No longer depends on: 1969350
Blocks: 1950201
No longer depends on: 1950201
Blocks: 1985302
No longer depends on: 1985302
Blocks: 1986919
No longer depends on: 1986919
Blocks: 1986090
No longer depends on: 1986090
Blocks: 1966524
No longer depends on: 1966524
Blocks: 1986554
No longer depends on: 1986554
Blocks: 1986132
No longer depends on: 1986132
Blocks: 1967755
No longer depends on: 1967755
Blocks: 1950251
No longer depends on: 1950251
Blocks: 1931935
No longer depends on: 1931935
Blocks: 1929380
No longer depends on: 1929380
Depends on: 1987926
Depends on: 1987930
Depends on: 1987943
Depends on: 1987946
Depends on: 1987947
Depends on: 1987954
No longer depends on: 1968745
Depends on: 1909339
Blocks: 1987931
Depends on: 1988038
Depends on: 1959187
Depends on: 1988224
Depends on: 1988225
Depends on: 1963090
Depends on: 1989292
Depends on: 1990069
Depends on: 1990448
Depends on: 1990901
Depends on: 1991211
Depends on: 1986602
Depends on: 1924792
Depends on: 1991336
Depends on: 1991710
Depends on: 1991968

Now that CSS Anchor Positioning Level 1 & Level 2 are both released (both technically in draft), could Firefox be one of the first to implement both specs.

Especially if this is an active effort, supporting both here would be a very big win for interoperability and for Firefox.

Depends on: 1991929
Depends on: 1991111
Blocks: 1989431
Blocks: 1989434
Blocks: 1990577
Blocks: 1992338
Blocks: 1992373
Blocks: 1988958
Blocks: 1988828
Blocks: 1990979
Blocks: 1991142
Blocks: 1992455
Blocks: 1990671
Blocks: 1987482
Blocks: 1989295
Depends on: 1993232
Depends on: 1993025
Depends on: 1993021
Depends on: 1993353
Depends on: 1993692
Depends on: 1993698
Depends on: 1993699
Depends on: 1998106
Depends on: 1997481
Depends on: 1997528
Depends on: 1997280
Depends on: 1997270
Depends on: 1993603
Depends on: 1997995
Depends on: 1997836
Depends on: 1998040
Depends on: 2000018
Depends on: 2000019
Depends on: 1999972
No longer depends on: 2000018
Blocks: 1997995
No longer depends on: 1997995
Blocks: 1998040
No longer depends on: 1998040
Blocks: 1997280
No longer depends on: 1997280
Blocks: 1993603
No longer depends on: 1993603
Blocks: 1997481
No longer depends on: 1997481
Blocks: 1997836
No longer depends on: 1997836
Blocks: 1997270
No longer depends on: 1997270
Blocks: 1997528
No longer depends on: 1997528
Depends on: 2004003

I gave css anchors a quick test in Firefox, and they are not positioned correctly.

Example url: https://steamdb.info/app/730/history/

Hover icons or buttons in the top right half, or hover the dates in history.

Depends on: 2004036
No longer blocks: 1895176

(In reply to xPaw from comment #9)

I gave css anchors a quick test in Firefox, and they are not positioned correctly.

Example url: https://steamdb.info/app/730/history/

Hover icons or buttons in the top right half, or hover the dates in history.

Same here, thought I was going crazy because my @supports rule does apply in Nightly. https://codepen.io/rickdoesburg/pen/XJdxYQM

Depends on: 2004040
Depends on: 2004295
Depends on: 2004596
No longer blocks: 1968162
Depends on: 2005455
Depends on: 2005461

from comment 12

Some things that are not behaving correctly:

This is a "META" bug, meaning it is for bookkeeping and tracking other work, not a place for discussions or specific issues. It is still open (not "FIXED") because the feature has not been completely implemented. Likely your problems are known and amongst the 60+ open "Depends on" bugs listed at the top of this issue, but if not you should file new bugs so they can be fixed.

Blocks: 2006473
Blocks: 2006478
Blocks: 2006481
Blocks: 2006506
Blocks: 2006511
Blocks: 2006513
Blocks: 2006551
Blocks: 2006553
Blocks: 2006803
Blocks: 2006804
No longer blocks: 1987931
Depends on: 1987931
Blocks: 2006959
Blocks: 2006984
Depends on: 2007368
Depends on: 2007970
Depends on: 2007941
Depends on: 2007992
Depends on: 2007994
No longer blocks: 1892117
Depends on: 1892117
No longer blocks: 1911925
Depends on: 1911925
No longer blocks: 1890460
Depends on: 1890460
No longer blocks: 1983943
Depends on: 1983943
Depends on: 2011777
Depends on: 2010247
You need to log in before you can comment on or make changes to this bug.