- From: Boris Zbarsky <bzbarsky@MIT.EDU>
- Date: Thu, 02 Dec 2010 11:39:53 -0500
- To: Øyvind Stenhaug <oyvinds@opera.com>
- CC: www-style@w3.org, "public-css-testsuite@w3.org" <public-css-testsuite@w3.org>
On 12/2/10 11:35 AM, Øyvind Stenhaug wrote:
> Hm, if "the rules for matching pairs" refers to 4.1.6 as you say, that
> section is actually about blocks
Ah, indeed. In which case "the rules for matching pairs of (), [], {},
"", and ''" are not actually defined anywhere. ;)
> In "Malformed Statements", it says to parse "by reading until the end of
> the statement". And according to 4.1.7 a selector "consists of
> everything up to (but not including) the first left curly brace".
But clearly some curly braces are excluded from this. For example:
[myAttr="{"] { color: green; }
should match:
<span myAttr="{"></span>
right? I _think_ the intent is that once you see a '(', '[', '{', '"',
or '\'' you must skip forward until either seeing another opening
delimiter (in which case you recursively start skipping), or until you
see the matching closing delimiter.
I agree this could be clearer.
-Boris
Received on Thursday, 2 December 2010 16:40:35 UTC