Open kojiishi opened 5 days ago
We need to review the implications for ::first-line
, ::first-letter
, and text-box-trim
.
The CSS Working Group just discussed [css-pseudo] Should the "first formatted line" propagate into a different BFC?
.
to what extend are the allowed to intrude into a new formatting context like flex, grid, multicol
From https://drafts.csswg.org/css2/#first-line-pseudo
The :first-line pseudo-element can only be attached to a block container element.
Back then this only excluded tables, but I don't see why we should treat flex and grid containers different than tables.
A multicol container establishes an independent formatting context, so it's automatically excluded if these are excluded. I'm fine with excluding multicol containers even if we don't exclude independent FC in general.
current implementation
As mentioned in the 1st comment, Blink propagates it to block containers with independent FC, including overflow: scroll
, display: flow-root
, column-count: 2
. For multicol, it only propagates to the 1st column.
Webkit doesn't propagate to them (but propagates to block containers that continue the BFC of the parent).
Gecko never propagates to anything.
Split the issue from https://github.com/w3c/csswg-drafts/issues/10990#issuecomment-2394760911 to discuss easier.
@bfgeek @fantasai