- From: Tab Atkins Jr. via GitHub <noreply@w3.org>
- Date: Fri, 23 Jan 2026 23:29:01 +0000
- To: public-css-archive@w3.org
We (Chrome) are somewhat skeptical this would be web-compatible on arbitrary blocks; the chance of authors accidentally depending on IFCs being counted as 0 is too great imo. But in the example given (select-ish listboxes), you probably want to be using a Flexbox or Grid *anyway*, rather than a Block, and today max-lines does *nothing* for those display types (since all their contents are IFCs and they don't have a BFC in the first place). So maybe we can solve this use-case by making max-lines apply to those display types? * in a Flexbox, it counts either flex lines (if flex-flow:row) or flex items in the first line (if flex-flow:column) * in a Grid, it counts rows * in a Grid Lanes, it counts rows if they're in rows. Unsure what to do if the tracks are columns - act like flexbox and count items in the first column? -- GitHub Notification of comment by tabatkins Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12962#issuecomment-3793004191 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Friday, 23 January 2026 23:29:02 UTC