-
Notifications
You must be signed in to change notification settings - Fork 707
[css-inline][css-text][css-pseudo] Define more details of the "first formatted line" #10990
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
Note that for For For I think the specs are clear here, but lmk if anything seems wrong. |
(Sorry I misunderstood parts of your reply, so rewriting) I think my question is primarily on what an empty block should do. According to your changes to wpt and your reply, text-box-trim-half-leading-block-box-003.html should propagate: <div class="div-parent">
<span> </span>
<div>Testline1</div> because it has an anonymous block, but the block has an empty line, and the existence of the anonymous block box doesn't matter? WebKit propagates, while Blink/Gecko don't. In text-box-trim-half-leading-block-box-001.html: <div class="div-parent">
<div></div>
<div>Testline1</div> It has a block without an empty line. In this case, the block box matters even without a line, it should block the propagation? Added another test: <div class="div-parent">
<div><span></span></div>
<div>Testline1</div> All browsers treat this the same as If the answer is "propagate", I think the spec means "an empty block should block the propagation, but if it has an empty line, it should propagate". If the answer is "block", I think the spec means "an anonymous block should be ignored for this purpose". |
Firefox not propagating |
Blink I think currently has issues with ::first-line propagating into elements which establish independent formatting contexts, when arguably it shouldn't, when I last read the spec here somewhat questionable. |
@bfgeek CSS2 didn't prevent propagating That said, Firefox never propagating it can mean that it's web-compatible to change the behavior, it may make more sense indeed to only propagate within the same BFC, and this would be consistent with not propagating it to table captions (see #1192). |
Thank you, this is another interesting incompatibility, WebKit blocks the propagation. So two questions we found so far?
|
#8842 looks related with this. |
Chatting with @jensimmons, she pointed out we need to make sure that out-of-flow elements (including floats) are ignored. |
The question 2 (BFC) is split into #11038. |
Discussing on wpt tests for
text-box-trim
with @fantasai raised questions about the first formatted line.Currently, the
::first-line
pseudo-element and thetext-indent
property use this definition.This test@jsbin indicates that browsers use different criteria for the "first formatted line".
Can we define the desired behavior for these cases?
@fantasai @nt1m @vitorroriz @Clqsin45 @bfgeek @lilles @jfkthame
The text was updated successfully, but these errors were encountered: