layout/reftests/w3c-css/submitted/flexbox/flexbox-margin-auto-horiz-2.xhtml

Sat, 03 Jan 2015 20:18:00 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sat, 03 Jan 2015 20:18:00 +0100
branch
TOR_BUG_3246
changeset 7
129ffea94266
permissions
-rw-r--r--

Conditionally enable double key logic according to:
private browsing mode or privacy.thirdparty.isolate preference and
implement in GetCookieStringCommon and FindCookie where it counts...
With some reservations of how to convince FindCookie users to test
condition and pass a nullptr when disabling double key logic.

michael@0 1 <?xml version="1.0" encoding="UTF-8"?>
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 <!-- Testcase with a variety of 'display: flex' examples
michael@0 7 with margin-top and/or margin-bottom set to 'auto' on flex items. -->
michael@0 8 <html xmlns="http://www.w3.org/1999/xhtml">
michael@0 9 <head>
michael@0 10 <title>CSS Test: Testing vertical auto margins on flex items in a horizontal flex container</title>
michael@0 11 <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com"/>
michael@0 12 <link rel="help" href="http://www.w3.org/TR/css3-flexbox/#auto-margins"/>
michael@0 13 <link rel="match" href="flexbox-margin-auto-horiz-2-ref.xhtml"/>
michael@0 14 <style>
michael@0 15 div.flexbox {
michael@0 16 border: 2px dotted black;
michael@0 17 display: flex;
michael@0 18 margin-bottom: 2px;
michael@0 19 width: 100px;
michael@0 20 }
michael@0 21 div.fixedSize {
michael@0 22 width: 20px;
michael@0 23 height: 20px;
michael@0 24 }
michael@0 25 div.gray { background: gray; }
michael@0 26 div.green { background: green; }
michael@0 27 div.pink { background: pink; }
michael@0 28 div.blue { background: blue; }
michael@0 29
michael@0 30 div.autoTop { margin-top: auto; }
michael@0 31 div.autoBottom { margin-bottom: auto; }
michael@0 32 div.fixedTop { margin-top: 10px; }
michael@0 33 div.fixedBottom { margin-bottom: 10px; }
michael@0 34 </style>
michael@0 35 </head>
michael@0 36 <body>
michael@0 37
michael@0 38 <!-- fixed-height flexbox, with items that have auto margins -->
michael@0 39 <div class="flexbox" style="height: 100px">
michael@0 40 <div class="fixedSize green autoTop"/>
michael@0 41 <div class="fixedSize pink autoBottom"/>
michael@0 42 <div class="fixedSize blue autoTop autoBottom"/>
michael@0 43 </div>
michael@0 44 <!-- fixed-height flexbox, with items that have auto & fixed margins -->
michael@0 45 <div class="flexbox" style="height: 100px">
michael@0 46 <div class="fixedSize green autoTop fixedBottom"/>
michael@0 47 <div class="fixedSize pink autoBottom fixedTop"/>
michael@0 48 </div>
michael@0 49
michael@0 50 <!-- height-shrinkwrapping flexbox, sized by item w/ fixed height & margins,
michael@0 51 with other items that have auto margins -->
michael@0 52 <div class="flexbox">
michael@0 53 <div class="fixedSize green autoTop"/>
michael@0 54 <div class="fixedSize pink autoBottom"/>
michael@0 55 <div class="fixedSize blue autoTop autoBottom"/>
michael@0 56 <div class="fixedTop fixedBottom gray" style="width: 10px; height: 30px"/>
michael@0 57 </div>
michael@0 58
michael@0 59 <!-- height-shrinkwrapping flexbox, sized by item w/ fixed height & margins,
michael@0 60 with other items that have auto & fixed margins -->
michael@0 61 <div class="flexbox">
michael@0 62 <div class="fixedSize green autoTop fixedBottom"/>
michael@0 63 <div class="fixedSize pink autoBottom fixedTop"/>
michael@0 64 <div class="fixedTop fixedBottom gray" style="width: 10px; height: 30px"/>
michael@0 65 </div>
michael@0 66
michael@0 67 </body>
michael@0 68 </html>

mercurial