<?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>24876</bug_id>
          
          <creation_ts>2014-03-01 08:38:13 +0000</creation_ts>
          <short_desc>[Custom Elements]: Custom elements should be display: block by default</short_desc>
          <delta_ts>2015-07-06 08:08:37 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebAppsWG</product>
          <component>HISTORICAL - Component Model</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>MOVED</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>
          
          <blocked>14949</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Elliott Sprehn">esprehn</reporter>
          <assigned_to name="Dimitri Glazkov">dglazkov</assigned_to>
          <cc>adamk</cc>
    
    <cc>bzbarsky</cc>
    
    <cc>mike</cc>
    
    <cc>public-webapps</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>101695</commentid>
    <comment_count>0</comment_count>
    <who name="Elliott Sprehn">esprehn</who>
    <bug_when>2014-03-01 08:38:13 +0000</bug_when>
    <thetext>Almost every custom element I&apos;ve seen so far has:

&lt;style&gt;
  :host { display: block }
&lt;/style&gt;

inside the ShadowRoot, or a rule in the owning page that makes it into display: block since the default of display: inline for unknown elements is really never want you want. I&apos;ve also seen lots of authors stumble trying to figure out why their custom elements look busted when they first start before they realize they all need this rule.

I think we should consider add some kind of pseudo like :custom and then say the UA sheet has :custom { display: block } to make this simpler.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>101701</commentid>
    <comment_count>1</comment_count>
    <who name="Boris Zbarsky">bzbarsky</who>
    <bug_when>2014-03-01 20:15:58 +0000</bug_when>
    <thetext>Custom form controls presumably wouldn&apos;t be display:block...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>101792</commentid>
    <comment_count>2</comment_count>
    <who name="Elliott Sprehn">esprehn</who>
    <bug_when>2014-03-03 21:35:39 +0000</bug_when>
    <thetext>(In reply to Boris Zbarsky from comment #1)
&gt; Custom form controls presumably wouldn&apos;t be display:block...

Indeed, they probably want to be display: inline-block. What I&apos;ve observed is that in many modern applications custom elements are placed inside flex boxes so display: block is fine since they end up flexed anyway (if they were inline they end up inside anonymous blocks instead).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>101793</commentid>
    <comment_count>3</comment_count>
    <who name="Boris Zbarsky">bzbarsky</who>
    <bug_when>2014-03-03 22:15:19 +0000</bug_when>
    <thetext>Inlines in a flex container don&apos;t create anonymous blocks; they just end up with a computed display of &quot;block&quot;.  The only anonymous anything that happens with flexbox is that text that&apos;s a direct child of a flexbox is wrapped in an anonymous flex item.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>121675</commentid>
    <comment_count>4</comment_count>
    <who name="Hayato Ito">hayato</who>
    <bug_when>2015-07-06 08:08:37 +0000</bug_when>
    <thetext>Moved to https://github.com/w3c/webcomponents/issues/224</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>