W3C home > Mailing lists > Public > public-css-testsuite@w3.org > October 2010

Re: [RC2] tables-101 and snowflake overlapping/overflowing cell border

From: fantasai <fantasai.lists@inkedblade.net>
Date: Tue, 26 Oct 2010 14:53:33 -0700
Message-ID: <4CC74DDD.4010708@inkedblade.net>
To: css21testsuite@gtalbot.org
CC: "public-css-testsuite@w3.org" <public-css-testsuite@w3.org>
On 10/22/2010 11:39 AM, "Gérard Talbot" wrote:
>...

I've updated the test to not use a timeout as follows. Let me know if
it seems correct:

Index: tables-101.xht
===================================================================
--- tables-101.xht      (revision 1545)
+++ tables-101.xht      (working copy)
@@ -1,7 +1,7 @@
  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml" lang="en">
   <head>
-  <title>CSS Test: Table layout: checking dynamic layouts match initial layouts</title>
+  <title>CSS Test: Table layout: checking dynamic percentage margin layouts match initial layouts</title>
    <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
    <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/table/dynamic/001.html" type="text/html"/>
    <link rel="help" href="http://www.w3.org/TR/CSS21/box.html#margin-properties" />
@@ -16,12 +16,13 @@
    <script type="text/javascript">
     function test() {
       var element = document.getElementById('test');
+     element.offsetHeight; // Force initial layout
       element.style.marginTop = "10%";
       element.style.marginLeft = "50%";
     }
    </script>
   </head>
- <body onload="setTimeout(test, 0)">
+ <body onload="test();">
    <p>There should be no red below, only green boxes with snowflakes in them.</p>
    <table class="control">
     <tr>
Received on Tuesday, 26 October 2010 21:54:09 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 26 October 2010 21:54:19 GMT