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

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/reftests/forms/button/percent-width-child-1-ref.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,53 @@
     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 +    padding: 0;
    1.16 +
    1.17 +    font: 10px sans-serif;
    1.18 +    text-align: center;
    1.19 +    vertical-align: top;
    1.20 +
    1.21 +    color: black;
    1.22 +    background: gray;
    1.23 +}
    1.24 +
    1.25 +div.p80 {
    1.26 +    width: 80%;
    1.27 +    background: pink;
    1.28 +}
    1.29 +
    1.30 +div.p100 {
    1.31 +    width: 100%;
    1.32 +    background: yellow;
    1.33 +}
    1.34 +</style>
    1.35 +</head>
    1.36 +<body>
    1.37 +<!--Button has explicit width for us to resolve against: -->
    1.38 +<div class="button" style="width: 100px">
    1.39 +  <div class="p80">abc</div>
    1.40 +</div>
    1.41 +
    1.42 +<div class="button" style="width: 100px">
    1.43 +  <div class="p100">abc</div>
    1.44 +</div>
    1.45 +
    1.46 +<!--Button is using intrinsic width: -->
    1.47 +<div class="button">
    1.48 +  <div class="p80">abc</div>
    1.49 +</div>
    1.50 +
    1.51 +<div class="button">
    1.52 +  <div class="p100">abc</div>
    1.53 +</div>
    1.54 +
    1.55 +</body>
    1.56 +</html>

mercurial