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

Unified Diff: LayoutTests/fast/table/split-anonymous-crash.html

Issue 532513002: Don't use rowIndex() if needsCellRecalc(). (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: NULL check in assertion, to avoid crash in unit tests. Created 6 years, 3 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/table/split-anonymous-crash-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/table/split-anonymous-crash.html
diff --git a/LayoutTests/fast/table/split-anonymous-crash.html b/LayoutTests/fast/table/split-anonymous-crash.html
new file mode 100644
index 0000000000000000000000000000000000000000..5210aa72b8aaf851a345662d13409c02d60a1d30
--- /dev/null
+++ b/LayoutTests/fast/table/split-anonymous-crash.html
@@ -0,0 +1,18 @@
+<!DOCTYPE html>
+<style>
+ #fl:first-letter { color:red; }
+</style>
+<script>
+ if (window.testRunner)
+ testRunner.dumpAsText();
+ window.onload = function() {
+ document.body.offsetTop;
+ elm2.style.display = 'table-row';
+ }
+</script>
+<p>Setting style on a cell whose row hasn't been laid out yet should not crash.</p>
+<div id="fl" style="display:table-row-group; padding-top:1vw;">
+ <div>elm1</div>
+ <div id="elm2" style="display:none;">elm2</div>
+ <div style="display:table-row-group;">nested row group</div>
+</div>
« no previous file with comments | « no previous file | LayoutTests/fast/table/split-anonymous-crash-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698