<?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>10546</bug_id>
          
          <creation_ts>2010-09-04 04:15:54 +0000</creation_ts>
          <short_desc>It looks like at least some browsers restrict legend display values to &quot;block&quot;</short_desc>
          <delta_ts>2010-10-13 01:20:54 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML WG</product>
          <component>pre-LC1 HTML5 spec (editor: Ian Hickson)</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://www.whatwg.org/specs/web-apps/current-work/#display-types</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>10771</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter>contributor</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>bzbarsky</cc>
    
    <cc>dbaron</cc>
    
    <cc>ian</cc>
    
    <cc>jackalmage</cc>
    
    <cc>mike</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
    
    <cc>public-webapps</cc>
          
          <qa_contact name="HTML WG Bugzilla archive list">public-html-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>38466</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2010-09-04 04:15:54 +0000</bug_when>
    <thetext>Section: http://www.whatwg.org/specs/web-apps/current-work/complete.html#display-types

Comment:
It looks like at least some browsers restrict legend display values to &quot;block&quot;

Posted from: 173.48.34.3</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>38467</commentid>
    <comment_count>1</comment_count>
    <who name="Boris Zbarsky">bzbarsky</who>
    <bug_when>2010-09-04 04:16:44 +0000</bug_when>
    <thetext>Specifically, Webkit and Presto seem to have:

  fieldset &gt; legend { display: block !important }

or some equivalent in their UA sheets.  Should the spec be calling for this?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39423</commentid>
    <comment_count>2</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2010-09-26 00:47:25 +0000</bug_when>
    <thetext>EDITOR&apos;S RESPONSE: This is an Editor&apos;s Response to your comment. If you are satisfied with this response, please change the state of this bug to CLOSED. If you have additional information and would like the editor to reconsider, please reopen this bug. If you would like to escalate the issue to the full HTML Working Group, please add the TrackerRequest keyword to this bug, and suggest title and text for the tracker issue; or you may create a tracker issue yourself, if you are able to do so. For more details, see this document:
   http://dev.w3.org/html5/decision-policy/decision-policy.html

Status: Did Not Understand Request
Change Description: no spec change
Rationale:

I don&apos;t know, is there any good reason to restrict it as such?

Is there any precedent in the HTML spec&apos;s rendering section to restrict a CSS property on an element in this way?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39452</commentid>
    <comment_count>3</comment_count>
    <who name="Tab Atkins Jr.">jackalmage</who>
    <bug_when>2010-09-26 06:34:30 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; Specifically, Webkit and Presto seem to have:
&gt; 
&gt;   fieldset &gt; legend { display: block !important }
&gt; 
&gt; or some equivalent in their UA sheets.  Should the spec be calling for this?

IIRC, &lt;legend&gt; isn&apos;t fully handled through CSS at all in most current browsers.  The &quot;equivalent&quot; is just some magic handling of the display of the element in C++.  This should hopefully *not* be enshrined in the HTML5 spec, as it is a very weird area of current browsers.

Instead, we should be adding something to CSS that allows the proper display of &lt;legend&gt;, so browsers can remove the magic but still display legacy content as it always has.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39587</commentid>
    <comment_count>4</comment_count>
    <who name="Boris Zbarsky">bzbarsky</who>
    <bug_when>2010-09-27 17:16:21 +0000</bug_when>
    <thetext>&gt; Is there any precedent in the HTML spec&apos;s rendering section to restrict a CSS
&gt; property on an element in this way?

Well, since the HTML spec describes rendering of legends in a way that&apos;s not expressible with CSS... it&apos;s already in this territory.

Note that this matters for web compat; for example if legends are allowed to have display other than &quot;block&quot; then first-letter and first-line would not work on them with those other display values... or would they?  There may well be sites that rely on that behavior (we certainly got bug reports about it in Gecko, which is why I raised the bug).

As things stand, implementing a web-compatible &lt;legend&gt; by reference to the HTML5 spec and the CSS2.1 spec is impossible as far as I can see.  I can guarantee that sites are styling &lt;legend&gt; with display:inline and expecting the &quot;default&quot; legend behavior...

Note, btw, that a legend with display:block uses shrink-wrap sizing; I don&apos;t believe the current spec specifies that either.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40961</commentid>
    <comment_count>5</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2010-10-12 00:18:00 +0000</bug_when>
    <thetext>EDITOR&apos;S RESPONSE: This is an Editor&apos;s Response to your comment. If you are satisfied with this response, please change the state of this bug to CLOSED. If you have additional information and would like the editor to reconsider, please reopen this bug. If you would like to escalate the issue to the full HTML Working Group, please add the TrackerRequest keyword to this bug, and suggest title and text for the tracker issue; or you may create a tracker issue yourself, if you are able to do so. For more details, see this document:
   http://dev.w3.org/html5/decision-policy/decision-policy.html

Status: Accepted
Change Description: see diff given below
Rationale: Concurred with reporter&apos;s comments.

Thanks for the help here.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40962</commentid>
    <comment_count>6</comment_count>
    <who name="">contributor</who>
    <bug_when>2010-10-12 00:18:54 +0000</bug_when>
    <thetext>Checked in as WHATWG revision r5602.
Check-in comment: legend { display: list-item } should no longer get a bullet
http://html5.org/tools/web-apps-tracker?from=5601&amp;to=5602</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41189</commentid>
    <comment_count>7</comment_count>
    <who name="Boris Zbarsky">bzbarsky</who>
    <bug_when>2010-10-13 01:20:54 +0000</bug_when>
    <thetext>That looks reasonable... dbaron, want to check it over too?</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>