Re: [css3-syntax] EOF and } in at-rule preludes and selectors

On Tue, Jan 29, 2013 at 7:31 PM, Glenn Adams <glenn@skynav.com> wrote:
> On Tue, Jan 29, 2013 at 4:36 PM, Simon Sapin <simon.sapin@kozea.fr> wrote:
>> Indeed, the above @import rule is invalid per the CSS 2.1 core grammar,
>> but I believe that the "User agents must close all open constructs at the
>> end of the style sheet." part of §4.1 should apply.
>
> Agreed, but that doesn't mean that such a CSS style sheet fragment is valid.

Validity is irrelevant.  We just care about behavior.


>> Error handling is a big part of what we’re trying to specify with
>> css3-syntax. The point is to make it interoperable.
>
> Oh, I definitely agree we want to do this. I'm a bit more concerned we get
> the vague semantics of CSS2.1 §4.2 Malformed Declarations/Statements
> corrected, especially w.r.t.
>
>> while observing the rules for matching pairs of (), [], {}, "", and '',
>> and correctly handling escapes

Long-since fixed in the Syntax draft.  (And yes, that line was one of
the reasons I wrote this spec.)

~TJ

Received on Wednesday, 30 January 2013 03:36:58 UTC