- From: Arron Eicholz <Arron.Eicholz@microsoft.com>
- Date: Fri, 27 Feb 2009 17:10:22 -0800
- To: "public-css-testsuite@w3.org" <public-css-testsuite@w3.org>
http://www.w3.org/Style/CSS/Test/CSS2.1/current/html4/t090204-display-change-01-b-ao.htm This case primarily tests CSSOM functionality. The CSS 2.1 test case guidelines state in section 2.6 [1] "Test should be as cross-platform as reasonably possible...". The case currently fails in all major browsers. We suggest fixing this test to allow it to pass across all browsers by running the test() function on 'body' 'onload' i.e.: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"> <html> <head> <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> <title>CSS Test: Updating layout on display changes</title> <link rel="author" href="mailto:bzbarsky@mit.edu" title="Boris Zbarsky"> <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#display-prop"> <script type="text/javascript"> function test(e) { document.getElementById('float').style.display = 'none'; } </script> <style> #float { width: 100%; float:left; } div { background: red; color: green; width: 1em; font-family: Ahem; } </style> </head> <body onload="test()"> <p>There should be no red below, only green.</p> <div id="float">X</div> <div> X </div> </body> </html> This case needs to be updated or removed from the CSS 2.1 test suite. [1] http://www.w3.org/Style/CSS/Test/guidelines.html#xp -- Thanks, Arron Eicholz
Received on Saturday, 28 February 2009 01:11:03 UTC