W3C home > Mailing lists > Public > public-css-testsuite@w3.org > March 2009

RE: attribute-value-selector-004.xht not well formed

From: Sylvain Galineau <sylvaing@microsoft.com>
Date: Tue, 10 Mar 2009 12:48:39 -0700
To: "public-css-testsuite@w3.org" <public-css-testsuite@w3.org>
Message-ID: <5D97C7EB4695104AB6345E56FE356B19408A7B3AEE@NA-EXMSG-C125.redmond.corp.microsoft.com>

Anne Van Kesteren wrote:
> You would fail a bunch of other tests if that was the case. The goal is
> having a correct implementation of CSS, of course.


We're not talking about other tests, we're talking about this one. My deficient implementation would pass David's proposal even though it is not dropping a rule that must be dropped, which is what the testcase is supposed to be verifying.

> It's not really about being well-formed, it's about the test not making
> that much sense given what CSS parsing already requires.


If it's not about being well-formed, why are we having this thread ? :) Given these rules :

p { color: green; }
p, [1badAttr] { color: red; }

The only way to ensure the entire second rule is dropped is to test both selectors in the group vs. testing one and assuming the other goes away with it because, well, if the UA can drop one then of course it's dropping the other also because duh, that's what the spec says it should do...

Verifying the entire rule is dropped will require invalid markup though. If the latter is not an issue then let's fix this test as proposed and move on.

Fwiw, I do agree with David that the current version only verifies that the element is not selected vs. verifying the rule has been dropped. His proposal does address this but is, imo, incomplete as long as it does not attempt to also select that invalid attribute.


Received on Tuesday, 10 March 2009 19:49:22 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 20 September 2010 17:51:57 GMT