Re: [csswg-drafts] [css-pseudo] Should the "first formatted line" propagate into a different BFC? (#11038)

- 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](https://drafts.csswg.org/css2/#selectordef-first-line) pseudo-element can only be attached to a [block container element.](https://drafts.csswg.org/css2/#block-boxes)

  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.


-- 
GitHub Notification of comment by Loirooriol
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11038#issuecomment-2417444593 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 16 October 2024 17:16:32 UTC