[csswg-drafts] [css-inline-3] should non-replaced inline elements in phantom line boxes have their block-size adjusted to zero? (#11321)

dbaron has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-inline-3] should non-replaced inline elements in phantom line boxes have their block-size adjusted to zero? ==
In phantom line boxes (see [level 3 definition](https://drafts.csswg.org/css-inline-3/#invisible-line-boxes), [level 2 definition](https://www.w3.org/TR/CSS21/visuren.html#phantom-line-box) there can be non-replaced inline elements.  These elements' block-size (typically height) can matter for things like looking at `offsetHeight`.  The spec section on phantom line boxes says no height adjustments occur; however, Chromium and WebKit both adjust such heights, but Gecko does not.  See [testcase](https://software.hixie.ch/utilities/js/live-dom-viewer/?%3C!DOCTYPE%20html%3E%0Aa%0A%3Cdiv%3E%3Cspan%20id%3D%22s%22%3E%3C%2Fspan%3E%3C%2Fdiv%3E%0Ab%0A%0A%3Cscript%3E%0Aw(s.offsetHeight)%3B%0A%3C%2Fscript%3E) (and look at the log section).

It's possible we should specify this height adjustment behavior; some content may depend on it.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11321 using your GitHub account


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

Received on Wednesday, 4 December 2024 02:18:40 UTC