- From: fantasai via GitHub <sysbot+gh@w3.org>
- Date: Wed, 22 May 2019 21:54:41 +0000
- To: public-css-archive@w3.org
So let's say we introduce a property `baseline-priority: high | normal` for this. The way it would work is that if an element has `baseline-priority: high` then its baseline gets propagated to its container at a higher priority than any other: it usurps the place of the first/last baseline when we go looking for the first/last baselines. That's maybe not too complicated. The next interesting question is, what happens when we get to the container's container? It's for sure representing the first/last baselines of its container. Does it try to usurp the first/last baselines of the container's container as well? Example: ``` <ol style="display: inline-block"> <li> <li><ol><li><li style="baseline-priority: high"><li></ol> <li> </ol> ``` The first baseline of the inner OL normally comes from the first line of item 2.1, the last baseline from 2.3. But 2.2 says "pick me", so when we go looking for the first *or* last baselines of the inner OL, we pick the baseline of 2.2. (This would matter if, e.g. the inner OL were a horizontal flexbox that baseline-aligned its items.) Now suppose the LIs are all (inner and outer) arranged vertically, and we need the baseline of the outer OL to align it to the surrounding text. We're doing first-baseline alignment, so we ask the OL for its first baseline. Does it return the baseline of item 1 or item 2.2 (which we propagate through the inner OL to be the baseline of item 2)? -- GitHub Notification of comment by fantasai Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1339#issuecomment-494988680 using your GitHub account
Received on Wednesday, 22 May 2019 21:54:43 UTC