layout/reftests/forms/text-control-baseline-1.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/reftests/forms/text-control-baseline-1.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,37 @@
     1.4 +<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
     1.5 +        "http://www.w3.org/TR/html4/strict.dtd">
     1.6 +<html lang="en-US">
     1.7 +<head>
     1.8 +        <title>Test for bug 481751</title>
     1.9 +        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    1.10 +	<!--
    1.11 +	    The primary font MarkA has a small line height.  The default font
    1.12 +	    (used for the character '1') will probably have a maximum ascent
    1.13 +	    greater than the ascent plus half leading of MarkA, but this
    1.14 +	    should not change the baseline (and thus position) of the text
    1.15 +	    control.
    1.16 +	  -->
    1.17 +        <style type="text/css">
    1.18 +        @font-face {
    1.19 +                font-family: "MarkA";
    1.20 +                src: url(../fonts/markA.ttf);
    1.21 +        }
    1.22 +	body {
    1.23 +	  background-color: white;
    1.24 +	}
    1.25 +        input, textarea {
    1.26 +	  font-family: "MarkA", sans-serif;
    1.27 +          font-size: 32px;
    1.28 +	  background-color: black;
    1.29 +	  color: black;
    1.30 +	  vertical-align: baseline;
    1.31 +	}
    1.32 +        </style>
    1.33 +</head>
    1.34 +<body>
    1.35 +  <input size="2" value="A">
    1.36 +  <input size="2" value="A1">
    1.37 +  <textarea cols="2">A</textarea>
    1.38 +  <textarea cols="2">A1</textarea>
    1.39 +</body>
    1.40 +</html>

mercurial