layout/reftests/w3c-css/submitted/flexbox/flexbox-baseline-empty-1-ref.html

Thu, 15 Jan 2015 21:13:52 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 21:13:52 +0100
branch
TOR_BUG_9701
changeset 12
7540298fafa1
permissions
-rw-r--r--

Remove forgotten relic of ABI crash risk averse overloaded method change.

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

mercurial