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

Unified Diff: LayoutTests/fast/css/counters/stale-inline-box-crash.html

Issue 842913002: RenderCounter::updateCounter should trigger a relayout. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 11 months 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
« no previous file with comments | « no previous file | LayoutTests/fast/css/counters/stale-inline-box-crash-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/css/counters/stale-inline-box-crash.html
diff --git a/LayoutTests/fast/css/counters/stale-inline-box-crash.html b/LayoutTests/fast/css/counters/stale-inline-box-crash.html
new file mode 100644
index 0000000000000000000000000000000000000000..90df3fd20ac85b7e1e8ccbc5d81a41374c9049b5
--- /dev/null
+++ b/LayoutTests/fast/css/counters/stale-inline-box-crash.html
@@ -0,0 +1,42 @@
+<!DOCTYPE html>
+<head>
+<style>
+#el0 {
+ counter-reset: c 1234567890
+}
+
+.c1:before {
+ content: counter(c, hangul-consonant) attr(id);
+ counter-increment: c 567;
+}
+
+.c0:after {
+ display: table-caption;
+ content: counter(c, tigre) attr(id);
+}
+
+</style>
+</head>
+
+<body>
+ PASS: did not crash.
+
+ <q id="el0" class="c0"><q id="el1" class="c1"></q></q>
+
+<script>
+ if (window.testRunner) {
+ testRunner.dumpAsText();
+ testRunner.waitUntilDone();
+ }
+
+ setTimeout(function() {
+ document.styleSheets[0].insertRule('.c1:only-of-type { content: counter(c, circle) attr(id); }', document.styleSheets[0].rules.length);
+ document.body.offsetTop;
+ document.styleSheets[0].insertRule('#el1:last-child { -webkit-column-axis:auto;cjk-earthly-branch) close-quote; counter-reset: c 976; }', document.styleSheets[0].rules.length);
+ document.body.offsetTop;
+
+ if (window.testRunner)
+ testRunner.notifyDone();
+ }, 0);
+</script>
+</body>
« no previous file with comments | « no previous file | LayoutTests/fast/css/counters/stale-inline-box-crash-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698