You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[css-display] Can run-in be inserted as child of block which establishes an inline formatting context? #1228
A run-in box behaves exactly as an inline-level box, except:
If a run-in sequence is immediately followed by a block box that does not establish a new formatting context, it is inserted as direct children of the block box [...]
Otherwise, an anonymous block box is generated around the run-in sequence and all immediately following inline-level content (up to, but not including, the next run-in sequence, if any).
A run-in box with a flow inner display type inlinifies its contents.
The following example is provided:
<dlclass='dict'><dt>dictionary
<dd>a book that lists the words of a language in alphabetical
order and gives their meaning, or that gives the equivalent
words in a different language.
<dt>glossary
<dd>an alphabetical list of terms or words found in or relating
to a specific subject, text, or dialect, with explanations; a
brief dictionary.
</dl>
dictionary: a book that lists the words of a language
in alphabetical order and explains their meaning.
glossary: an alphabetical list of terms or words found
in or relating to a specific subject, text, or dialect,
with explanations; a brief dictionary.
However, the dd establishes an inline formatting context according to CSS 2.1:
A block container box either contains only block-level boxes or establishes an inline formatting context and thus contains only inline-level boxes.
So I think that either the example is wrong and the dt should not be inserted inside the dd, or that the definition should allow a run-in sequence to be inserted as direct children of a block box which establishes an inline formatting context.
changed the title [-][css-display] In example 3, the run-in is inserted as child despite inline formatting context. [/-][+][css-display] Can run-in be inserted as child of block which establishes an inline formatting context?[/+]on Apr 16, 2017
As far as I know the only formatting contexts that can be established by a block box are block and inline ones, so flex and grid ones are already excluded.
Activity
[-][css-display] In example 3, the run-in is inserted as child despite inline formatting context. [/-][+][css-display] Can run-in be inserted as child of block which establishes an inline formatting context?[/+]fantasai commentedon Apr 18, 2017
The latter is clearly the only reasonable interpretation. :) This is going to require some tricky wording fixes, though. :/
Loirooriol commentedon Apr 18, 2017
What about adding the word "block"?
fantasai commentedon Apr 18, 2017
There's also flex and grid formatting contexts... so really we need to exclude inline. :)
fantasai commentedon Apr 18, 2017
But there's related wording that probably also needs fixup, so we need to audit all of it.
Loirooriol commentedon Apr 18, 2017
As far as I know the only formatting contexts that can be established by a block box are block and inline ones, so flex and grid ones are already excluded.
fantasai commentedon Apr 18, 2017
Oh, yeah. :) That would definitely work then.
[css-display] Run-in can be inserted in IFC root. w3c#1228
fantasai commentedon May 15, 2017
All fixed, thank you!