Re: [csswg-drafts] [css-align] Add percentage values for alignment (#9556)

+1 on this in general. I similarly allow %s for anchor(), meaning the same thing (% between start and end).

> Do we want to allow keywords to combine with percentages, to allow interpolation along the various directional axes besides start/end?

Yeah, since we have multiple possible alignment axises/directions (start/end vs sefl-start/self-end, at minimum), this makes sense. It should match the way background-position works, where `start 10%` and `end 90%` are the same thing (and both represent 10% off of start-aligned).

> Do we want to allow values outside of the 0-100% range (which has pretty weird results in some cases, but might be useful) or clamp to that range?

Yeah, I don't see any reason not to. I dunno use-cases, but again, background-position allows it, and it's well-defined.

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


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

Received on Friday, 3 November 2023 20:54:35 UTC