CSS friends! I’ve been messing around with anchor positioning and either I’m being a doofus or I’ve found a bug, and I need someone who actually knows what they’re doing to confirm which it is! Reduced test case: codepen.io/editor/jonpear… #help
Post
codepen.ioPopover weirdnessA code demo by Jon created on CodePen
(tl;dr: when using `justify-self` on a popover, Firefox seems to treat any values as ‘start’. I am perfectly willing to accept that I’m misunderstanding the spec somewhere…)
0 reposts0 likes
This has to do with safe vs unsafe alignment, in which Chrome (and Safari) are doing the unsafe version and Firefox is doing the safe one. www.w3.org/TR/css-align... If your anchor was all the way to the left edge, with unsafe alignment your positioned element could bleed out of the page.
w3.orgCSS Box Alignment Module Level 3
All that said, I am not sure which one is correct here, but I’d lean towards Chrome’s behavior. Perhaps @jakearchibald.com has input?