-
Notifications
You must be signed in to change notification settings - Fork 133
Box alignment features are hidden by current organization #2905
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
Thanks for opening this issue, @mirisuzanne. I'm very curious about ways in which the definition of features does not (or should not or does!) align with developer expectations.
Can you talk about what the |
There are several keys that have to do with alignment properties in an absolute positioning context. They are all labeled with But absolute positioning generally is listed as baseline high, and these keys are fairly new. They should probably get their own grouping to expose their 'limited' support. That's already being done for Breaking those |
re: aligned expectations, I think there's two things to consider that are sometimes at odds:
Because new features in CSS can often re-frame old features. |
I'm the one who proposed the initial sorting in #2188, but I agree that "Box alignment of absolute positioned elements" should be a separate feature from absolute positioning. I'll make a PR for this. I think a box alignment feature would also be useful- I'll play with that and see if one makes sense there. |
Currently all the box-alignment features are hidden under their respective contexts.
The
css.properties.align-self.position_absolute_context
key is in the absolute positioning feature, and same with flexbox/grid/etc. Only "align-content in block layouts" has it's own data visible.The most immediate problem with this is that we can't see the multi-browser support that exists for alignment in absolute positioning. At the very least,
position_absolute_context
alignment keys deserves to be a feature.At a high level, I think we lose out by not treating "box alignment" as a top level feature of CSS. I know it's historically been taught as 'part of' different layout systems - but authors have consistently found that confusing. The reality is we're close to having it everywhere, with a unified syntax we can teach and use across layouts.
The text was updated successfully, but these errors were encountered: