https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 4ed222f683a26ea90dcb5eef36cf3ea9c8ef65a0 authored by Josh Matthews on 12 September 2018, 16:20:36 UTC
Work around lint failure.
Tip revision: 4ed222f
font-size-039.xht
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title>CSS Test: Font-size using centimeters with a nominal value, 2.54cm</title>
        <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
        <link rel="help" href="http://www.w3.org/TR/CSS21/fonts.html#propdef-font-size" />
        <link rel="help" href="http://www.w3.org/TR/CSS21/fonts.html#font-size-props" />
        <link rel="help" href="http://www.w3.org/TR/css-fonts-3/#font-size-prop"/>
        <meta name="flags" content="ahem" />
        <meta name="assert" content="The 'font-size' property sets a nominal length value in centimeters." />
        <style type="text/css">
            div
            {
                font-family: Ahem;
                line-height: 1em;
                position: relative;
            }
            #div2
            {
                font-size: 2.54cm;
            }
            #div3
            {
                border-top: 2.54cm solid black;
                left: 1.1in;
                position: absolute;
                top: 0;
                width: 2.54cm;
            }
        </style>
    </head>
    <body>
        <p>Test passes if the two boxes below are the same size.</p>
        <div id="div1">
            <div id="div2">X</div>
            <div id="div3"></div>
        </div>
    </body>
</html>
back to top