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

Unified Diff: third_party/WebKit/LayoutTests/fast/css-intrinsic-dimensions/fill-available-max-width-with-zero-width-container-should-not-crash.html

Issue 2065243003: [css-sizing] Ensure positive available size on replaced elements Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebaselined test. Created 3 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
Index: third_party/WebKit/LayoutTests/fast/css-intrinsic-dimensions/fill-available-max-width-with-zero-width-container-should-not-crash.html
diff --git a/third_party/WebKit/LayoutTests/fast/css-intrinsic-dimensions/fill-available-max-width-with-zero-width-container-should-not-crash.html b/third_party/WebKit/LayoutTests/fast/css-intrinsic-dimensions/fill-available-max-width-with-zero-width-container-should-not-crash.html
new file mode 100644
index 0000000000000000000000000000000000000000..b63b1ac1a1a89c2ba076b6abc8613493fd1268cf
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/css-intrinsic-dimensions/fill-available-max-width-with-zero-width-container-should-not-crash.html
@@ -0,0 +1,45 @@
+<!DOCTYPE html>
+<link href="resources/width-keyword-classes.css" rel="stylesheet">
+<style>
+.container {
+ position: relative;
+ border: 2px solid red;
+}
+.float { float: left; }
+.positioned { position: absolute; }
+.width-0 { width: 0px; }
+.width-100 { width: 100px; }
+</style>
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
+<div class="container float">
+ <canvas class="max-width-fill-available"></canvas>
+</div>
+
+<div class="container float">
+ <canvas class="max-width-fill-available width-100"></canvas>
+</div>
+
+<div class="container width-0">
+ <canvas class="max-width-fill-available width-100"></canvas>
+</div>
+
+<div class="container width-0">
+ <div class="max-width-fill-available width-100 positioned"></div>
+</div>
+
+<div class="container float">
+ <div class="max-width-fill-available width-100 positioned"></div>
+</div>
+
+<div class="container width-0">
+ <div class="max-width-fill-available width-100"></div>
+</div>
+
+<div class="container float">
+ <div class="max-width-fill-available width-100"></div>
+</div>
+
+<script>
+test(() => {}, 'Ensure that intrinsic max-width size does not crash because of negative available width assertions.');
+</script>

Powered by Google App Engine
This is Rietveld 408576698