- From: Gérard Talbot <css21testsuite@gtalbot.org>
- Date: Sat, 8 Jan 2011 21:28:29 -0800
- To: "Simon Fraser" <smfr@me.com>
- Cc: "public-css-testsuite@w3.org mailing list" <public-css-testsuite@w3.org>
Le Sam 8 janvier 2011 20:46, Simon Fraser a écrit :
> The following tests:
>
> table-anonymous-objects-015
> table-anonymous-objects-016
> table-anonymous-objects-019
> table-anonymous-objects-020
Simon, I wish you would include the full link. It saves time and also
avoid possible errors. We can see if you are referring to RC4 with an
url, if you've been trying the xht version or not..
http://test.csswg.org/suites/css2.1/20101210/html4/table-anonymous-objects-015.htm
http://test.csswg.org/suites/css2.1/20101210/html4/table-anonymous-objects-016.htm
http://test.csswg.org/suites/css2.1/20101210/html4/table-anonymous-objects-019.htm
http://test.csswg.org/suites/css2.1/20101210/html4/table-anonymous-objects-020.htm
> rely on setting the disabled property of a style element:
>
> <style id="s" type="text/css">
The style element can not have an id attribute.
http://www.w3.org/TR/html4/present/styles.html#edef-STYLE
So, right here, there is a markup validation error.
http://validator.w3.org/check?uri=http%3A%2F%2Ftest.csswg.org%2Fsuites%2Fcss2.1%2F20101210%2Fhtml4%2Ftable-anonymous-objects-015.htm&charset=%28detect+automatically%29&doctype=Inline&group=0
> span { display: block ! important }
> </style>
> <script type="text/javascript">
> function doTest() {
> var s = document.getElementById("s");
> s.disabled = true;
What would be correct though is:
<style type="text/css">
span { display: block ! important }
</style>
<script type="text/javascript">
function doTest() {
var s = document.styleSheets[0];
s.disabled = true;
document.documentElement.className = "";
}
http://www.w3.org/TR/2000/REC-DOM-Level-2-Style-20001113/stylesheets.html#StyleSheets-StyleSheet-disabled
> I find no mention of the disabled property in either HTML4 or CSS 2.1
> (the only reference I can find is
> <http://www.w3.org/TR/2004/WD-xhtml2-20040722/mod-styleSheet.html#sec_25.1.>).
>
> Simon
disabled attribute for stylesheet object:
http://www.w3.org/TR/2000/REC-DOM-Level-2-Style-20001113/stylesheets.html#StyleSheets-StyleSheet-disabled
regards, Gérard
--
Contributions to the CSS 2.1 test suite:
http://www.gtalbot.org/BrowserBugsSection/css21testsuite/
CSS 2.1 test suite (RC4; December 10th 2010):
http://test.csswg.org/suites/css2.1/20101210/html4/toc.html
CSS 2.1 test suite contributors:
http://test.csswg.org/source/contributors/
Received on Sunday, 9 January 2011 05:29:05 UTC