<?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>24661</bug_id>
          
          <creation_ts>2014-02-14 12:55:41 +0000</creation_ts>
          <short_desc>Consume a numeric token misses the first digit</short_desc>
          <delta_ts>2014-02-14 16:02:49 +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>Syntax</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</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="Yoav Weiss">yoav</reporter>
          <assigned_to name="Tab Atkins Jr.">jackalmage</assigned_to>
          <cc>simon.sapin</cc>
          
          <qa_contact>public-css-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>100588</commentid>
    <comment_count>0</comment_count>
    <who name="Yoav Weiss">yoav</who>
    <bug_when>2014-02-14 12:55:41 +0000</bug_when>
    <thetext>In http://dev.w3.org/csswg/css-syntax/#consume-a-token , when the input code point consumed is a digit, the spec indicates: &quot;Consume a numeric token, and return it.&quot;
The numeric token consumption starts from the next unconsumed input code point, resulting in the first digit being discarded and not added to the numeric token.

Other code points that lead to &quot;consume a numeric token&quot; (e.g. &apos;+&apos;, &apos;-&apos;, &apos;.&apos;) indicate to reconsume the current code point before calling &quot;consume a numeric token&quot;. I think that the &quot;digit&quot; code point should include similar instructions.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100591</commentid>
    <comment_count>1</comment_count>
    <who name="Simon Sapin">simon.sapin</who>
    <bug_when>2014-02-14 16:02:49 +0000</bug_when>
    <thetext>Thanks for reporting! This was a spec bug, fixed in
https://dvcs.w3.org/hg/csswg/rev/8663b0d5bbf0

This is a nice example of why we want *independent* implementations to validate the spec. I implemented this twice without noticing the bug, because I knew what the spec was supposed to say.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>