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] [css-pseudo] need to define blockification of outside markers / interaction of display: inline list-item with list-style-position #6440
Comments
I agree, and https://drafts.csswg.org/css-lists/#list-style-position-property already says
Why do you want to do it at used-value time? Blockifications happen at computed-value time in other cases, so it seems inconsistent.
But I don't think it should be blockified in that case, because OK, I see that in Firefox the marker is still outside in |
Not always, for cases where the blockification can't happen at computed-value time. For example, for a rendered There's more background in whatwg/html#6310 (and I'd be ok to change this to match Blink tbh, which always blockifies all
Because |
Resolving at used-value time seem unnecessary complex to me. I think I would rather prefer to just force the marker to be inside if you use I think this is somewhat analogous to #4065: if you use In Chromium, |
Yes, that is a separate option (and why I opened that issue). Do you mean forcing the marker to be inside at used value time (without checking list-style-position), or forcing the computed value of |
Yeah, changing the computed value of So I guess we could say that I guess the potential problem of using the computed |
Outside markers are defined to create block containers. This is as of today implemented in both Gecko and Blink at least as a computed-style-time hack:
Right now that has a visible effect via
getComputedStyle(element, "::marker").display
(this test tests for it).However:
display: inline list-item
, because thedisplay
value may be ignored / overridden.The last bullet point is, of course, if we agree that
display: inline list-item
ignoreslist-style-position
(which Gecko does right now), but it seems a bit under-defined.So in Gecko, I'm going to change this to be a used-value-time blockification (mostly to prevent the case where we have a block element like
<details>
withdisplay: inline list-item
and fail to blockify the marker). But I'm happy to adapt to whatever solution we end up with here since we're the only ones implementinginline list-item
after all.cc @Loirooriol @MatsPalmgren @jfkthame
The text was updated successfully, but these errors were encountered: