wpt / css / CSS2 / syntax / colors-006.xht

Status: PASS | Duration: 10ms | Subtests: 1/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi

/css/CSS2/syntax/colors-006.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: Comparing color keywords and hex values</title>
        <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
        <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#color-units" />
        <link rel="match" href="colors-006-ref.xht" />
        <meta name="assert" content="Color matching of keywords and hex values." />
        <style type="text/css">
            #maroon
            {
                background: maroon;
            }
            #maroonhex
            {
                background: #800000;
            }
            #red
            {
                background: red;
            }
            #redhex
            {
                background: #ff0000;
            }
            #orange
            {
                background: orange;
            }
            #orangehex
            {
                background: #ffa500;
            }
            #yellow
            {
                background: yellow;
            }
            #yellowhex
            {
                background: #ffff00;
            }
            #olive
            {
                background: olive;
            }
            #olivehex
            {
                background: #808000;
            }
            #purple
            {
                background: purple;
            }
            #purplehex
            {
                background: #800080;
            }
            #fuchsia
            {
                background: fuchsia;
            }
            #fuchsiahex
            {
                background: #ff00ff;
            }
            #white
            {
                background: white;
            }
            #whitehex
            {
                background: #ffffff;
            }
            #lime
            {
                background: lime;
            }
            #limehex
            {
                background: #00ff00;
            }
            #green
            {
                background: green;
            }
            #greenhex
            {
                background: #008000;
            }
            #navy
            {
                background: navy;
            }
            #navyhex
            {
                background: #000080;
            }
            #blue
            {
                background: blue;
            }
            #bluehex
            {
                background: #0000ff;
            }
            #aqua
            {
                background: aqua;
            }
            #aquahex
            {
                background: #00ffff;
            }
            #teal
            {
                background: teal;
            }
            #tealhex
            {
                background: #008080;
            }
            #black
            {
                background: black;
            }
            #blackhex
            {
                background: #000000;
            }
            #silver
            {
                background: silver;
            }
            #silverhex
            {
                background: #c0c0c0;
            }
            #gray
            {
                background: gray;
            }
            #grayhex
            {
                background: #808080;
            }
            td
            {
                height: 0.5in;
                width: 0.5in;
            }
        </style>
    </head>
    <body>
        <p>Test passes if the first row of boxes below match the second row of boxes below.</p>
        <table>
            <tr>
                <td id="maroon"></td>
                <td id="red"></td>
                <td id="orange"></td>
                <td id="yellow"></td>
                <td id="olive"></td>
                <td id="purple"></td>
                <td id="fuchsia"></td>
                <td id="white"></td>
                <td id="lime"></td>
                <td id="green"></td>
                <td id="navy"></td>
                <td id="blue"></td>
                <td id="aqua"></td>
                <td id="teal"></td>
                <td id="black"></td>
                <td id="silver"></td>
                <td id="gray"></td>
            </tr>
            <tr>
                <td id="maroonhex"></td>
                <td id="redhex"></td>
                <td id="orangehex"></td>
                <td id="yellowhex"></td>
                <td id="olivehex"></td>
                <td id="purplehex"></td>
                <td id="fuchsiahex"></td>
                <td id="whitehex"></td>
                <td id="limehex"></td>
                <td id="greenhex"></td>
                <td id="navyhex"></td>
                <td id="bluehex"></td>
                <td id="aquahex"></td>
                <td id="tealhex"></td>
                <td id="blackhex"></td>
                <td id="silverhex"></td>
                <td id="grayhex"></td>
            </tr>
        </table>
    </body>
</html>

/css/CSS2/syntax/colors-006-ref.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 Reftest Reference</title>
<link rel="author" title="Ms2ger" href="mailto:Ms2ger@gmail.com"/>
<style type="text/css">
.maroonhex {
  background: #800000;
}
.redhex {
  background: #ff0000;
}
.orangehex {
  background: #ffa500;
}
.yellowhex {
  background: #ffff00;
}
.olivehex {
  background: #808000;
}
.purplehex {
  background: #800080;
}
.fuchsiahex {
  background: #ff00ff;
}
.whitehex {
  background: #ffffff;
}
.limehex {
  background: #00ff00;
}
.greenhex {
  background: #008000;
}
.navyhex {
  background: #000080;
}
.bluehex {
  background: #0000ff;
}
.aquahex {
  background: #00ffff;
}
.tealhex {
  background: #008080;
}
.blackhex {
  background: #000000;
}
.silverhex {
  background: #c0c0c0;
}
.grayhex {
  background: #808080;
}
td {
  height: 0.5in;
  width: 0.5in;
}
</style>
</head>
<body>
<p>Test passes if the first row of boxes below match the second row of boxes below.</p>
<table>
  <tr>
    <td class="maroonhex"/>
    <td class="redhex"/>
    <td class="orangehex"/>
    <td class="yellowhex"/>
    <td class="olivehex"/>
    <td class="purplehex"/>
    <td class="fuchsiahex"/>
    <td class="whitehex"/>
    <td class="limehex"/>
    <td class="greenhex"/>
    <td class="navyhex"/>
    <td class="bluehex"/>
    <td class="aquahex"/>
    <td class="tealhex"/>
    <td class="blackhex"/>
    <td class="silverhex"/>
    <td class="grayhex"/>
  </tr>
  <tr>
    <td class="maroonhex"/>
    <td class="redhex"/>
    <td class="orangehex"/>
    <td class="yellowhex"/>
    <td class="olivehex"/>
    <td class="purplehex"/>
    <td class="fuchsiahex"/>
    <td class="whitehex"/>
    <td class="limehex"/>
    <td class="greenhex"/>
    <td class="navyhex"/>
    <td class="bluehex"/>
    <td class="aquahex"/>
    <td class="tealhex"/>
    <td class="blackhex"/>
    <td class="silverhex"/>
    <td class="grayhex"/>
  </tr>
</table>
</body>
</html>