Skip to content

[css-overflow-4] Should abspos painting in line-clamp depend only on whether the containing block is before clamp? #11962

@andreubotella

Description

@andreubotella

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:

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.

@emilio @frivoal @alanbaradlay

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Wednesday Morning

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions