-
Notifications
You must be signed in to change notification settings - Fork 642
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-inline] When does an empty inline suppress the whole line when in a list? #5276
Comments
That's because Blink has an ugly quirk (even in standard mode) that if you have a |
I mean, I think we want the least hacky thing that doesn't break Web-compat. :) |
I don't like what WebKit does for inside markers. Inside markers are supposed to be a normal inline, and then if you have a block box, it should appear below. This is what Firefox and Chromium do, but not WebKit (regardless of quirks mode):
Then, if you insert and empty span between the marker and the block, since there is already some inline content (the marker), the result should be the same, which seems to be the case for all browsers (regardless of quirks mode):
Outside markers are kind of out-of-flowish so I would expect these to be equivalent (except for the ::marker):
That's already the case in quirks mode. But not in standards mode for Firefox. So I prefer what Chromium and WebKit do. |
Yeah I had not tested inside markers but I agree with you that WebKit is wrong tehre. |
Thank you @Loirooriol for the analysis. So two separate issues result in this differences?
? For 1, this WIP has the history, quoting:
|
@kojiishi Inside markers are supposed to behave the same as any other inline box with the corresponding content. So I think the original issue here is about outside markers only? |
Trying to sync. So, case 3 and 4 (without wrapping |
Consider these examples, extracted from a real website.
data:text/html,<!doctype html><ul><li><span></span><p>bar</p></li>
data:text/html,<ul><li><span></span><p>bar</p></li>
(same as above, but quirks instead of standard mode).data:text/html,<!doctype html><li><span></span><p>bar</p></li>
(same as the first example, but with a wrapping<ul>
)data:text/html,<li><span></span><p>bar</p></li>
(same as above, but quirks)Browsers seem to disagree on whether the
<span>
should take space:<span>
should never take space.<ul>
or not (lol). I suspect there's a better explanation for this, cc @kojiishi.So... It's not clear to me the spec defines this case, but I may be wrong... Browsers clearly disagree even in standards mode.
I think I like WebKit's behavior more, as it's more consistent with how layout works when markers are not involved... I can dig on why Gecko only behaves like this in Quirks mode if needed. But people may have different opinions?
The text was updated successfully, but these errors were encountered: