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

Unified Diff: third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-crash-huge-margins-and-min-height-max-content.html

Issue 2744593002: [css-grid] Protect against negative values in applyStretchAlignmentToChildIfNeeded() (Closed)
Patch Set: Created 3 years, 9 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
Index: third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-crash-huge-margins-and-min-height-max-content.html
diff --git a/third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-crash-huge-margins-and-min-height-max-content.html b/third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-crash-huge-margins-and-min-height-max-content.html
new file mode 100644
index 0000000000000000000000000000000000000000..0368dccf04e5317225f55a67ada9b900492d13d0
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-crash-huge-margins-and-min-height-max-content.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<script>
+ if (window.testRunner)
+ testRunner.dumpAsText();
+</script>
+<style>
+ #grid {
+ display: grid;
+ }
+ #item {
+ padding: 0.5px;
+ margin: 100000000px 0px;
+ min-height: max-content;
+ }
+</style>
+<p>crbug.com/697317 - height &gt;= 0 in LayoutBox.cpp</p>
+<p>This test has PASSED if it does not CRASH.</p>
+<div id="grid">
+ <div id="item"></a>
+</div>

Powered by Google App Engine
This is Rietveld 408576698