Re: [csswg-drafts] [css-display] How does block inside inline affect the box tree, exactly?

The mechanism that explains the propagation, by the way, is that in Gecko, the span gets split into three parts:
* an inline fragment before the div
* an anonymous block fragment around the div
* an inline fragment after the div

Having the anonymous block fragment is pretty useful for making sure pieces don't get lost when reconstructing boxes following dynamic changes to the DOM.

Though I believe `text-decoration` propagation in Gecko actually uses the style tree which corresponds to the element tree, not the box tree.  `position: relative` is probably a better example.

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

Received on Wednesday, 21 March 2018 04:13:33 UTC