Re: [csswg-drafts] [css-anchor-position][other] Handling popover default styles (#10258)

Because the UA styles for popover contain `margin: auto`, would it be possible to say that `margin: auto` resolves to 0 when the popover element is using anchor positioning? 

We could re-use the conditions from [Compensates for scroll](https://drafts.csswg.org/css-anchor-position-1/#compensate-for-scroll). "If a popover has a default anchor box and an anchor reference to its default anchor box, the `auto` keyword for `margin` resolves to 0."

I was unable to find a specification for `margin: auto`, so I'm not sure what other impacts there might be. 

-- 
GitHub Notification of comment by jamesnw
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10258#issuecomment-3052936726 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 9 July 2025 14:43:44 UTC