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

Unified Diff: third_party/WebKit/LayoutTests/fast/inline-block/vertical-align-top-and-bottom-2.html

Issue 1910053003: Get the right ascent/descent for the tallest vertically aligned container (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@396717-4
Patch Set: Updated Created 4 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
Index: third_party/WebKit/LayoutTests/fast/inline-block/vertical-align-top-and-bottom-2.html
diff --git a/third_party/WebKit/LayoutTests/fast/inline-block/vertical-align-top-and-bottom-2.html b/third_party/WebKit/LayoutTests/fast/inline-block/vertical-align-top-and-bottom-2.html
new file mode 100644
index 0000000000000000000000000000000000000000..61ab1e6722955e5bdaf9864aab8eefd8e3215177
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/inline-block/vertical-align-top-and-bottom-2.html
@@ -0,0 +1,58 @@
+<!DOCTYPE html>
+<style>
+body {
+ padding: 0;
+ margin: 0;
+ font: 10px Ahem;
+}
+.outside {
+ height: 300px;
+}
+.inside {
+ display: inline-block;
+ width: 50px;
+}
+.tall {
+ height: 120px;
+ vertical-align: bottom;
+}
+.short {
+ height: 85px;
+ vertical-align: top;
+}
+.shorter {
+ height: 65px;
+ vertical-align: bottom;
+}
+div:nth-of-type(4) {
+ height: 25px;
+ vertical-align: top;
+}
+div:nth-of-type(5) {
+ height: 150px;
+ vertical-align: top;
+}
+div:nth-of-type(6) {
+ height: 100px;
+ vertical-align: middle;
+}
+div:nth-of-type(7) {
+ height: 190px;
+ vertical-align: bottom;
+}
+</style>
+<script src="../../resources/check-layout.js"></script>
+<div class="outside">
+ <div class="inside tall">1</div>
+ <div class="inside short">2</div>
+ <div class="inside shorter">3</div>
+ <div class="inside">4</div>
+ <div class="inside">5</div>
+ <div class="inside">6</div>
+ <div class="inside">7</div>
+ <span id="line" data-total-y=136>crbug.com/604144: The middle-aligned container should line up with the text line.</span>
+</div>
+<div id="test-output"></div>
+<script>
+window.checkLayout("#line", document.getElementById("test-output"));
+</script>

Powered by Google App Engine
This is Rietveld 408576698