W3C home > Mailing lists > Public > www-style@w3.org > June 2015

(Question) CSS3 parsing procedure, where does parsing Declarations go?

From: Hai Thanh Nguyen <phaikawl@gmail.com>
Date: Fri, 26 Jun 2015 10:20:26 +0700
Message-ID: <CAGG7Rz7o-N2d9sqxs+f=bRxO_64o_DjxnJ4nipOdEUcdAGzZiA@mail.gmail.com>
To: www-style@w3.org
I have a question about http://dev.w3.org/csswg/css-syntax.
It's written in the document that inside Simple Block are declarations.
There's actually instruction on how to parse Declarations. However it
doesn't seem to be anywhere in the overall procedure:
Stylesheet -> Qualified Rule -> Simple Block -> Component Values

There's no path from the Stylesheet that leads to a Declaration, they just
don't belong anywhere in the AST tree that's supposed to be parsed.
Am I missing something? Why is it that way? Like, where am I supposed to
call the "ParseDeclarations" function in my parser? Does it have to be
parsed separately, away from the AST according to the standard? That's
super weird.
Received on Friday, 26 June 2015 07:39:48 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:55 UTC