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

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 UTC