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 12737 - Please clarify the validity of "any" in the sizes attribute
Summary: Please clarify the validity of "any" in the sizes attribute
Status: RESOLVED FIXED
Alias: None
Product: HTML WG
Classification: Unclassified
Component: LC1 HTML5 spec (show other bugs)
Version: unspecified
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: Ian 'Hixie' Hickson
QA Contact: HTML WG Bugzilla archive list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-24 11:12 UTC by Henri Sivonen
Modified: 2011-08-12 22:20 UTC (History)
4 users (show)

See Also:


Attachments

Description Henri Sivonen 2011-05-24 11:12:19 UTC
I have trouble comprehending "If specified, the attribute must have a value that is an unordered set of unique space-separated tokens, which are ASCII case-insensitive. The values must all be either an ASCII case-insensitive match for the string "any", or a value that consists of two valid non-negative integers that do not have a leading U+0030 DIGIT ZERO (0) character and that are separated by a single U+0078 LATIN SMALL LETTER X or U+0058 LATIN CAPITAL LETTER X character."

Please clarify if the following are meant to be valid: sizes=" any " sizes="any any" sizes="32x32 any"
Comment 1 Michael[tm] Smith 2011-08-04 05:12:14 UTC
mass-move component to LC1
Comment 2 Ian 'Hixie' Hickson 2011-08-12 22:18:33 UTC
EDITOR'S RESPONSE: This is an Editor'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:

I've tried to tweak the text to be clearer.

sizes=" any " is value because it's a valid "unordered set of unique space-separated tokens" and each token is valid per the paragraph quoted above.

sizes="any any" and sizes="any ANY" are invalid because the tokens aren't all unique, so it's invalid per the  "unordered set of unique space-separated tokens" definition.

sizes="32x32 any" is valid because the values are unique and each value is valid per the paragraph above. It means that the icon file contains a 32x32 bitmap and a scalable vector image. (I guess that could be possible if the icon format is, e.g., a format that consists of a zipfile with SVG and PNG images in it. Such a format isn't supported by anyone currently so a validator may wish to warn about this combination being a likely error at this time.)

Please don't hesitate to reopen if this is still not clear in the spec. I can add more examples or something.
Comment 3 contributor 2011-08-12 22:20:28 UTC
Checked in as WHATWG revision r6439.
Check-in comment: try to clarify
http://html5.org/tools/web-apps-tracker?from=6438&to=6439