W3C home > Mailing lists > Public > www-style@w3.org > March 2008

[your feeback needed] :nth-child() argument

From: Daniel Glazman <daniel.glazman@disruptive-innovations.com>
Date: Tue, 11 Mar 2008 18:47:29 +0100
Message-ID: <47D6C5B1.30000@disruptive-innovations.com>
To: "www-style@w3.org" <www-style@w3.org>, "Molly E. Holzschlag" <molly@molly.com>, malarkey@malarkey.co.uk, Kevin Lawver <kplawver@aol.com>, Tantek Çelik <tantek@tantek.com>

[ all replies redirected to www-style@w3.org ]

Hello people,

The CSS Working Group discussed today the grammar of the
:nth-child() and friends functional pseudo-classes included
in the Selectors spec. Because of the CSS lexical scanner,
parsing :nth-child(an+b) can be very complex if, as always
in CSS, we allow whitespaces everywhere, including between
the sign of a and its numeral part and so on.
We also would like at some point in the future to discuss
real math expressions in CSS, so we don't want to make today
choices that could be harmful to that future discussion.

We then propose to restrict whitespaces in the nth-child()'s
argument to ONLY after the '(' and before the ')'. Since this is not the
common practice in CSS - whitespace is usually allowed everywhere -
we would like the web designers community to let us know if
they think it's an acceptable compromise or if you think for
instance that web authors will make a lot of mistakes putting
invalid whitespaces inside the expression.

Thanks for your valuable feedback. Feel free to forward the question
as soon as the answer is sent to the mailing-list.

</Daniel>
Received on Tuesday, 11 March 2008 17:47:45 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:55:02 GMT