W3C

Edit comment LC-1766 for Mobile Web Best Practices Working Group

Quick access to

Previous: LC-1764 Next: LC-1717

Comment LC-1766
:
Commenter: Shadi Abou-Zahra <shadi@w3.org>

or
Resolution status:

COMMENT B.25:
- comment nature: [substantial]
- location: 3.21 STYLE_SHEETS_USE and 2.3.9 Validity
- current wording: If the CSS Style contains at-rules (other than the
@media at-rule), properties, or values that are not recognized as being
valid CSS Level 1 (2.3.9 Validity), warn
...
CSS
A resource is considered a valid CSS resource if it conforms to the
grammar defined in [CSS], Appendix B
- suggested revision: The definition of CSS validity should include in
some way allowed at-rules, properties and values.
- rationale: Test 3.4 fails for content that is not valid CSS with
validity being defined as conforming to the CSS 1 grammar (syntax).
Test 3.21 seems to use the phrase "valid CSS 1" in a sense that is not
just grammar conformance.
So right now, CSS 2 that conforms to the CSS 1 grammar passes 3.4, but
you'll get a lot of warnings, because the grammar does not define
properties and values (3.21)
Additionally,
@import "foo.css" handheld;
would fail 3.4 because of the media type, which is not part of the CSS 1
grammar, while the rule should be considered when collecting the
"Included Resources" (2.3.6).
(space separated ids)
(Please make sure the resolution is adapted for public consumption)


Developed and maintained by Dominique Hazaël-Massieux (dom@w3.org).
$Id: 1766.html,v 1.1 2017/08/11 06:43:44 dom Exp $
Please send bug reports and request for enhancements to w3t-sys.org