Re: [csswg-drafts] [css-lists] List marker position with anonymous first_child which dose not have text.

I guess there are two questions:
1. in which case there should be an empty line before the image, and
2. whether the marker should be aligned to the first baseline

For the first question, it seems Gecko puts an empty line when there is an inline element, while Blink and WebKit do so when there is no inline element, and Edge does so in both cases. However, I would argue that there probably shouldn't be an empty line in either case, just like when we set `display: block` on `<li>`s. So this is probably a bug for every browser here.

If we ignore the difference from the first question, it seems WebKit and Gecko agree on that the marker should be aligned to the first baseline while Blink kinda aligns it to the top. (Since Edge has an empty line for both, it is hard to say what's the real behavior underlying.)

Maybe we would allow using CSS Box Alignment properties to control where `::marker` should be positioned on day... but for now probably using first baseline may make more sense? I don't know.

-- 
GitHub Notification of comment by upsuper
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2787#issuecomment-397521307 using your GitHub account

Received on Friday, 15 June 2018 05:55:57 UTC