-
Notifications
You must be signed in to change notification settings - Fork 757
Description
When implementing #11379 in Chromium (https://crrev.com/c/6257576), it became clear from @bfgeek's reviews that he and I didn't share the same understanding of how abspos should behave when their containing block is a descendant of the line-clamp container, in the continue: collapse case:
- My understanding was that previously, abspos would be hidden if their position in the box tree is after the clamp point, regardless of what their containing block did; and that with the resolution in [css-overflow] Web compat issue when hiding abspos after the line-clamp point #11379, this would still be the behavior for abspos whose containing block is a descendant of the line-clamp container. This (minus the [css-overflow] Web compat issue when hiding abspos after the line-clamp point #11379 resolution) is the behavior in my spec PR [css-overflow-4] Draft spec for
continue: collapse(#7708) #10816, in the experimental Chromium implementation, and in the WPT tests I wrote while working on that implementation. I think it is also the behavior Firefox had before they rolled back not painting content after clamp as a result of the abspos compat issue. - Ian's understanding was that whether an abspos gets painted depends entirely on whether its containing block starts before the clamp point. This aligns with this comment on the
continue: collapseissue.
This affects cases such as the following, where the first abspos would always be painted, but second abspos would be hidden in my understanding and painted in Ian's:
<div style="line-clamp: 3">
<div style="position: relative">
<div>
Line 1 <br>
Line 2
</div>
<div style="position: absolute"></div>
<div>
Line 3 <br>
Line 4
</div>
<div style="position: absolute"></div>
</div>
</div>I don't think we ever discussed this in the CSSWG (although I think we have discussed some of this in hallway conversations in TPAC or F2F's), and the only thing that came close to this in the various issues and PR's is that comment by @tabatkins about the painting of abspos depending on their containing block, and my WIP PR that has the other behavior. So we should resolve on something.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status