layout/reftests/w3c-css/submitted/flexbox/flexbox-with-pseudo-elements-3.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 <!-- Testcase to ensure we handle ::before and ::after pseudo-elements on a
michael@0 7 flex container, specifically when they've got display:table-row or
michael@0 8 table-cell.
michael@0 9
michael@0 10 Note that we *don't* treat the table row or cell frames themselves as flex
michael@0 11 items, because they get wrapped in an anonymous table box, and *that* is
michael@0 12 the flex item. So, "align-self" and "order" have no effect on the
michael@0 13 row/cell. -->
michael@0 14 <html>
michael@0 15 <head>
michael@0 16 <title>CSS Test: Testing that generated content nodes with table-part display types are wrapped with an anonymous table, which forms a flex item</title>
michael@0 17 <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com">
michael@0 18 <link rel="help" href="http://www.w3.org/TR/css3-flexbox/#flex-items">
michael@0 19 <link rel="match" href="flexbox-with-pseudo-elements-3-ref.html">
michael@0 20 <meta charset="utf-8">
michael@0 21 <style>
michael@0 22 .flexContainer {
michael@0 23 display: flex;
michael@0 24 align-items: flex-end;
michael@0 25 justify-content: space-between;
michael@0 26 height: 50px;
michael@0 27 width: 300px;
michael@0 28 margin-bottom: 2px;
michael@0 29 background: lightgray;
michael@0 30 }
michael@0 31 div.withBefore::before {
michael@0 32 display: table-row;
michael@0 33 content: 'b';
michael@0 34 background: yellow;
michael@0 35 align-self: center; /* should have no effect */
michael@0 36 order: 1; /* should have no effect */
michael@0 37 }
michael@0 38 div.withAfter::after {
michael@0 39 display: table-cell;
michael@0 40 content: 'a';
michael@0 41 background: lightblue;
michael@0 42 align-self: center; /* should have no effect */
michael@0 43 order: -1; /* should have no effect */
michael@0 44 }
michael@0 45 </style>
michael@0 46 </head>
michael@0 47 <body>
michael@0 48 <div class="flexContainer withBefore">
michael@0 49 x
michael@0 50 <div>y</div>
michael@0 51 z
michael@0 52 </div>
michael@0 53 <div class="flexContainer withAfter">
michael@0 54 x
michael@0 55 <div>y</div>
michael@0 56 z
michael@0 57 </div>
michael@0 58 <div class="flexContainer withBefore withAfter">
michael@0 59 x
michael@0 60 <div>y</div>
michael@0 61 z
michael@0 62 </div>
michael@0 63 </body>
michael@0 64 </html>

mercurial