-
Notifications
You must be signed in to change notification settings - Fork 707
[css-position] Confusing conditions in "§4.1. Automatic Sizes of Absolutely-Positioned Boxes" #6580
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
Or if you want to keep the explicit conditions,
|
The conditions at the moment are a little incomplete. E.g. tables should shrink-fit, also the "semi-replaced" elements, e.g.
Edit: (for the |
… don't confusingly overlap with preceding ones. #6580
@Loirooriol We went ahead and just collapsed the secondary conditions to "otherwise" as you suggested. The point of listing them out was to be a little clearer about what exactly triggers that case, but having to be overly-specific to avoid clashing with the preceding conditions negates that somewhat. @bfgeek Added the table case. For buttons and inputs, behavior seems inconsistent across browsers; in particular, it seems WebKit just treats buttons (and inputs) like any other box, so seems like that would be a reasonable direction to go in given the other browsers are very inconsistent? In any case, should be a separate issue if we need to address anything in the spec. |
https://drafts.csswg.org/css-position/#abspos-auto-size
The 3 last conditions are confusing, because:
Seems it should just be
The text was updated successfully, but these errors were encountered: