<?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>21821</bug_id>
          
          <creation_ts>2013-04-24 21:16:19 +0000</creation_ts>
          <short_desc>Re-specify the hashless color and unitless length quirks</short_desc>
          <delta_ts>2013-04-25 17:18:19 +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>Quirks Mode</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>Unsorted</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Tab Atkins Jr.">jackalmage</reporter>
          <assigned_to name="Simon Pieters">zcorpan</assigned_to>
          <cc>mike</cc>
          
          <qa_contact>sideshowbarker+quirksspec</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>86725</commentid>
    <comment_count>0</comment_count>
    <who name="Tab Atkins Jr.">jackalmage</who>
    <bug_when>2013-04-24 21:16:19 +0000</bug_when>
    <thetext>The CSSWG ended up disagreeing with my attempt to define the hashless-color and unitless-length quirks in the Syntax spec, preferring them to be handled at the value/property level.

As such, we should define them here in the Quirks Mode spec again, and then CSS specs will ref it as necessary.

I&apos;d prefer this to be done by defining &lt;quirky-color&gt; and &lt;quirky-length&gt; productions, along with a list of properties affected by the quirk and their new grammars using the above productions.

The only non-trivial grammar is for &apos;font&apos;, as an bare number might be a &lt;quirky-length&gt; for font-size or a &lt;number&gt; for line-height, depending on whether an explicit &lt;length&gt; for font-size also appears in the property value or not.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86738</commentid>
    <comment_count>1</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2013-04-24 21:52:59 +0000</bug_when>
    <thetext>The current/previous spec excluded &apos;font&apos; from supporting the quirk.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86742</commentid>
    <comment_count>2</comment_count>
    <who name="Tab Atkins Jr.">jackalmage</who>
    <bug_when>2013-04-24 22:30:48 +0000</bug_when>
    <thetext>Ah, you&apos;re right, and the &apos;font&apos; property is crazy anyway - numbers that are multiples of 100 might be font-weight values, too.

So, ignore &apos;font&apos;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86750</commentid>
    <comment_count>3</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2013-04-24 23:15:22 +0000</bug_when>
    <thetext>https://github.com/whatwg/quirks/commit/3aa39691b2a2f060d2c5c2ad8b7e05bfb82f0c7e
http://quirks.spec.whatwg.org/#the-hashless-hex-color-quirk

Does that make sense? (I haven&apos;t specced quirky lengths yet.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86754</commentid>
    <comment_count>4</comment_count>
    <who name="Tab Atkins Jr.">jackalmage</who>
    <bug_when>2013-04-24 23:57:58 +0000</bug_when>
    <thetext>Yep, looks great to me.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86773</commentid>
    <comment_count>5</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2013-04-25 09:47:38 +0000</bug_when>
    <thetext>Relevant commits

https://github.com/whatwg/quirks/commit/3aa39691b2a2f060d2c5c2ad8b7e05bfb82f0c7e
https://github.com/whatwg/quirks/commit/5ded3430fe7fb139e0c275643b004511efb813a2
https://github.com/whatwg/quirks/commit/5c15baf3f38ee36709eb08b2daa70e5db67a1022
https://github.com/whatwg/quirks/commit/a217c67991e7b4858bcf53a74f04294cf1354a85</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86802</commentid>
    <comment_count>6</comment_count>
    <who name="Tab Atkins Jr.">jackalmage</who>
    <bug_when>2013-04-25 17:18:19 +0000</bug_when>
    <thetext>Looks good to me!</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>