[Webkit-unassigned] [Bug 17248] :nth-child() and :lang() should allow spaces before, after and inside the expression

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Mar 11 11:26:36 PDT 2008


http://bugs.webkit.org/show_bug.cgi?id=17248





------- Comment #2 from hyatt at apple.com  2008-03-11 11:26 PDT -------
CSS WG is proposing to amend this so that whitespace is only allowed after the
'(' and before the ')'.

HEre is the text of Daniel's email to www-style:

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>


-- 
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list