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

Fri, 16 Jan 2015 04:50:19 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 16 Jan 2015 04:50:19 +0100
branch
TOR_BUG_9701
changeset 13
44a2da4a2ab2
permissions
-rw-r--r--

Replace accessor implementation with direct member state manipulation, by
request https://trac.torproject.org/projects/tor/ticket/9701#comment:32

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 get each container to be sized the same as
michael@0 7 in the testcase, without any visible baseline alignemnt, by using some
michael@0 8 hidden flex items.
michael@0 9 -->
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 <style>
michael@0 16 .flexContainer {
michael@0 17 display: flex;
michael@0 18 width: 50px;
michael@0 19 background: yellow;
michael@0 20 border: 1px dotted black;
michael@0 21 margin: 5px;
michael@0 22 align-items: flex-start;
michael@0 23 }
michael@0 24 .hiddenItemForSizing {
michael@0 25 width: 0;
michael@0 26 color: transparent;
michael@0 27 align-self: baseline;
michael@0 28 }
michael@0 29 .largeFont {
michael@0 30 font-size: 20px;
michael@0 31 background: lightblue;
michael@0 32 /* Our flex items get padding on opposite sides (top/bottom) so that they
michael@0 33 produce a large combined height when baseline-aligned: */
michael@0 34 padding-top: 5px;
michael@0 35 }
michael@0 36 .smallFont {
michael@0 37 font-size: 10px;
michael@0 38 background: pink;
michael@0 39 /* Our flex items get padding on opposite sides (top/bottom) so that they
michael@0 40 produce a large combined height when baseline-aligned: */
michael@0 41 padding-bottom: 20px;
michael@0 42 }
michael@0 43 </style>
michael@0 44 </head>
michael@0 45 <body>
michael@0 46 <div class="flexContainer">
michael@0 47 <div class="largeFont">a</div>
michael@0 48 <!-- Hidden flex items used to determine container's cross size,
michael@0 49 based on their baseline-aligned combined cross size: -->
michael@0 50 <div class="largeFont hiddenItemForSizing">a</div>
michael@0 51 <div class="smallFont hiddenItemForSizing">b</div>
michael@0 52 </div>
michael@0 53
michael@0 54 <div class="flexContainer">
michael@0 55 <div class="smallFont">b</div>
michael@0 56 <!-- Hidden flex items used to determine container's cross size,
michael@0 57 based on their baseline-aligned combined cross size: -->
michael@0 58 <div class="largeFont hiddenItemForSizing">a</div>
michael@0 59 <div class="smallFont hiddenItemForSizing">b</div>
michael@0 60 </div>
michael@0 61 </body>
michael@0 62 </html>

mercurial