- From: CSS Meeting Bot via GitHub <noreply@w3.org>
- Date: Wed, 08 Oct 2025 17:01:08 +0000
- To: public-css-archive@w3.org
The CSS Working Group just discussed `[css-anchor-position][other] Handling popover default styles`. <details><summary>The full IRC log of that discussion</summary> <emilio> fantasai: issue is that popover UA default has `margin: auto` in it<br> <emilio> ... margins win over alignment<br> <emilio> ... so when you have a popover and you set position-area on it you put it in the right area but then it gets centered in that<br> <emilio> ... which is not likely what you want<br> <emilio> ... this has tripped up a number of people<br> <emilio> ... our original idea was to introduce a special alignment value<br> <emilio> ... that would center except if you have position-area<br> <emilio> ... when I implemented it I noticed that we had a bunch of tests that would set margin: 0<br> <emilio> ... which is likely to come up<br> <emilio> ... which means we need another way of doing this<br> <emilio> ... I came up with several ideas<br> <emilio> ... we could condition them on having the special keyword for alignment vs. not<br> <emilio> ... or if position-area is not none you can't use auto margins<br> <emilio> ... I don't particularly want to do this because I think position-area into the center of an anchor might be reasonable<br> <emilio> ... so it'd be surprising if they don't work<br> <emilio> ... so we could say if position-area is not none or center then disable auto margins, then disable then<br> <emilio> ... or span-all too perhaps<br> <emilio> ... but the ones on an asymmetric position with the anchor wouldn't<br> <emilio> ... the other thing is that we could do this always or only if we do the self-alignment legacy value thing<br> <emilio> ... in which case it'd be mostly popovers<br> <emilio> q+<br> <emilio> astearns: ian likes your first option best<br> <emilio> ... I'm a bit concerned about the possibility of going this route only if the alignment is `dialog`<br> <emilio> ... makes copying styles to something else not work<br> <astearns> ack emilio<br> <fantasai> emilio: similar concern, be weird to have a random abspos that works and when you put it on popover it doesn't work or vice versa<br> <fantasai> emilio: so, if we don't want this difference, we don't need this special keyword, right?<br> <fantasai> fantasai: yeah, it's only here to solve this problem<br> <fantasai> emilio: then if we need to special case it for compat, we may as well not have the special keyword<br> <emilio> fantasai: if we're not going to condition it on `dialog` I'd lean towards #3<br> <emilio> ... I think they won't try to use them in the side tracks<br> <emilio> ... but span-all and co seems reasonable<br> <fantasai> ... and would be surprising if it doesn't work<br> </details> -- GitHub Notification of comment by css-meeting-bot Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10258#issuecomment-3382462730 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 8 October 2025 17:01:10 UTC