Index: LayoutTests/fast/replaced/container-width-zero.html |
diff --git a/LayoutTests/fast/replaced/container-width-zero.html b/LayoutTests/fast/replaced/container-width-zero.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..2412f11e06bad02e16504022080bb4a05adedca2 |
--- /dev/null |
+++ b/LayoutTests/fast/replaced/container-width-zero.html |
@@ -0,0 +1,26 @@ |
+<!DOCTYPE html> |
+<html> |
+ <head> |
+ <style> |
+ #leftBar { |
+ margin-right: 2500px; |
+ } |
+ #largeVideo { |
+ width: 100%; |
+ background-color: red; |
+ } |
+ </style> |
+ <script src="../../resources/check-layout.js"></script> |
+ </head> |
+ <body> |
+ <p> crbug.com/235189: If our container's width is zero, then so is ours: there should be no red.<p> |
+ <div id="leftBar"> |
+ <video id="largeVideo" data-expected-width=0></video> |
+ </div> |
+ <script> |
+ checkLayout('#largeVideo'); |
+ </script> |
+ </body> |
+</html> |
+ |
+ |