layout/reftests/w3c-css/submitted/flexbox/flexbox-align-self-horiz-2.xhtml

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

     1 <?xml version="1.0" encoding="UTF-8"?>
     2 <!--
     3      Any copyright is dedicated to the Public Domain.
     4      http://creativecommons.org/publicdomain/zero/1.0/
     5 -->
     6 <!-- Testcase for align-items / align-self behavior, with all the possible
     7      values included on different items within a flex container, and with
     8      margin/border/padding values on each item. -->
     9 <html xmlns="http://www.w3.org/1999/xhtml">
    10   <head>
    11     <title>CSS Test: Testing the behavior of 'align-self' with a horizontal flex container, with margin/padding/border on the items</title>
    12     <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com"/>
    13     <link rel="help" href="http://www.w3.org/TR/css3-flexbox/#align-items-property"/>
    14     <link rel="match" href="flexbox-align-self-horiz-2-ref.xhtml"/>
    15     <style>
    16       .flexbox {
    17         border: 1px dashed blue;
    18         height: 200px;
    19         display: inline-flex;
    20         font-size: 10px;
    21         line-height: 10px;
    22         vertical-align: top;
    23       }
    25       .flexbox > div {
    26         width: 40px;
    27         margin:       1px 2px 3px 4px;
    28         border-width: 2px 3px 4px 5px;
    29         padding:      3px 4px 5px 6px;
    30         border-style: dotted;
    31       }
    33       .big {
    34         height: 100px;
    35         font-size: 20px;
    36         line-height: 20px;
    37       }
    39       /* Classes for each of the various align-self values */
    40       .flex-start {
    41         background: lime;
    42         align-self: flex-start;
    43       }
    44       .flex-end {
    45         background: orange;
    46         align-self: flex-end;
    47       }
    48       .center {
    49         background: lightblue;
    50         align-self: center;
    51       }
    52       .baseline {
    53         background: teal;
    54         align-self: baseline;
    55       }
    56       .stretch {
    57         background: pink;
    58         align-self: stretch;
    59       }
    60    </style>
    61   </head>
    62   <body>
    63     <div class="flexbox">
    64       <div class="flex-start">start</div>
    65       <div class="flex-start big">a b c d e f</div>
    66       <div class="flex-end">end</div>
    67       <div class="flex-end big">a b c d e f</div>
    68       <div class="center">center</div>
    69       <div class="center big">a b c d e f</div>
    70     </div>
    71     <br/>
    72     <div class="flexbox">
    73       <div class="baseline">base</div>
    74       <div class="baseline big">abc</div>
    75       <div class="stretch">stretch</div>
    76       <div class="stretch big">a b c d e f</div>
    77     </div>
    78   </body>
    79 </html>

mercurial