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:31:26 -0700
To: "public-css-testsuite@w3.org" <public-css-testsuite@w3.org>
Message-ID: <5D97C7EB4695104AB6345E56FE356B19408A0DDABF@NA-EXMSG-C125.redmond.corp.microsoft.com>
> What the spec requires is dropping the entire rule, which is a
> stronger requirement than what you're testing for (failing to match
> one selector within it), not a weaker one.

Again, I do like the idea of adding a selector to the rule to verify the entire rule is dropped which is to say I prefer this: 

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

<p 1badAttr="">This should be green</p>

This tells me the entire rule was not applied vs. assuming that if p is green therefore [1badAttr] was dropped also because....that's what the spec says should happen if you do things properly !?

I don't think that's stronger than the test above which does verify that the entire rule was dropped, not just half of it.
Received on Tuesday, 10 March 2009 19:32:14 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:13:18 UTC