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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <style>
3 body {
4 padding: 0;
5 margin: 0;
6 font: 10px Ahem;
7 }
8 .outside {
9 height: 300px;
10 }
11 .inside {
12 display: inline-block;
13 width: 50px;
14 }
15 .tall {
16 height: 120px;
17 vertical-align: bottom;
18 }
19 .short {
20 height: 85px;
21 vertical-align: top;
22 }
23 .shorter {
24 height: 65px;
25 vertical-align: bottom;
26 }
27 div:nth-of-type(4) {
28 height: 25px;
29 vertical-align: top;
30 }
31 div:nth-of-type(5) {
32 height: 150px;
33 vertical-align: top;
34 }
35 div:nth-of-type(6) {
36 height: 100px;
37 vertical-align: middle;
38 }
39 div:nth-of-type(7) {
40 height: 190px;
41 vertical-align: bottom;
42 }
43 </style>
44 <script src="../../resources/check-layout.js"></script>
45 <div class="outside">
46 <div class="inside tall">1</div>
47 <div class="inside short">2</div>
48 <div class="inside shorter">3</div>
49 <div class="inside">4</div>
50 <div class="inside">5</div>
51 <div class="inside">6</div>
52 <div class="inside">7</div>
53 <span id="line" data-total-y=136>crbug.com/604144: The middle-aligned contai ner should line up with the text line.</span>
54 </div>
55 <div id="test-output"></div>
56 <script>
57 window.checkLayout("#line", document.getElementById("test-output"));
58 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698