<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>16483</bug_id>
          
          <creation_ts>2012-03-22 18:14:32 +0000</creation_ts>
          <short_desc>Clarify why blocks inside of an inline [do|do not] get their own flexbox item</short_desc>
          <delta_ts>2012-04-17 17:22:14 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>CSS</product>
          <component>Flexbox</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Daniel Holbert">dholbert</reporter>
          <assigned_to name="Tab Atkins Jr.">jackalmage</assigned_to>
          <cc>alexmog</cc>
    
    <cc>dbaron</cc>
    
    <cc>ojan</cc>
          
          <qa_contact>public-css-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>65959</commentid>
    <comment_count>0</comment_count>
    <who name="Daniel Holbert">dholbert</who>
    <bug_when>2012-03-22 18:14:32 +0000</bug_when>
    <thetext>(I just mailed the list about this:
  http://lists.w3.org/Archives/Public/www-style/2012Mar/0528.html
but afterwards I realized it might&apos;ve been better to file a bug, so I&apos;m doing that as well. Apologies if this is overkill. :))

I believe the flexbox spec is currently inconsistent / unclear on handling
of situations with a block inside an inline, like &quot;anonymous item 7.1&quot; in
Example 2.

That example looks like this:
  &lt;div style=&quot;display:flexbox&quot;&gt;
    &lt;span id=&quot;item7.1&quot;&gt;
      text 7.2
      &lt;div id=&quot;not-an-item7.3&quot;&gt;block&lt;/div&gt;
        text 7.4
    &lt;/span&gt;
  &lt;/div&gt;

The prose at the bottom of the example say that not-an-item7.3 doesn&apos;t
form its own flexbox item, because it&apos;s contained inside an inline
element.  (technically, the prose says not-an-item6.3 right now, but
that&apos;s a typo, which I emailed about separately)

However -- I think that prose disagrees with the normative spec text about
what makes a flexbox item: &quot;boxes that satisfy one of the following
criteria... 1. Immediate block-level children of flexbox&quot;)[1].

Note that the normative text refers to _boxes_ there, not _elements_.  And
in the example above, the _box_ for &quot;not-an-item7.3&quot; IS an immediate child
of the flexbox, even if its element is not.

This is according to the inline/block interaction rules in CSS 2.1 section
9.2.1.1 [2]:
[[
&quot;When an inline box contains an in-flow block-level box, the inline box
...[is] broken around the block-level box... The line boxes before the
break and after the break are enclosed in anonymous block boxes, and the
block-level box becomes a sibling of those anonymous boxes
]]

In other words: if we follow CSS2.1 on how blocks behave inside of an
inline, then the box for &quot;not-an-item7.3&quot; becomes an immediate child of
the flexbox, which means the Flexbox spec says it should get its own
flexbox item, contrary to what the example says.

I think this needs clarification in the flexbox spec.  Maybe we need to
use the element hierarchy instead of the box hierarchy for determining
flexbox item eligibility?  I&apos;m not sure if that makes sense.

[1] http://dev.w3.org/csswg/css3-flexbox/#flex-items
[2] http://www.w3.org/TR/CSS21/visuren.html#anonymous-block-level</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>