layout/reftests/forms/button/percent-width-child-1-ref.html

Thu, 15 Jan 2015 21:03:48 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 21:03:48 +0100
branch
TOR_BUG_9701
changeset 11
deefc01c0e14
permissions
-rw-r--r--

Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)

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 <html>
michael@0 7 <head>
michael@0 8 <style>
michael@0 9 div.button {
michael@0 10 display: inline-block;
michael@0 11 border: 0;
michael@0 12 padding: 0;
michael@0 13
michael@0 14 font: 10px sans-serif;
michael@0 15 text-align: center;
michael@0 16 vertical-align: top;
michael@0 17
michael@0 18 color: black;
michael@0 19 background: gray;
michael@0 20 }
michael@0 21
michael@0 22 div.p80 {
michael@0 23 width: 80%;
michael@0 24 background: pink;
michael@0 25 }
michael@0 26
michael@0 27 div.p100 {
michael@0 28 width: 100%;
michael@0 29 background: yellow;
michael@0 30 }
michael@0 31 </style>
michael@0 32 </head>
michael@0 33 <body>
michael@0 34 <!--Button has explicit width for us to resolve against: -->
michael@0 35 <div class="button" style="width: 100px">
michael@0 36 <div class="p80">abc</div>
michael@0 37 </div>
michael@0 38
michael@0 39 <div class="button" style="width: 100px">
michael@0 40 <div class="p100">abc</div>
michael@0 41 </div>
michael@0 42
michael@0 43 <!--Button is using intrinsic width: -->
michael@0 44 <div class="button">
michael@0 45 <div class="p80">abc</div>
michael@0 46 </div>
michael@0 47
michael@0 48 <div class="button">
michael@0 49 <div class="p100">abc</div>
michael@0 50 </div>
michael@0 51
michael@0 52 </body>
michael@0 53 </html>

mercurial