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

Unified Diff: LayoutTests/fast/replaced/container-width-zero.html

Issue 253743008: Don't use intrinsic width if our container's width is zero. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Updated Created 6 years, 8 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
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/fast/replaced/container-width-zero-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
+
+
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/fast/replaced/container-width-zero-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698