-
Notifications
You must be signed in to change notification settings - Fork 689
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
[css-lists] position:marker as layout model for list-style-position:outside list item markers #3771
Comments
Random thought: maybe |
I still think this might emerge as a go-to outside marker solution, regardless of all this spec scheming: #2361 (comment) |
It should be a new
This would add a lot more power to authors to control the layout without having to add wrapper elements. E.g. (FYI, It would be trivial to support table captions/cells with internal grid/flex/table layout in Gecko. The only thing missing is some way to specify it in CSS.) |
@MatsPalmgren So I totally agree with your comment above, but it's like a lot of issues in one. :) Gonna try to split them out and keep this tagged against css-lists-4 since the OP is about marker styling.
|
BTW, it seems this was the case in CSS 2.0 https://www.w3.org/TR/2008/REC-CSS2-20080411/visuren.html#propdef-display |
https://drafts.csswg.org/css-lists-3/#position-marker
Given the above quote, I have some doubt regarding using
position:marker
as a description of how layout works forlist-style-position:outside
list item markers. Making it positioned changes the stacking level in which it is painted. Given how prevalent<li>
is on the web, I strongly doubt this would be web-compatible. Non-positioned content that happens to overlap a::marker
must paint on top of it.FYI, Gecko has implemented
::marker
and we made the following tweaks for it to make it compatible with the legacy rendering:list-style-position:outside
, thedisplay
value of the::marker
pseudo-element is blockified::marker
box inline-size shrink-wraps by default::marker
box inline-axis margins are not calculated per the CSS2 block-level algorithm (because that would typically make the inline-end margin very large and thus misposition the::marker
)I think those tweaks are non-controversial since I think they would fall out from making it absolutely positioned anyway, as the spec suggests, so I think it's within the intent of the spec regarding the layout result. But, we do not treat it as absolutely positioned in our box tree.
The text was updated successfully, but these errors were encountered: