Index: LayoutTests/fast/table/caption-position.html |
diff --git a/LayoutTests/fast/table/caption-position.html b/LayoutTests/fast/table/caption-position.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..6f1847af1eac980dc9996ad78c28f02f16847621 |
--- /dev/null |
+++ b/LayoutTests/fast/table/caption-position.html |
@@ -0,0 +1,25 @@ |
+<!DOCTYPE html> |
+<script src="../../resources/run-after-display.js"></script> |
+ |
+Test passes is above is on top. |
+<table cellspacing="0" cellpadding="0"> |
+ <caption> |
+ <div style="position:relative; height:2em;"> |
+ <div id="elm" style="position:absolute; left:0;">above</div> |
+ </div> |
+ </caption> |
+ <tr> |
+ <td>below</td> |
+ </tr> |
+</table> |
+ |
+<script> |
+if (window.testRunner) |
+ testRunner.waitUntilDone(); |
+ |
+runAfterDisplay(function() { |
mstensho (USE GERRIT)
2014/12/17 20:36:01
Instead of using the runAfterDisplay() machinery,
dsinclair
2014/12/17 20:44:08
I thought I'd tried that, but apparently not. Done
|
+ document.getElementById('elm').style.left = '1px'; |
+ if (testRunner) |
+ testRunner.notifyDone(); |
+}); |
+</script> |