Index: third_party/WebKit/LayoutTests/fast/css-intrinsic-dimensions/resize-inside-percent-width-overflow-hidden.html |
diff --git a/third_party/WebKit/LayoutTests/fast/css-intrinsic-dimensions/resize-inside-percent-width-overflow-hidden.html b/third_party/WebKit/LayoutTests/fast/css-intrinsic-dimensions/resize-inside-percent-width-overflow-hidden.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..b21a04ff537bbe498d2d6290e095e6f82ce80a96 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/fast/css-intrinsic-dimensions/resize-inside-percent-width-overflow-hidden.html |
@@ -0,0 +1,15 @@ |
+<!DOCTYPE html> |
+<p>There should be a blue square below.</p> |
+<div id="root" style="width:fit-content;" data-expected-width="100"> |
+ <div style="width:100%; height:10em; overflow:hidden;" data-expected-width="100"> |
+ <div id="child" style="width:20px; height:100px; background:blue;"></div> |
+ </div> |
+</div> |
+<script src="../../resources/testharness.js"></script> |
+<script src="../../resources/testharnessreport.js"></script> |
+<script src="../../resources/check-layout-th.js"></script> |
+<script> |
+ document.body.offsetTop; |
+ document.getElementById("child").style.width = "100px"; |
+ checkLayout("#root"); |
+</script> |