Open Bug 1993692 Opened 11 months ago Updated 17 days ago

[meta] Take transform of the anchor element into account

Categories

(Core :: Layout: Positioned, enhancement)

enhancement

Tracking

()

People

(Reporter: dshin, Unassigned)

References

(Depends on 14 open bugs, Blocks 1 open bug)

Details

(4 keywords, Whiteboard: [anchorpositioning:backlog][webcompat:risk-high])

Attachments

(1 file)

Whiteboard: [anchorpositioning:triage]
Whiteboard: [anchorpositioning:triage] → [anchorpositioning:backlog]
See Also: → 2003843
See Also: → 2016360
Duplicate of this bug: 2016360
Duplicate of this bug: 2018784
Keywords: parity-chrome

In terms of dev-docs, we should be careful with the wording here so it doesn't get confused with animating popovers in/out. Perhaps avoid mentioning transforms in the headline, and instead say something like:

"Improve anchor positioning reliability", then provide detail like "Previously, anchor positioning would be incorrect if the anchor (or one of its ancestors) had a transform. Now, transforms are considered when positioning relative to an anchor".

As this testcase demonstrates, derived from :jakea's testcase from Matrix, transformed positions need to be taken into account for containing block overflow.

Whiteboard: [anchorpositioning:backlog] → [anchorpositioning:backlog][webcompat:risk-high]

Transform this into a meta bug

No longer blocks: 2037780
Depends on: 2037780
Keywords: meta
Summary: Take transform of the anchor element into account → [meta] Take transform of the anchor element into account
Component: CSS Parsing and Computation → Layout: Positioned

As this is a meta-bug, I assume, there will be a separate bug filed for the implementation, right?
And it should be considered to add the named-feature() function for @supports including the anchor-position-follows-transforms keyword along with it.

Sebastian

Flags: needinfo?(aethanyc)

As this is a meta-bug, I assume, there will be a separate bug filed for the implementation, right?

Yes, I'll file separate bugs for the implementation once I have a clearer understanding of the details.

And it should be considered to add the named-feature() function for @supports including the anchor-position-follows-transforms keyword along with it.

Cool. I wasn't aware named-features() has a keyword for exactly this feature. We track the implementation of named-features() in Bug 2042977.

Flags: needinfo?(aethanyc)

(In reply to Ting-Yu Lin [:TYLin] (PST, UTC-7) from comment #10)

Cool. I wasn't aware named-feature() has a keyword for exactly this feature.

Then it's good I pointed that out.πŸ˜„

We track the implementation of named-feature() in Bug 2042977.

Yep, filed by me a month ago.πŸ˜‰ I've added it as blocker to this bug, so it's not forgotten. You may want to add it to the implementation bugs once they are filed.

Sebastian

Depends on: 2042977

You may want to add it to the implementation bugs once they are filed.

Filed Bug 2055354 to implement named-feature (anchor-position-follows-transforms). This turns Bug 2042977 into a meta bug.

No longer depends on: 2042977
Blocks: 2057629
Depends on: 2057631
Depends on: 2057632
Depends on: 2057633
Depends on: 2058581
Depends on: 2059840
Depends on: 2059841
Depends on: 2060891
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: