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

Unified Diff: LayoutTests/fast/css/replaced-element-ignore-top-bottom.html

Issue 359673003: Inapplicable top, bottom style shouldn't affect height calculation (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Re-add experimentally removed code and fix it Created 6 years, 6 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 | « no previous file | Source/core/rendering/RenderBoxModelObject.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/css/replaced-element-ignore-top-bottom.html
diff --git a/LayoutTests/fast/css/replaced-element-ignore-top-bottom.html b/LayoutTests/fast/css/replaced-element-ignore-top-bottom.html
new file mode 100644
index 0000000000000000000000000000000000000000..854175eaaa14337655d50ca23c79b23288125083
--- /dev/null
+++ b/LayoutTests/fast/css/replaced-element-ignore-top-bottom.html
@@ -0,0 +1,13 @@
+<!doctype html>
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
+<div>
+ <div style="top: 0; bottom: 0">
+ <img style="height: 100%" src="data:image/gif;base64,R0lGODlhAQABAIAAAAUEBAAAACwAAAAAAQABAAACAkQBADs=">
+ </div>
+</div>
+<script>
+ test(function() {
+ assert_equals(document.querySelector("img").offsetHeight, 1);
+ }, "Inapplicable |top| and |bottom| specified style shouldn't affect height calculation");
+</script>
« no previous file with comments | « no previous file | Source/core/rendering/RenderBoxModelObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698