1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/forms/button/percent-width-child-2-ref.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,55 @@ 1.4 +<!DOCTYPE html> 1.5 +<!-- 1.6 + Any copyright is dedicated to the Public Domain. 1.7 + http://creativecommons.org/publicdomain/zero/1.0/ 1.8 +--> 1.9 +<html> 1.10 +<head> 1.11 +<style> 1.12 +div.button { 1.13 + display: inline-block; 1.14 + border: 0; 1.15 + 1.16 + /* Padding to match the -moz-focus-inner border/padding in testcase: */ 1.17 + padding: 1px 7px 1px 3px; 1.18 + 1.19 + font: 10px sans-serif; 1.20 + text-align: center; 1.21 + vertical-align: top; 1.22 + 1.23 + color: black; 1.24 + background: gray; 1.25 +} 1.26 + 1.27 +div.p80 { 1.28 + width: 80%; 1.29 + background: pink; 1.30 +} 1.31 + 1.32 +div.p100 { 1.33 + width: 100%; 1.34 + background: yellow; 1.35 +} 1.36 +</style> 1.37 +</head> 1.38 +<body> 1.39 +<!--Button has explicit width for us to resolve against: --> 1.40 +<div class="button" style="width: 100px"> 1.41 + <div class="p80">abc</div> 1.42 +</div> 1.43 + 1.44 +<div class="button" style="width: 100px"> 1.45 + <div class="p100">abc</div> 1.46 +</div> 1.47 + 1.48 +<!--Button is using intrinsic width: --> 1.49 +<div class="button"> 1.50 + <div class="p80">abc</div> 1.51 +</div> 1.52 + 1.53 +<div class="button"> 1.54 + <div class="p100">abc</div> 1.55 +</div> 1.56 + 1.57 +</body> 1.58 +</html>