- From: Roman Komarov via GitHub <noreply@w3.org>
- Date: Fri, 07 Nov 2025 21:19:49 +0000
- To: public-css-archive@w3.org
kizu has just created a new issue for https://github.com/w3c/csswg-drafts: == [css-inline-3] A property to exclude an element from the baseline calculation == I just published a blog post in which I talk about a technique that I use for fixing a baseline of button-like elements with icons for around twelve years already: https://blog.kizu.dev/fixing-baselines/ The post outlines the problem, but the gist: currently, we are only able to control if we're using the first or last baseline sets for the [baseline source](https://drafts.csswg.org/css-inline/#propdef-baseline-source). In flow layout, we can also use floats to exclude some elements from the baseline. I have this ancient CodePen from 2014 that demonstrates this: https://codepen.io/kizu/pen/eYyBMP **Proposal**: add something like `baseline-presence` with an `exclude` value that could be used to, well, exclude some element from the baseline calculation. Then, this property could be used on icons or other elements whenever we want to control the baseline more precisely than just setting the `baseline-source`. Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/13080 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Friday, 7 November 2025 21:19:49 UTC