<?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>17632</bug_id>
          
          <creation_ts>2012-06-28 17:45:46 +0000</creation_ts>
          <short_desc>CSS: define rendering of &lt;li&gt; elements in terms of CSS (handling start=&quot;&quot;, reverse=&quot;&quot;, value=&quot;&quot;, and &lt;li&gt; elements that aren&apos;t children of &lt;ol&gt; elements)</short_desc>
          <delta_ts>2016-11-28 23:20:46 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WHATWG</product>
          <component>HTML</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>MOVED</resolution>
          
          
          <bug_file_loc>http://www.whatwg.org/specs/web-apps/current-work/#css-list-rendering</bug_file_loc>
          <status_whiteboard>blocked on css improvements</status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          
          <blocked>27185</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter>contributor</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>annevk</cc>
    
    <cc>bzbarsky</cc>
    
    <cc>ian</cc>
    
    <cc>mike</cc>
    
    <cc>Ms2ger</cc>
    
    <cc>robin</cc>
    
    <cc>silviapfeiffer1</cc>
    
    <cc>zcorpan</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>69500</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2012-06-28 17:45:46 +0000</bug_when>
    <thetext>Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/grouping-content.html
Multipage: http://www.whatwg.org/C#the-ol-element
Complete: http://www.whatwg.org/c#the-ol-element

Comment:
Ordered list numbering needs to be aware of CSS boxes

Posted from: 98.110.194.72 by bzbarsky@mit.edu
User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:16.0) Gecko/16.0 Firefox/16.0</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69501</commentid>
    <comment_count>1</comment_count>
    <who name="Boris Zbarsky">bzbarsky</who>
    <bug_when>2012-06-28 17:49:33 +0000</bug_when>
    <thetext>Consider this testcase:

  &lt;!DOCTYPE html&gt;
  &lt;ol&gt;
    &lt;li&gt;One&lt;/li&gt;
    &lt;li style=&quot;display: none&quot;&gt;&lt;/li&gt;
    &lt;li&gt;Two&lt;/li&gt;
  &lt;/ol&gt;

This is interoperably numbered &quot;1, 2&quot; in Gecko, Presto, WebKit, Trident.

The spec right now says it should be numbered &quot;1, 3&quot; as far as I can tell.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69504</commentid>
    <comment_count>2</comment_count>
    <who name="Boris Zbarsky">bzbarsky</who>
    <bug_when>2012-06-28 17:56:56 +0000</bug_when>
    <thetext>Oh, and how should this affect &lt;ol reversed&gt; numbering?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70987</commentid>
    <comment_count>3</comment_count>
    <who name="">contributor</who>
    <bug_when>2012-07-18 17:52:23 +0000</bug_when>
    <thetext>This bug was cloned to create bug 18260 as part of operation convergence.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72718</commentid>
    <comment_count>4</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2012-08-24 19:05:45 +0000</bug_when>
    <thetext>See my comment in bug 17633. Not sure what to do here.

(The ordinal value of the third &lt;li&gt; here is definitely 3. The question is a little more interesting if the second is &lt;li hidden&gt; rather than &lt;li style&gt;, but even then I&apos;d argue it&apos;s still 3. But I am fine with the ordinal value not matching the rendering in CSS-based UAs, if CSS can define the rendering. Back when I was speccing CSS3 Lists and Generated Content, I think I&apos;d come up with a way of defining &lt;li&gt; in terms of counters, but I don&apos;t know if that went anywhere.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77462</commentid>
    <comment_count>5</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2012-10-30 22:23:28 +0000</bug_when>
    <thetext>I think we should do this by defining the rendering of &lt;li&gt; entirely in terms of CSS, but that means this is blocked on CSS improvements.

I&apos;ve added a note to the spec saying that this is not yet defined, in the meantime.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77463</commentid>
    <comment_count>6</comment_count>
    <who name="">contributor</who>
    <bug_when>2012-10-30 22:24:10 +0000</bug_when>
    <thetext>Checked in as WHATWG revision r7491.
Check-in comment: Add a note saying that CSS list rendering is not yet defined.
http://html5.org/tools/web-apps-tracker?from=7490&amp;to=7491</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77465</commentid>
    <comment_count>7</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2012-10-30 22:25:22 +0000</bug_when>
    <thetext>*** Bug 17633 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78813</commentid>
    <comment_count>8</comment_count>
    <who name="Boris Zbarsky">bzbarsky</who>
    <bug_when>2012-11-26 05:09:44 +0000</bug_when>
    <thetext>Unfortunately, &lt;ol reversed&gt; uses the ordinal values, not anything to do with CSS, right?  So I believe that for the testcase in comment 1 with @reversed thrown in the spec simply doesn&apos;t match implementation reality right now...  Not sure how much that matters, since no one is using @reversed in practice yet.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78865</commentid>
    <comment_count>9</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2012-11-26 20:49:29 +0000</bug_when>
    <thetext>bz: Right, but that&apos;s only because CSS can&apos;t define that yet (the improvements mentioned in comment 5).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>79875</commentid>
    <comment_count>10</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2012-12-10 23:10:37 +0000</bug_when>
    <thetext>Marking this REMIND for now; I&apos;ll reopen in a few months to investigate what the story is with CSS&apos; side of this. In the meantime, I recommend trying to get the CSS WG to make lists be able to handle this markup natively. :-)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>125532</commentid>
    <comment_count>11</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2016-03-16 14:33:26 +0000</bug_when>
    <thetext>*** Bug 24645 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>125536</commentid>
    <comment_count>12</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2016-03-16 16:33:26 +0000</bug_when>
    <thetext>According to Tab Atkins this should be mostly possible using &apos;counter-set&apos;. He suggests that for &quot;reversed&quot; HTML introduces a new internal value for &apos;counter-reset&apos;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>128260</commentid>
    <comment_count>13</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2016-11-28 23:20:46 +0000</bug_when>
    <thetext>https://github.com/whatwg/html/pull/1916
https://github.com/whatwg/html/pull/2002

This seems mostly addressed, except HTML&apos;s rules still can&apos;t be expressed in CSS concepts. That seems unlikely to change in the near future AIUI. If there is interest in that or if there are still issues, please file new ones in GitHub.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>