widget/reftests/meter-fallback-default-style-ref.html

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

michael@0 1 <!DOCTYPE html>
michael@0 2 <html>
michael@0 3 <style>
michael@0 4 div.meter-element {
michael@0 5 /**
michael@0 6 * The purpose of this test is to not show the native style.
michael@0 7 * -moz-appearance: meterbar;
michael@0 8 */
michael@0 9 display: inline-block;
michael@0 10 height: 1em;
michael@0 11 width: 5em;
michael@0 12 vertical-align: -0.2em;
michael@0 13
michael@0 14 background: linear-gradient(#e6e6e6, #e6e6e6, #eeeeee 20%, #cccccc 45%, #cccccc 55%);
michael@0 15 }
michael@0 16
michael@0 17 div.meter-bar {
michael@0 18 /**
michael@0 19 * The purpose of this test is to not show the native style.
michael@0 20 * -moz-appearance: meterchunk;
michael@0 21 */
michael@0 22
michael@0 23 height: 100%;
michael@0 24 width: 100%;
michael@0 25
michael@0 26 background: linear-gradient(#ad7, #ad7, #cea 20%, #7a3 45%, #7a3 55%);
michael@0 27 }
michael@0 28
michael@0 29 div.meter-element { padding: 5px; }
michael@0 30 body > div:nth-child(1) { -moz-appearance: none; }
michael@0 31 body > div:nth-child(2) > .meter-bar { -moz-appearance: none; }
michael@0 32 body > div:nth-child(3) { background: red; }
michael@0 33 body > div:nth-child(4) > .meter-bar { background: red; }
michael@0 34 body > div:nth-child(5) { border: 2px solid red; }
michael@0 35 body > div:nth-child(6) > .meter-bar { border: 5px solid red; width: -moz-calc(100% - 10px); }
michael@0 36 </style>
michael@0 37 <body>
michael@0 38 <div class="meter-element">
michael@0 39 <div class="meter-bar"></div>
michael@0 40 </div>
michael@0 41 <div class="meter-element">
michael@0 42 <div class="meter-bar"></div>
michael@0 43 </div>
michael@0 44 <div class="meter-element">
michael@0 45 <div class="meter-bar"></div>
michael@0 46 </div>
michael@0 47 <div class="meter-element">
michael@0 48 <div class="meter-bar"></div>
michael@0 49 </div>
michael@0 50 <div class="meter-element">
michael@0 51 <div class="meter-bar"></div>
michael@0 52 </div>
michael@0 53 <div class="meter-element">
michael@0 54 <div class="meter-bar"></div>
michael@0 55 </div>
michael@0 56 </body>
michael@0 57 </html>

mercurial