[css-anchor-position] Positioned frames using anchor-center only in 1 axis does not do overflow check properly
Categories
(Core :: Layout: Positioned, defect)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox149 | --- | affected |
People
(Reporter: jakea, Unassigned)
Details
(Whiteboard: [anchorpositioning:triage])
Attachments
(1 file)
|
1021.79 KB,
video/mp4
|
Details |
https://codepen.io/t_afif/pen/QwyMrvG
Drag the anchor around. It seems to correctly flip between top and bottom, but does not flip to the side.
Safari has the same issue. Chrome seems to do the right thing. However, I'm not confident in which behaviour is correct as per the spec.
Ignore the issue with the position of the arrow, I'll file that separately.
Comment 1•3 months ago
•
|
||
Hmm, with Chrome:
position-area: top; /* top span-al l*/
justify-self: unsafe anchor-center;
position-try: flip-block, --size flip-start, --size flip-start flip-inline;
As I trigger flipping to sides, I see the computed value of position-area becoming left and right - I don't see anything in spec that would support this.
| Reporter | ||
Comment 2•3 months ago
|
||
https://drafts.csswg.org/css-anchor-position-1/#execute-a-try-tactic is it covered by the final point of step 4 here?
Comment 3•3 months ago
|
||
The severity field is not set for this bug.
:jwatt, could you have a look please?
For more information, please visit BugBot documentation.
Comment 4•3 months ago
|
||
(In reply to Jake Archibald [:jakea] from comment #2)
https://drafts.csswg.org/css-anchor-position-1/#execute-a-try-tactic is it covered by the final point of step 4 here?
Ah, I didn't fully understand flip-start here. It swapped top with left, not span-all with left.
Comment 5•3 months ago
|
||
When we check overflow, we use inset-modified containing block. This example just uses anchor-center in horizontal axis.
Insets get set to 0 upon setting 1anchor-center, and we compare Inset-Modified Containing Block size vs. positioned frame's margin box, and we determine that we always fit.
Updated•3 months ago
|
Updated•3 months ago
|
Description
•