Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(138)

Unified Diff: LayoutTests/fast/table/caption-position.html

Issue 804383002: Layout captions in simplifiedNormalFlowLayout for tables. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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>

Powered by Google App Engine
This is Rietveld 408576698