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

Unified Diff: LayoutTests/fast/table/display-table-caption-crash.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/display-table-caption-crash.html
diff --git a/LayoutTests/fast/table/display-table-caption-crash.html b/LayoutTests/fast/table/display-table-caption-crash.html
new file mode 100644
index 0000000000000000000000000000000000000000..45aa21192cf50be5a94f8bef13d6d65ce2175491
--- /dev/null
+++ b/LayoutTests/fast/table/display-table-caption-crash.html
@@ -0,0 +1,30 @@
+<!DOCTYPE html>
+<style>
+.caption:after {
+ position:absolute;
+ content: counter(c, lower-armenian) attr(id);
+ counter-increment: c 895;
+}
+.caption { -webkit-transform:skew(20deg); }
+.caption:last-of-type { display: table-caption; }
+.option:nth-of-type(2n+1) { counter-increment: c 578; }
+</style>
+
+This test passes if it does not CRASH.
+<option>
+
+<script>
+if (window.testRunner)
+ testRunner.dumpAsText();
+
+onload = function() {
+ var el = document.createElement('li');
+ el.setAttribute('class', 'caption');
+ document.body.appendChild(el);
+
+ document.body.offsetTop;
+
+ var o = document.querySelector('option');
+ o.setAttribute('class', 'option');
+}
+</script>
« no previous file with comments | « LayoutTests/fast/table/caption-position-expected.html ('k') | LayoutTests/fast/table/display-table-caption-crash-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698