Re: [css3-namespace] 3.1 Syntax

Erik Dahlström wrote:
> Dear CSS WG,
> This is a last call comment from the SVG WG on the CSS Namespaces 
> Module, W3C Working Draft 15 February 2008, 
> Please let us 
> know if you have any questions by CC:ing your responses to
>> Any @namespace rules must follow all @charset and @import rules and
>> precede all other non-ignored at-rules and rule sets in a style
>> sheet
> Why? What benefit does that provide? 

David Baron explained the reasoning behind this placement in

> What if you want to later define an important @-rule and want it to be
> 'right after' @charset?

Then the spec that defines that @-rule will need to specify its placement
with respect to the @namespace rule and clarify that this rule not cause
any later @namespace rules to be considered invalid.

> Preceding all 'non-ignored' @rules seems rather odd, too.  It makes a
> stylesheet move from valid to invalid

This is a forward-compatible parsing requirement to allow for a new @-rule
to be placed before @namespace. With this requirement, if a later spec
introduces such a rule, UAs compatible with the current spec will ignore it
rather than treating the @namespace rule as invalid.

> Suggestion: Simply state that @namespace rules must precede any rules
> that use namespaces.

Rejected for reasons stated above. Please let me know if this is acceptable
or if I should register this as a Formal Objection.


Received on Monday, 10 March 2008 18:05:39 UTC