-
Notifications
You must be signed in to change notification settings - Fork 715
[css-align] Add percentage values for alignment #9556
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Clear yes from my side.
I can imagine cases in which the elements may want to overflow their container, for example for the mentioned switch and range controls. Though I don't have a strong opinion on that. Sebastian |
+1 on this in general. I similarly allow %s for anchor(), meaning the same thing (% between start and 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
Yeah, I don't see any reason not to. I dunno use-cases, but again, background-position allows it, and it's well-defined. |
Will it then be possible to transition these values without view transitions? |
Yes. |
As @annevk and I were looking into styling of switch and range controls, it became obvious that it would be useful to be able to position things partway between
start
andend
. So opening this issue to add<percentage>
values toalign-self
andjustify-self
(and maybe alsoalign-content
andjustify-content
, although I'm less convinced that's necessary). These would interpolate between 0% = start and 100% = end, just like forbackground-position
.Open questions:
start
/end
?(This has been on my "potential extensions to alignment" list for awhile, but now there's an obvious use case, so filing it for consideration...)
The text was updated successfully, but these errors were encountered: