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

Unified Diff: LayoutTests/fast/css/display-table-caption.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/css/display-table-caption.html
diff --git a/LayoutTests/fast/css/display-table-caption.html b/LayoutTests/fast/css/display-table-caption.html
new file mode 100644
index 0000000000000000000000000000000000000000..0ff02954f9e443fec268d4436698e5a4e38ff7d1
--- /dev/null
+++ b/LayoutTests/fast/css/display-table-caption.html
@@ -0,0 +1,37 @@
+<!DOCTYPE html>
mstensho (USE GERRIT) 2014/12/16 15:27:01 I think the test would sit better in LayoutTests/f
dsinclair 2014/12/16 15:40:32 Done.
+<script src="../../resources/run-after-display.js"></script>
+<style>
+.c5:after {
+ position:absolute;
+ content: counter(c, lower-armenian) attr(id);
+ counter-increment: c 895;
+}
+.c5 { -webkit-transform:skew(20deg); }
+.c5:last-of-type { display: table-caption; }
+.c4:nth-of-type(2n+1) { counter-increment: c 578; }
+</style>
+
+<option>
mstensho (USE GERRIT) 2014/12/16 15:27:01 This test can be simplified quite a bit. Like usin
dsinclair 2014/12/16 15:40:32 This is a reduction from a CRASH, so I'd like to k
mstensho (USE GERRIT) 2014/12/16 15:43:31 Acknowledged.
+
+This test passes if it does not CRASH.
+
+<script>
+if (window.testRunner) {
+ testRunner.dumpAsText();
+ testRunner.waitUntilDone();
+}
+
+onload = function() {
+ var el = document.createElement('li');
+ el.setAttribute('class', 'c5');
+ document.body.appendChild(el);
+
+ runAfterDisplay(function() {
+ var o = document.querySelector('option');
+ o.setAttribute('class', 'c4');
+
+ if (window.testRunner)
+ testRunner.notifyDone();
+ });
+}
+</script>

Powered by Google App Engine
This is Rietveld 408576698