Wed, 31 Dec 2014 07:53:36 +0100
Correct small whitespace inconsistency, lost while renaming variables.
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 | width: 78px; |
michael@0 | 12 | border: 0; |
michael@0 | 13 | |
michael@0 | 14 | /* Padding to match the -moz-focus-inner border/padding in testcase: */ |
michael@0 | 15 | padding: 7px 1px 3px; |
michael@0 | 16 | |
michael@0 | 17 | font: 10px sans-serif; |
michael@0 | 18 | text-align: center; |
michael@0 | 19 | vertical-align: top; |
michael@0 | 20 | |
michael@0 | 21 | color: black; |
michael@0 | 22 | background: gray; |
michael@0 | 23 | } |
michael@0 | 24 | |
michael@0 | 25 | div.p80 { |
michael@0 | 26 | background: pink; |
michael@0 | 27 | } |
michael@0 | 28 | |
michael@0 | 29 | div.p100 { |
michael@0 | 30 | background: yellow; |
michael@0 | 31 | } |
michael@0 | 32 | </style> |
michael@0 | 33 | </head> |
michael@0 | 34 | <body> |
michael@0 | 35 | <!--Button has explicit height for us to resolve against: --> |
michael@0 | 36 | <div class="button" style="height: 100px"> |
michael@0 | 37 | <div class="p80" style="margin-top: 10px; height: 80px">abc</div> |
michael@0 | 38 | </div> |
michael@0 | 39 | |
michael@0 | 40 | <div class="button" style="height: 100px"> |
michael@0 | 41 | <div class="p100" style="height: 100px">abc</div> |
michael@0 | 42 | </div> |
michael@0 | 43 | |
michael@0 | 44 | <!--Button is using intrinsic height: --> |
michael@0 | 45 | <div class="button"> |
michael@0 | 46 | <div class="p80">abc</div> |
michael@0 | 47 | </div> |
michael@0 | 48 | |
michael@0 | 49 | <div class="button"> |
michael@0 | 50 | <div class="p100">abc</div> |
michael@0 | 51 | </div> |
michael@0 | 52 | |
michael@0 | 53 | </body> |
michael@0 | 54 | </html> |