layout/reftests/flexbox/flexbox-widget-flex-items-1.html

Thu, 15 Jan 2015 15:55:04 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 15:55:04 +0100
branch
TOR_BUG_9701
changeset 9
a63d609f5ebe
permissions
-rw-r--r--

Back out 97036ab72558 which inappropriately compared turds to third parties.

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 <!--
michael@0 7 This testcase checks that flex containers honor those widgets (if any) in
michael@0 8 our system theme that have only a single valid size (and hence should
michael@0 9 refuse to flex).
michael@0 10
michael@0 11 e.g. in Gecko with a GTK theme, checkboxes and radio buttons have a single
michael@0 12 valid size, and any specified widths (and min/max-widths) will have no
michael@0 13 effect on their rendering (regardless of whether they're in a flex
michael@0 14 container).
michael@0 15 -->
michael@0 16 <html>
michael@0 17 <head>
michael@0 18 <style>
michael@0 19 div.flexbox {
michael@0 20 display: flex;
michael@0 21 align-items: flex-start;
michael@0 22 border: 2px dotted lightgray;
michael@0 23 width: 400px;
michael@0 24 height: 40px;
michael@0 25 margin-bottom: 10px;
michael@0 26 }
michael@0 27 div.flexbox > * {
michael@0 28 flex: 1;
michael@0 29 outline: 1px dashed black;
michael@0 30 margin: 0;
michael@0 31 vertical-align: top;
michael@0 32 }
michael@0 33 </style>
michael@0 34 </head>
michael@0 35 <body>
michael@0 36 <div class="flexbox"><input type="button"></div>
michael@0 37 <div class="flexbox"><input type="checkbox"></div>
michael@0 38 <div class="flexbox"><input type="file"></div>
michael@0 39 <div class="flexbox"><input type="image"></div>
michael@0 40 <div class="flexbox"><input type="password"></div>
michael@0 41 <div class="flexbox"><input type="radio"></div>
michael@0 42 <div class="flexbox"><input type="reset"></div>
michael@0 43 <div class="flexbox"><input type="submit"></div>
michael@0 44 <div class="flexbox"><input type="text"></div>
michael@0 45 </body>
michael@0 46 </html>

mercurial