Chromium Code Reviews| Index: third_party/WebKit/LayoutTests/fast/css-intrinsic-dimensions/fit-content-min-width-with-zero-width-container-should-not-crash.html |
| diff --git a/third_party/WebKit/LayoutTests/fast/css-intrinsic-dimensions/fit-content-min-width-with-zero-width-container-should-not-crash.html b/third_party/WebKit/LayoutTests/fast/css-intrinsic-dimensions/fit-content-min-width-with-zero-width-container-should-not-crash.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..e01be33492c39746d9d29f97cee9fbe750bb89cd |
| --- /dev/null |
| +++ b/third_party/WebKit/LayoutTests/fast/css-intrinsic-dimensions/fit-content-min-width-with-zero-width-container-should-not-crash.html |
| @@ -0,0 +1,40 @@ |
| +<!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; } |
| +</style> |
| +<script src="../../resources/js-test.js"></script> |
|
mstensho (USE GERRIT)
2016/08/09 11:35:26
Nothing is tested in this test, apart from the cra
jfernandez
2016/08/18 19:21:10
I think we can remove it, indeed.
|
| + |
| +<p>Ensure that intrinsic min-width size does not crash because of negative available width assertions.</p> |
| + |
| +<div class="container float"> |
| + <canvas class="min-width-fit-content"></canvas> |
| +</div> |
| + |
| +<div class="container width-0"> |
| + <canvas class="min-width-fit-content"></canvas> |
| +</div> |
| + |
| +<div class="container width-0"> |
| + <div class="min-width-fit-content positioned"></div> |
| +</div> |
| + |
| +<div class="container float"> |
| + <div class="min-width-fit-content positioned"></div> |
| +</div> |
| + |
| +<div class="container width-0"> |
| + <div class="min-width-fit-content"></div> |
| +</div> |
| + |
| +<div class="container float"> |
| + <div class="min-width-fit-content"></div> |
| +</div> |
| + |
| + |