This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 21821 - Re-specify the hashless color and unitless length quirks
Summary: Re-specify the hashless color and unitless length quirks
Status: RESOLVED FIXED
Alias: None
Product: WHATWG
Classification: Unclassified
Component: Quirks Mode (show other bugs)
Version: unspecified
Hardware: PC Linux
: P2 normal
Target Milestone: Unsorted
Assignee: Simon Pieters
QA Contact: sideshowbarker+quirksspec
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-24 21:16 UTC by Tab Atkins Jr.
Modified: 2013-04-25 17:18 UTC (History)
1 user (show)

See Also:


Attachments

Description Tab Atkins Jr. 2013-04-24 21:16:19 UTC
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'd prefer this to be done by defining <quirky-color> and <quirky-length> 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 'font', as an bare number might be a <quirky-length> for font-size or a <number> for line-height, depending on whether an explicit <length> for font-size also appears in the property value or not.
Comment 1 Simon Pieters 2013-04-24 21:52:59 UTC
The current/previous spec excluded 'font' from supporting the quirk.
Comment 2 Tab Atkins Jr. 2013-04-24 22:30:48 UTC
Ah, you're right, and the 'font' property is crazy anyway - numbers that are multiples of 100 might be font-weight values, too.

So, ignore 'font'.
Comment 3 Simon Pieters 2013-04-24 23:15:22 UTC
https://github.com/whatwg/quirks/commit/3aa39691b2a2f060d2c5c2ad8b7e05bfb82f0c7e
http://quirks.spec.whatwg.org/#the-hashless-hex-color-quirk

Does that make sense? (I haven't specced quirky lengths yet.)
Comment 4 Tab Atkins Jr. 2013-04-24 23:57:58 UTC
Yep, looks great to me.
Comment 6 Tab Atkins Jr. 2013-04-25 17:18:19 UTC
Looks good to me!