[css3-selectors] tests should not depend on the ability to style widgets

The tests for the selectors ':enabled', ':disabled', ':checked',
':indeterminate' [1] all require that the UA allows styling of widgets
that are mostly painted by the OS.

Most UA's allow limited styling for widgets, like 'background-color' et
cetera, but don't allow it for _all_, like for example
input[type=checkbox] which is often used in the tests.

Other UA's don't allow styling it all for widgets, since there isn't (1)
  a specification available which describes how it should be done and
(2) the OS might not allow styling for widgets, since it has a style
guidelines for software (this is true for the Mac I believe).

A simple example:
<http://www.w3.org/Style/CSS/Test/CSS3/Selectors/20040510/html/tests/css3-modsel-25.html>

One test that would show if the UA implemented is:

    input:checked + span{ }

Note that this make the test case more difficult, since two selectors
are used, so the test cases should probably be duplicated.

(I choose this example since Mozilla does support ':checked', but it
doesn't allow styling for input[type=text]. When ':checked' was
implemented however there was also a bug with ':pseudo-element +' (not
dynamically updated iirc...) so the test case above failed as well until
they fixed that other bug. One needs to look into this imo.)

[1]
':enabled'
<http://www.w3.org/Style/CSS/Test/CSS3/Selectors/20040510/html/tests/css3-modsel-23.html>
<http://www.w3.org/Style/CSS/Test/CSS3/Selectors/20040510/xml/tests/css3-modsel-23.xml>
<http://www.w3.org/Style/CSS/Test/CSS3/Selectors/20040510/xml/tests/css3-modsel-23.xml>
<http://www.w3.org/Style/CSS/Test/CSS3/Selectors/20040510/xhtml/tests/css3-modsel-23.xml>
':disabled'
<http://www.w3.org/Style/CSS/Test/CSS3/Selectors/20040510/html/tests/css3-modsel-24.html>
<http://www.w3.org/Style/CSS/Test/CSS3/Selectors/20040510/xml/tests/css3-modsel-24.xml>
<http://www.w3.org/Style/CSS/Test/CSS3/Selectors/20040510/xml/tests/css3-modsel-24.xml>
<http://www.w3.org/Style/CSS/Test/CSS3/Selectors/20040510/xhtml/tests/css3-modsel-24.xml>
':checked'
<http://www.w3.org/Style/CSS/Test/CSS3/Selectors/20040510/html/tests/css3-modsel-25.html>
<http://www.w3.org/Style/CSS/Test/CSS3/Selectors/20040510/xml/tests/css3-modsel-25.xml>
<http://www.w3.org/Style/CSS/Test/CSS3/Selectors/20040510/xml/tests/css3-modsel-25.xml>
<http://www.w3.org/Style/CSS/Test/CSS3/Selectors/20040510/xhtml/tests/css3-modsel-25.xml>
':indeterminate'
<http://www.w3.org/Style/CSS/Test/CSS3/Selectors/20040510/html/tests/css3-modsel-d5.html>
<http://www.w3.org/Style/CSS/Test/CSS3/Selectors/20040510/xml/tests/css3-modsel-d5.xml>
<http://www.w3.org/Style/CSS/Test/CSS3/Selectors/20040510/xml/tests/css3-modsel-d5.xml>
<http://www.w3.org/Style/CSS/Test/CSS3/Selectors/20040510/xhtml/tests/css3-modsel-d5.xml>
<http://www.w3.org/Style/CSS/Test/CSS3/Selectors/20040510/html/tests/css3-modsel-d5a.html>
<http://www.w3.org/Style/CSS/Test/CSS3/Selectors/20040510/xml/tests/css3-modsel-d5a.xml>
<http://www.w3.org/Style/CSS/Test/CSS3/Selectors/20040510/xml/tests/css3-modsel-d5a.xml>
<http://www.w3.org/Style/CSS/Test/CSS3/Selectors/20040510/xhtml/tests/css3-modsel-d5a.xml>
<http://www.w3.org/Style/CSS/Test/CSS3/Selectors/20040510/html/tests/css3-modsel-d5d.html>
<http://www.w3.org/Style/CSS/Test/CSS3/Selectors/20040510/xml/tests/css3-modsel-d5d.xml>
<http://www.w3.org/Style/CSS/Test/CSS3/Selectors/20040510/xml/tests/css3-modsel-d5d.xml>
<http://www.w3.org/Style/CSS/Test/CSS3/Selectors/20040510/xhtml/tests/css3-modsel-d5d.xml>


-- 
  Anne van Kesteren
  <http://annevankesteren.nl/>

Received on Sunday, 30 May 2004 07:04:36 UTC