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

Agenda+ to ask a specific question. In the following scenario:

```
<span>inline <div>block</div> inline</span>
```

Is the div's block box a child of the span's inline box? (And then fragmentation causes the inline box to generate two inline fragments, one on either side of the block fragment.)

Or does block-splits-inline occur at the box-tree level, such that the span generates two inline boxes, siblings to the block box?

If the latter, which box is the span's principle box (or is it both)?  This seems hard to observe, but I'm sure there are differences *somewhere*. More importantly, what matches browser internals most cleanly?

@fantasai and I think it's best if we go with the first option, where the span generates a single inline box (which generates two fragments), and the div generates a child block box.  The other option seems... tricky.

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

Received on Monday, 19 March 2018 20:38:13 UTC