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

t090204-display-change-01-b-ao.htm: Suggest test update or removal

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>
Message-ID: <66D5CB5D6AB0694592FAF5487C50368B29B55CB80E@NA-EXMSG-C111.redmond.corp.microsoft.com>

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>
 <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';
      #float { width: 100%; float:left; }
      div { background: red; color: green; width: 1em; font-family: Ahem; }
  <body onload="test()">
    <p>There should be no red below, only green.</p>
    <div id="float">X</div>

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

Arron Eicholz
Received on Saturday, 28 February 2009 01:11:03 UTC

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