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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/csswg-test/vendor-imports/mozilla/mozilla-central-reftests/flexbox/flexbox-baseline-empty-001b-expected.html

Issue 1705363002: Import Mozilla's flexbox tests from csswg-test (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add test expectations for mac-specific failures Created 4 years, 10 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 <!--
3 Any copyright is dedicated to the Public Domain.
4 http://creativecommons.org/publicdomain/zero/1.0/
5 -->
6 <!-- In this reference case, we have inline-blocks instead of inline
7 flex containers. We stick an Ahem whitespace character in each
8 inline-block, with a customized line-height to make the baseline
9 end up at the bottom of the inline-block's content-box. -->
10 <html>
11 <head>
12 <title>CSS Reftest Reference</title>
13 <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com">
14 <meta charset="utf-8">
15 <link rel="stylesheet" type="text/css" href="support/ahem.css" />
16 <style>
17 body {
18 font: 20px Ahem;
19 }
20 .flexContainer {
21 display: inline-block;
22 height: 16px;
23 width: 16px;
24 /* Each inline-block's baseline will be the baseline of the single Ahem
25 character that it contains. We want to set up that char such that its
26 baseline is at the bottom of the container's content box (since that's
27 the corresponding flex container's baseline). So, we use a line-height
28 of 20px, which gives us a baseline of 20px * 0.8 = 16px, which is the
29 bottom of the container's content-box -- awesome. */
30 line-height: 20px;
31 background: purple;
32 border: 0px dotted black;
33 /* (Elements that want a border will set their border-width.) */
34 }
35 </style>
36 </head>
37 <body>
38 A
39 <!-- We have to include a character in the inline-blocks in order for them
40 to baseline-align; otherwise, they align the bottom of their
41 border-boxes. -->
42 <div class="flexContainer">&nbsp;</div>
43 <div class="flexContainer" style="padding-bottom: 20px">&nbsp;</div>
44 <div class="flexContainer" style="padding: 10px">&nbsp;</div>
45 <div class="flexContainer" style="border-width: 3px">&nbsp;</div>
46 <div class="flexContainer" style="border-bottom-width: 4px">&nbsp;</div>
47 </body>
48 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698