Status: PASS | Duration: 41ms | Subtests: 1/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/css-color/t425-hsla-values-b.xht
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>CSS Test: hsla() values</title> <link rel="author" title="L. David Baron" href="https://dbaron.org/" /> <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> <link rel="help" href="http://www.w3.org/TR/css3-color/#hsla-color" /> <link rel="match" href="t425-hsla-values-b-ref.html" /> <meta name="assert" content="Implementation of algorithm for converting hsla() colors to rgba() colors." /> <style type="text/css"><![CDATA[ table { border-spacing: 0; padding: 0; border: none; } td { border: none; padding: 0; } td { width: 1.2em; height: 1.2em; } ]]></style> </head> <body> <p>The following table should have three matching rows changing (in 5 steps) from red at the left to black at the right (plus a checkerboard at both ends to show where the rows are):</p> <div style="background: black"> <table border="border"> <tr> <td style="background: black"> </td> <td style="background: hsla(0, 100%, 50%, 1)"> </td> <td style="background: hsla(0, 100%, 50%, 0.8)"> </td> <td style="background: hsla(0, 100%, 50%, 0.6)"> </td> <td style="background: hsla(0, 100%, 50%, 0.4)"> </td> <td style="background: hsla(0, 100%, 50%, 0.2)"> </td> <td style="background: hsla(0, 100%, 50%, 0)"> </td> <td style="background: white"> </td> </tr> <tr> <td style="background: white"> </td> <td style="background: hsla(0, 100%, 50%, 1.0)"> </td> <td style="background: hsla(0, 100%, 40%, 1.0)"> </td> <td style="background: hsla(0, 100%, 30%, 1.0)"> </td> <td style="background: hsla(0, 100%, 20%, 1.0)"> </td> <td style="background: hsla(0, 100%, 10%, 1.0)"> </td> <td style="background: hsla(0, 100%, 0%, 1.0)"> </td> <td style="background: black"> </td> </tr> <tr> <td style="background: black"> </td> <td style="background: rgb(100%, 0%, 0%)"> </td> <td style="background: rgb(80%, 0%, 0%)"> </td> <td style="background: rgb(60%, 0%, 0%)"> </td> <td style="background: rgb(40%, 0%, 0%)"> </td> <td style="background: rgb(20%, 0%, 0%)"> </td> <td style="background: rgb(0%, 0%, 0%)"> </td> <td style="background: white"> </td> </tr> </table> </div> <p>The following table should have three matching rows changing (in 5 steps) from red at the left to white at the right (plus a checkerboard at both ends to show where the rows are):</p> <div style="background: white"> <table border="border"> <tr> <td style="background: white"> </td> <td style="background: hsla(0, 100%, 50%, 1)"> </td> <td style="background: hsla(0, 100%, 50%, 0.8)"> </td> <td style="background: hsla(0, 100%, 50%, 0.6)"> </td> <td style="background: hsla(0, 100%, 50%, 0.4)"> </td> <td style="background: hsla(0, 100%, 50%, 0.2)"> </td> <td style="background: hsla(0, 100%, 50%, 0)"> </td> <td style="background: black"> </td> </tr> <tr> <td style="background: black"> </td> <td style="background: hsla(0, 100%, 50%, 1.0)"> </td> <td style="background: hsla(0, 100%, 60%, 1.0)"> </td> <td style="background: hsla(0, 100%, 70%, 1.0)"> </td> <td style="background: hsla(0, 100%, 80%, 1.0)"> </td> <td style="background: hsla(0, 100%, 90%, 1.0)"> </td> <td style="background: hsla(0, 100%, 100%, 1.0)"> </td> <td style="background: white"> </td> </tr> <tr> <td style="background: white"> </td> <td style="background: rgb(100%, 0%, 0%)"> </td> <td style="background: rgb(100%, 20%, 20%)"> </td> <td style="background: rgb(100%, 40%, 40%)"> </td> <td style="background: rgb(100%, 60%, 60%)"> </td> <td style="background: rgb(100%, 80%, 80%)"> </td> <td style="background: rgb(100%, 100%, 100%)"> </td> <td style="background: black"> </td> </tr> </table> </div> <p>The following table should have three matching rows changing (in 5 steps) from yellow at the left to black at the right (plus a checkerboard at both ends to show where the rows are):</p> <div style="background: black"> <table border="border"> <tr> <td style="background: black"> </td> <td style="background: hsla(60, 100%, 50%, 1)"> </td> <td style="background: hsla(60, 100%, 50%, 0.8)"> </td> <td style="background: hsla(60, 100%, 50%, 0.6)"> </td> <td style="background: hsla(60, 100%, 50%, 0.4)"> </td> <td style="background: hsla(60, 100%, 50%, 0.2)"> </td> <td style="background: hsla(60, 100%, 50%, 0)"> </td> <td style="background: white"> </td> </tr> <tr> <td style="background: white"> </td> <td style="background: hsla(60, 100%, 50%, 1.0)"> </td> <td style="background: hsla(60, 100%, 40%, 1.0)"> </td> <td style="background: hsla(60, 100%, 30%, 1.0)"> </td> <td style="background: hsla(60, 100%, 20%, 1.0)"> </td> <td style="background: hsla(60, 100%, 10%, 1.0)"> </td> <td style="background: hsla(60, 100%, 0%, 1.0)"> </td> <td style="background: black"> </td> </tr> <tr> <td style="background: black"> </td> <td style="background: rgb(100%, 100%, 0%)"> </td> <td style="background: rgb(80%, 80%, 0%)"> </td> <td style="background: rgb(60%, 60%, 0%)"> </td> <td style="background: rgb(40%, 40%, 0%)"> </td> <td style="background: rgb(20%, 20%, 0%)"> </td> <td style="background: rgb(0%, 0%, 0%)"> </td> <td style="background: white"> </td> </tr> </table> </div> <p>The following table should have three matching rows changing (in 5 steps) from yellow at the left to white at the right (plus a checkerboard at both ends to show where the rows are):</p> <div style="background: white"> <table border="border"> <tr> <td style="background: white"> </td> <td style="background: hsla(60, 100%, 50%, 1)"> </td> <td style="background: hsla(60, 100%, 50%, 0.8)"> </td> <td style="background: hsla(60, 100%, 50%, 0.6)"> </td> <td style="background: hsla(60, 100%, 50%, 0.4)"> </td> <td style="background: hsla(60, 100%, 50%, 0.2)"> </td> <td style="background: hsla(60, 100%, 50%, 0)"> </td> <td style="background: black"> </td> </tr> <tr> <td style="background: black"> </td> <td style="background: hsla(60, 100%, 50%, 1.0)"> </td> <td style="background: hsla(60, 100%, 60%, 1.0)"> </td> <td style="background: hsla(60, 100%, 70%, 1.0)"> </td> <td style="background: hsla(60, 100%, 80%, 1.0)"> </td> <td style="background: hsla(60, 100%, 90%, 1.0)"> </td> <td style="background: hsla(60, 100%, 100%, 1.0)"> </td> <td style="background: white"> </td> </tr> <tr> <td style="background: white"> </td> <td style="background: rgb(100%, 100%, 0%)"> </td> <td style="background: rgb(100%, 100%, 20%)"> </td> <td style="background: rgb(100%, 100%, 40%)"> </td> <td style="background: rgb(100%, 100%, 60%)"> </td> <td style="background: rgb(100%, 100%, 80%)"> </td> <td style="background: rgb(100%, 100%, 100%)"> </td> <td style="background: black"> </td> </tr> </table> </div> <p>The following table should have three matching rows changing (in 5 steps) from green at the left to black at the right (plus a checkerboard at both ends to show where the rows are):</p> <div style="background: black"> <table border="border"> <tr> <td style="background: black"> </td> <td style="background: hsla(120, 100%, 50%, 1)"> </td> <td style="background: hsla(120, 100%, 50%, 0.8)"> </td> <td style="background: hsla(120, 100%, 50%, 0.6)"> </td> <td style="background: hsla(120, 100%, 50%, 0.4)"> </td> <td style="background: hsla(120, 100%, 50%, 0.2)"> </td> <td style="background: hsla(120, 100%, 50%, 0)"> </td> <td style="background: white"> </td> </tr> <tr> <td style="background: white"> </td> <td style="background: hsla(120, 100%, 50%, 1.0)"> </td> <td style="background: hsla(120, 100%, 40%, 1.0)"> </td> <td style="background: hsla(120, 100%, 30%, 1.0)"> </td> <td style="background: hsla(120, 100%, 20%, 1.0)"> </td> <td style="background: hsla(120, 100%, 10%, 1.0)"> </td> <td style="background: hsla(120, 100%, 0%, 1.0)"> </td> <td style="background: black"> </td> </tr> <tr> <td style="background: black"> </td> <td style="background: rgb(0%, 100%, 0%)"> </td> <td style="background: rgb(0%, 80%, 0%)"> </td> <td style="background: rgb(0%, 60%, 0%)"> </td> <td style="background: rgb(0%, 40%, 0%)"> </td> <td style="background: rgb(0%, 20%, 0%)"> </td> <td style="background: rgb(0%, 0%, 0%)"> </td> <td style="background: white"> </td> </tr> </table> </div> <p>The following table should have three matching rows changing (in 5 steps) from green at the left to white at the right (plus a checkerboard at both ends to show where the rows are):</p> <div style="background: white"> <table border="border"> <tr> <td style="background: white"> </td> <td style="background: hsla(120, 100%, 50%, 1)"> </td> <td style="background: hsla(120, 100%, 50%, 0.8)"> </td> <td style="background: hsla(120, 100%, 50%, 0.6)"> </td> <td style="background: hsla(120, 100%, 50%, 0.4)"> </td> <td style="background: hsla(120, 100%, 50%, 0.2)"> </td> <td style="background: hsla(120, 100%, 50%, 0)"> </td> <td style="background: black"> </td> </tr> <tr> <td style="background: black"> </td> <td style="background: hsla(120, 100%, 50%, 1.0)"> </td> <td style="background: hsla(120, 100%, 60%, 1.0)"> </td> <td style="background: hsla(120, 100%, 70%, 1.0)"> </td> <td style="background: hsla(120, 100%, 80%, 1.0)"> </td> <td style="background: hsla(120, 100%, 90%, 1.0)"> </td> <td style="background: hsla(120, 100%, 100%, 1.0)"> </td> <td style="background: white"> </td> </tr> <tr> <td style="background: white"> </td> <td style="background: rgb(0%, 100%, 0%)"> </td> <td style="background: rgb(20%, 100%, 20%)"> </td> <td style="background: rgb(40%, 100%, 40%)"> </td> <td style="background: rgb(60%, 100%, 60%)"> </td> <td style="background: rgb(80%, 100%, 80%)"> </td> <td style="background: rgb(100%, 100%, 100%)"> </td> <td style="background: black"> </td> </tr> </table> </div> <p>The following table should have three matching rows changing (in 5 steps) from aqua at the left to black at the right (plus a checkerboard at both ends to show where the rows are):</p> <div style="background: black"> <table border="border"> <tr> <td style="background: black"> </td> <td style="background: hsla(180, 100%, 50%, 1)"> </td> <td style="background: hsla(180, 100%, 50%, 0.8)"> </td> <td style="background: hsla(180, 100%, 50%, 0.6)"> </td> <td style="background: hsla(180, 100%, 50%, 0.4)"> </td> <td style="background: hsla(180, 100%, 50%, 0.2)"> </td> <td style="background: hsla(180, 100%, 50%, 0)"> </td> <td style="background: white"> </td> </tr> <tr> <td style="background: white"> </td> <td style="background: hsla(180, 100%, 50%, 1.0)"> </td> <td style="background: hsla(180, 100%, 40%, 1.0)"> </td> <td style="background: hsla(180, 100%, 30%, 1.0)"> </td> <td style="background: hsla(180, 100%, 20%, 1.0)"> </td> <td style="background: hsla(180, 100%, 10%, 1.0)"> </td> <td style="background: hsla(180, 100%, 0%, 1.0)"> </td> <td style="background: black"> </td> </tr> <tr> <td style="background: black"> </td> <td style="background: rgb(0%, 100%, 100%)"> </td> <td style="background: rgb(0%, 80%, 80%)"> </td> <td style="background: rgb(0%, 60%, 60%)"> </td> <td style="background: rgb(0%, 40%, 40%)"> </td> <td style="background: rgb(0%, 20%, 20%)"> </td> <td style="background: rgb(0%, 0%, 0%)"> </td> <td style="background: white"> </td> </tr> </table> </div> <p>The following table should have three matching rows changing (in 5 steps) from aqua at the left to white at the right (plus a checkerboard at both ends to show where the rows are):</p> <div style="background: white"> <table border="border"> <tr> <td style="background: white"> </td> <td style="background: hsla(180, 100%, 50%, 1)"> </td> <td style="background: hsla(180, 100%, 50%, 0.8)"> </td> <td style="background: hsla(180, 100%, 50%, 0.6)"> </td> <td style="background: hsla(180, 100%, 50%, 0.4)"> </td> <td style="background: hsla(180, 100%, 50%, 0.2)"> </td> <td style="background: hsla(180, 100%, 50%, 0)"> </td> <td style="background: black"> </td> </tr> <tr> <td style="background: black"> </td> <td style="background: hsla(180, 100%, 50%, 1.0)"> </td> <td style="background: hsla(180, 100%, 60%, 1.0)"> </td> <td style="background: hsla(180, 100%, 70%, 1.0)"> </td> <td style="background: hsla(180, 100%, 80%, 1.0)"> </td> <td style="background: hsla(180, 100%, 90%, 1.0)"> </td> <td style="background: hsla(180, 100%, 100%, 1.0)"> </td> <td style="background: white"> </td> </tr> <tr> <td style="background: white"> </td> <td style="background: rgb(0%, 100%, 100%)"> </td> <td style="background: rgb(20%, 100%, 100%)"> </td> <td style="background: rgb(40%, 100%, 100%)"> </td> <td style="background: rgb(60%, 100%, 100%)"> </td> <td style="background: rgb(80%, 100%, 100%)"> </td> <td style="background: rgb(100%, 100%, 100%)"> </td> <td style="background: black"> </td> </tr> </table> </div> <p>The following table should have three matching rows changing (in 5 steps) from blue at the left to black at the right (plus a checkerboard at both ends to show where the rows are):</p> <div style="background: black"> <table border="border"> <tr> <td style="background: black"> </td> <td style="background: hsla(240, 100%, 50%, 1)"> </td> <td style="background: hsla(240, 100%, 50%, 0.8)"> </td> <td style="background: hsla(240, 100%, 50%, 0.6)"> </td> <td style="background: hsla(240, 100%, 50%, 0.4)"> </td> <td style="background: hsla(240, 100%, 50%, 0.2)"> </td> <td style="background: hsla(240, 100%, 50%, 0)"> </td> <td style="background: white"> </td> </tr> <tr> <td style="background: white"> </td> <td style="background: hsla(240, 100%, 50%, 1.0)"> </td> <td style="background: hsla(240, 100%, 40%, 1.0)"> </td> <td style="background: hsla(240, 100%, 30%, 1.0)"> </td> <td style="background: hsla(240, 100%, 20%, 1.0)"> </td> <td style="background: hsla(240, 100%, 10%, 1.0)"> </td> <td style="background: hsla(240, 100%, 0%, 1.0)"> </td> <td style="background: black"> </td> </tr> <tr> <td style="background: black"> </td> <td style="background: rgb(0%, 0%, 100%)"> </td> <td style="background: rgb(0%, 0%, 80%)"> </td> <td style="background: rgb(0%, 0%, 60%)"> </td> <td style="background: rgb(0%, 0%, 40%)"> </td> <td style="background: rgb(0%, 0%, 20%)"> </td> <td style="background: rgb(0%, 0%, 0%)"> </td> <td style="background: white"> </td> </tr> </table> </div> <p>The following table should have three matching rows changing (in 5 steps) from blue at the left to white at the right (plus a checkerboard at both ends to show where the rows are):</p> <div style="background: white"> <table border="border"> <tr> <td style="background: white"> </td> <td style="background: hsla(240, 100%, 50%, 1)"> </td> <td style="background: hsla(240, 100%, 50%, 0.8)"> </td> <td style="background: hsla(240, 100%, 50%, 0.6)"> </td> <td style="background: hsla(240, 100%, 50%, 0.4)"> </td> <td style="background: hsla(240, 100%, 50%, 0.2)"> </td> <td style="background: hsla(240, 100%, 50%, 0)"> </td> <td style="background: black"> </td> </tr> <tr> <td style="background: black"> </td> <td style="background: hsla(240, 100%, 50%, 1.0)"> </td> <td style="background: hsla(240, 100%, 60%, 1.0)"> </td> <td style="background: hsla(240, 100%, 70%, 1.0)"> </td> <td style="background: hsla(240, 100%, 80%, 1.0)"> </td> <td style="background: hsla(240, 100%, 90%, 1.0)"> </td> <td style="background: hsla(240, 100%, 100%, 1.0)"> </td> <td style="background: white"> </td> </tr> <tr> <td style="background: white"> </td> <td style="background: rgb(0%, 0%, 100%)"> </td> <td style="background: rgb(20%, 20%, 100%)"> </td> <td style="background: rgb(40%, 40%, 100%)"> </td> <td style="background: rgb(60%, 60%, 100%)"> </td> <td style="background: rgb(80%, 80%, 100%)"> </td> <td style="background: rgb(100%, 100%, 100%)"> </td> <td style="background: black"> </td> </tr> </table> </div> <p>The following table should have three matching rows changing (in 5 steps) from fuchsia at the left to black at the right (plus a checkerboard at both ends to show where the rows are):</p> <div style="background: black"> <table border="border"> <tr> <td style="background: black"> </td> <td style="background: hsla(300, 100%, 50%, 1)"> </td> <td style="background: hsla(300, 100%, 50%, 0.8)"> </td> <td style="background: hsla(300, 100%, 50%, 0.6)"> </td> <td style="background: hsla(300, 100%, 50%, 0.4)"> </td> <td style="background: hsla(300, 100%, 50%, 0.2)"> </td> <td style="background: hsla(300, 100%, 50%, 0)"> </td> <td style="background: white"> </td> </tr> <tr> <td style="background: white"> </td> <td style="background: hsla(300, 100%, 50%, 1.0)"> </td> <td style="background: hsla(300, 100%, 40%, 1.0)"> </td> <td style="background: hsla(300, 100%, 30%, 1.0)"> </td> <td style="background: hsla(300, 100%, 20%, 1.0)"> </td> <td style="background: hsla(300, 100%, 10%, 1.0)"> </td> <td style="background: hsla(300, 100%, 0%, 1.0)"> </td> <td style="background: black"> </td> </tr> <tr> <td style="background: black"> </td> <td style="background: rgb(100%, 0%, 100%)"> </td> <td style="background: rgb(80%, 0%, 80%)"> </td> <td style="background: rgb(60%, 0%, 60%)"> </td> <td style="background: rgb(40%, 0%, 40%)"> </td> <td style="background: rgb(20%, 0%, 20%)"> </td> <td style="background: rgb(0%, 0%, 0%)"> </td> <td style="background: white"> </td> </tr> </table> </div> <p>The following table should have three matching rows changing (in 5 steps) from fuchsia at the left to white at the right (plus a checkerboard at both ends to show where the rows are):</p> <div style="background: white"> <table border="border"> <tr> <td style="background: white"> </td> <td style="background: hsla(300, 100%, 50%, 1)"> </td> <td style="background: hsla(300, 100%, 50%, 0.8)"> </td> <td style="background: hsla(300, 100%, 50%, 0.6)"> </td> <td style="background: hsla(300, 100%, 50%, 0.4)"> </td> <td style="background: hsla(300, 100%, 50%, 0.2)"> </td> <td style="background: hsla(300, 100%, 50%, 0)"> </td> <td style="background: black"> </td> </tr> <tr> <td style="background: black"> </td> <td style="background: hsla(300, 100%, 50%, 1.0)"> </td> <td style="background: hsla(300, 100%, 60%, 1.0)"> </td> <td style="background: hsla(300, 100%, 70%, 1.0)"> </td> <td style="background: hsla(300, 100%, 80%, 1.0)"> </td> <td style="background: hsla(300, 100%, 90%, 1.0)"> </td> <td style="background: hsla(300, 100%, 100%, 1.0)"> </td> <td style="background: white"> </td> </tr> <tr> <td style="background: white"> </td> <td style="background: rgb(100%, 0%, 100%)"> </td> <td style="background: rgb(100%, 20%, 100%)"> </td> <td style="background: rgb(100%, 40%, 100%)"> </td> <td style="background: rgb(100%, 60%, 100%)"> </td> <td style="background: rgb(100%, 80%, 100%)"> </td> <td style="background: rgb(100%, 100%, 100%)"> </td> <td style="background: black"> </td> </tr> </table> </div> <p>The following table should have two matching rows changing (in 5 steps) from red at the left to green at the right (plus a checkerboard at both ends to show where the rows are):</p> <div style="background: lime"> <table border="border"> <tr> <td style="background: black"> </td> <td style="background: hsla(0, 100%, 50%, 1)"> </td> <td style="background: hsla(0, 100%, 50%, 0.8)"> </td> <td style="background: hsla(0, 100%, 50%, 0.6)"> </td> <td style="background: hsla(0, 100%, 50%, 0.4)"> </td> <td style="background: hsla(0, 100%, 50%, 0.2)"> </td> <td style="background: hsla(0, 100%, 50%, 0)"> </td> <td style="background: white"> </td> </tr> <tr> <td style="background: white"> </td> <td style="background: rgb(100%, 0%, 0%)"> </td> <td style="background: rgb(80%, 20%, 0%)"> </td> <td style="background: rgb(60%, 40%, 0%)"> </td> <td style="background: rgb(40%, 60%, 0%)"> </td> <td style="background: rgb(20%, 80%, 0%)"> </td> <td style="background: rgb(0%, 100%, 0%)"> </td> <td style="background: black"> </td> </tr> </table> </div> <p>The following table should have two matching rows changing (in 5 steps) from green at the left to blue at the right (plus a checkerboard at both ends to show where the rows are):</p> <div style="background: blue"> <table border="border"> <tr> <td style="background: black"> </td> <td style="background: hsla(120, 100%, 50%, 1)"> </td> <td style="background: hsla(120, 100%, 50%, 0.8)"> </td> <td style="background: hsla(120, 100%, 50%, 0.6)"> </td> <td style="background: hsla(120, 100%, 50%, 0.4)"> </td> <td style="background: hsla(120, 100%, 50%, 0.2)"> </td> <td style="background: hsla(120, 100%, 50%, 0)"> </td> <td style="background: white"> </td> </tr> <tr> <td style="background: white"> </td> <td style="background: rgb(0%, 100%, 0%)"> </td> <td style="background: rgb(0%, 80%, 20%)"> </td> <td style="background: rgb(0%, 60%, 40%)"> </td> <td style="background: rgb(0%, 40%, 60%)"> </td> <td style="background: rgb(0%, 20%, 80%)"> </td> <td style="background: rgb(0%, 0%, 100%)"> </td> <td style="background: black"> </td> </tr> </table> </div> <p>The following table should have two matching rows changing (in 5 steps) from blue at the left to red at the right (plus a checkerboard at both ends to show where the rows are):</p> <div style="background: red"> <table border="border"> <tr> <td style="background: black"> </td> <td style="background: hsla(240, 100%, 50%, 1)"> </td> <td style="background: hsla(240, 100%, 50%, 0.8)"> </td> <td style="background: hsla(240, 100%, 50%, 0.6)"> </td> <td style="background: hsla(240, 100%, 50%, 0.4)"> </td> <td style="background: hsla(240, 100%, 50%, 0.2)"> </td> <td style="background: hsla(240, 100%, 50%, 0)"> </td> <td style="background: white"> </td> </tr> <tr> <td style="background: white"> </td> <td style="background: rgb(0%, 0%, 100%)"> </td> <td style="background: rgb(20%, 0%, 80%)"> </td> <td style="background: rgb(40%, 0%, 60%)"> </td> <td style="background: rgb(60%, 0%, 40%)"> </td> <td style="background: rgb(80%, 0%, 20%)"> </td> <td style="background: rgb(100%, 0%, 0%)"> </td> <td style="background: black"> </td> </tr> </table> </div> </body> </html>
/css/css-color/t425-hsla-values-b-ref.html
<!DOCTYPE html> <meta charset="utf-8"> <title>CSS Reference</title> <link rel="author" title="Intel" href="http://www.intel.com"> <style> table { border-spacing: 0; padding: 0; border: none; } td { border: none; padding: 0; } td { width: 1.2em; height: 1.2em; } </style> <body> <p>The following table should have three matching rows changing (in 5 steps) from red at the left to black at the right (plus a checkerboard at both ends to show where the rows are):</p> <div style="background: black"> <table border="border"> <tr> <td style="background: black"> </td> <td style="background: rgb(100%, 0%, 0%)"> </td> <td style="background: rgb(80%, 0%, 0%)"> </td> <td style="background: rgb(60%, 0%, 0%)"> </td> <td style="background: rgb(40%, 0%, 0%)"> </td> <td style="background: rgb(20%, 0%, 0%)"> </td> <td style="background: rgb(0%, 0%, 0%)"> </td> <td style="background: white"> </td> </tr> <tr> <td style="background: white"> </td> <td style="background: rgb(100%, 0%, 0%)"> </td> <td style="background: rgb(80%, 0%, 0%)"> </td> <td style="background: rgb(60%, 0%, 0%)"> </td> <td style="background: rgb(40%, 0%, 0%)"> </td> <td style="background: rgb(20%, 0%, 0%)"> </td> <td style="background: rgb(0%, 0%, 0%)"> </td> <td style="background: black"> </td> </tr> <tr> <td style="background: black"> </td> <td style="background: rgb(100%, 0%, 0%)"> </td> <td style="background: rgb(80%, 0%, 0%)"> </td> <td style="background: rgb(60%, 0%, 0%)"> </td> <td style="background: rgb(40%, 0%, 0%)"> </td> <td style="background: rgb(20%, 0%, 0%)"> </td> <td style="background: rgb(0%, 0%, 0%)"> </td> <td style="background: white"> </td> </tr> </table> </div> <p>The following table should have three matching rows changing (in 5 steps) from red at the left to white at the right (plus a checkerboard at both ends to show where the rows are):</p> <div style="background: white"> <table border="border"> <tr> <td style="background: white"> </td> <td style="background: rgb(100%, 0%, 0%)"> </td> <td style="background: rgb(100%, 20%, 20%)"> </td> <td style="background: rgb(100%, 40%, 40%)"> </td> <td style="background: rgb(100%, 60%, 60%)"> </td> <td style="background: rgb(100%, 80%, 80%)"> </td> <td style="background: rgb(100%, 100%, 100%)"> </td> <td style="background: black"> </td> </tr> <tr> <td style="background: black"> </td> <td style="background: rgb(100%, 0%, 0%)"> </td> <td style="background: rgb(100%, 20%, 20%)"> </td> <td style="background: rgb(100%, 40%, 40%)"> </td> <td style="background: rgb(100%, 60%, 60%)"> </td> <td style="background: rgb(100%, 80%, 80%)"> </td> <td style="background: rgb(100%, 100%, 100%)"> </td> <td style="background: white"> </td> </tr> <tr> <td style="background: white"> </td> <td style="background: rgb(100%, 0%, 0%)"> </td> <td style="background: rgb(100%, 20%, 20%)"> </td> <td style="background: rgb(100%, 40%, 40%)"> </td> <td style="background: rgb(100%, 60%, 60%)"> </td> <td style="background: rgb(100%, 80%, 80%)"> </td> <td style="background: rgb(100%, 100%, 100%)"> </td> <td style="background: black"> </td> </tr> </table> </div> <p>The following table should have three matching rows changing (in 5 steps) from yellow at the left to black at the right (plus a checkerboard at both ends to show where the rows are):</p> <div style="background: black"> <table border="border"> <tr> <td style="background: black"> </td> <td style="background: rgb(100%, 100%, 0%)"> </td> <td style="background: rgb(80%, 80%, 0%)"> </td> <td style="background: rgb(60%, 60%, 0%)"> </td> <td style="background: rgb(40%, 40%, 0%)"> </td> <td style="background: rgb(20%, 20%, 0%)"> </td> <td style="background: rgb(0%, 0%, 0%)"> </td> <td style="background: white"> </td> </tr> <tr> <td style="background: white"> </td> <td style="background: rgb(100%, 100%, 0%)"> </td> <td style="background: rgb(80%, 80%, 0%)"> </td> <td style="background: rgb(60%, 60%, 0%)"> </td> <td style="background: rgb(40%, 40%, 0%)"> </td> <td style="background: rgb(20%, 20%, 0%)"> </td> <td style="background: rgb(0%, 0%, 0%)"> </td> <td style="background: black"> </td> </tr> <tr> <td style="background: black"> </td> <td style="background: rgb(100%, 100%, 0%)"> </td> <td style="background: rgb(80%, 80%, 0%)"> </td> <td style="background: rgb(60%, 60%, 0%)"> </td> <td style="background: rgb(40%, 40%, 0%)"> </td> <td style="background: rgb(20%, 20%, 0%)"> </td> <td style="background: rgb(0%, 0%, 0%)"> </td> <td style="background: white"> </td> </tr> </table> </div> <p>The following table should have three matching rows changing (in 5 steps) from yellow at the left to white at the right (plus a checkerboard at both ends to show where the rows are):</p> <div style="background: white"> <table border="border"> <tr> <td style="background: white"> </td> <td style="background: rgb(100%, 100%, 0%)"> </td> <td style="background: rgb(100%, 100%, 20%)"> </td> <td style="background: rgb(100%, 100%, 40%)"> </td> <td style="background: rgb(100%, 100%, 60%)"> </td> <td style="background: rgb(100%, 100%, 80%)"> </td> <td style="background: rgb(100%, 100%, 100%)"> </td> <td style="background: black"> </td> </tr> <tr> <td style="background: black"> </td> <td style="background: rgb(100%, 100%, 0%)"> </td> <td style="background: rgb(100%, 100%, 20%)"> </td> <td style="background: rgb(100%, 100%, 40%)"> </td> <td style="background: rgb(100%, 100%, 60%)"> </td> <td style="background: rgb(100%, 100%, 80%)"> </td> <td style="background: rgb(100%, 100%, 100%)"> </td> <td style="background: white"> </td> </tr> <tr> <td style="background: white"> </td> <td style="background: rgb(100%, 100%, 0%)"> </td> <td style="background: rgb(100%, 100%, 20%)"> </td> <td style="background: rgb(100%, 100%, 40%)"> </td> <td style="background: rgb(100%, 100%, 60%)"> </td> <td style="background: rgb(100%, 100%, 80%)"> </td> <td style="background: rgb(100%, 100%, 100%)"> </td> <td style="background: black"> </td> </tr> </table> </div> <p>The following table should have three matching rows changing (in 5 steps) from green at the left to black at the right (plus a checkerboard at both ends to show where the rows are):</p> <div style="background: black"> <table border="border"> <tr> <td style="background: black"> </td> <td style="background: rgb(0%, 100%, 0%)"> </td> <td style="background: rgb(0%, 80%, 0%)"> </td> <td style="background: rgb(0%, 60%, 0%)"> </td> <td style="background: rgb(0%, 40%, 0%)"> </td> <td style="background: rgb(0%, 20%, 0%)"> </td> <td style="background: rgb(0%, 0%, 0%)"> </td> <td style="background: white"> </td> </tr> <tr> <td style="background: white"> </td> <td style="background: rgb(0%, 100%, 0%)"> </td> <td style="background: rgb(0%, 80%, 0%)"> </td> <td style="background: rgb(0%, 60%, 0%)"> </td> <td style="background: rgb(0%, 40%, 0%)"> </td> <td style="background: rgb(0%, 20%, 0%)"> </td> <td style="background: rgb(0%, 0%, 0%)"> </td> <td style="background: black"> </td> </tr> <tr> <td style="background: black"> </td> <td style="background: rgb(0%, 100%, 0%)"> </td> <td style="background: rgb(0%, 80%, 0%)"> </td> <td style="background: rgb(0%, 60%, 0%)"> </td> <td style="background: rgb(0%, 40%, 0%)"> </td> <td style="background: rgb(0%, 20%, 0%)"> </td> <td style="background: rgb(0%, 0%, 0%)"> </td> <td style="background: white"> </td> </tr> </table> </div> <p>The following table should have three matching rows changing (in 5 steps) from green at the left to white at the right (plus a checkerboard at both ends to show where the rows are):</p> <div style="background: white"> <table border="border"> <tr> <td style="background: white"> </td> <td style="background: rgb(0%, 100%, 0%)"> </td> <td style="background: rgb(20%, 100%, 20%)"> </td> <td style="background: rgb(40%, 100%, 40%)"> </td> <td style="background: rgb(60%, 100%, 60%)"> </td> <td style="background: rgb(80%, 100%, 80%)"> </td> <td style="background: rgb(100%, 100%, 100%)"> </td> <td style="background: black"> </td> </tr> <tr> <td style="background: black"> </td> <td style="background: rgb(0%, 100%, 0%)"> </td> <td style="background: rgb(20%, 100%, 20%)"> </td> <td style="background: rgb(40%, 100%, 40%)"> </td> <td style="background: rgb(60%, 100%, 60%)"> </td> <td style="background: rgb(80%, 100%, 80%)"> </td> <td style="background: rgb(100%, 100%, 100%)"> </td> <td style="background: white"> </td> </tr> <tr> <td style="background: white"> </td> <td style="background: rgb(0%, 100%, 0%)"> </td> <td style="background: rgb(20%, 100%, 20%)"> </td> <td style="background: rgb(40%, 100%, 40%)"> </td> <td style="background: rgb(60%, 100%, 60%)"> </td> <td style="background: rgb(80%, 100%, 80%)"> </td> <td style="background: rgb(100%, 100%, 100%)"> </td> <td style="background: black"> </td> </tr> </table> </div> <p>The following table should have three matching rows changing (in 5 steps) from aqua at the left to black at the right (plus a checkerboard at both ends to show where the rows are):</p> <div style="background: black"> <table border="border"> <tr> <td style="background: black"> </td> <td style="background: rgb(0%, 100%, 100%)"> </td> <td style="background: rgb(0%, 80%, 80%)"> </td> <td style="background: rgb(0%, 60%, 60%)"> </td> <td style="background: rgb(0%, 40%, 40%)"> </td> <td style="background: rgb(0%, 20%, 20%)"> </td> <td style="background: rgb(0%, 0%, 0%)"> </td> <td style="background: white"> </td> </tr> <tr> <td style="background: white"> </td> <td style="background: rgb(0%, 100%, 100%)"> </td> <td style="background: rgb(0%, 80%, 80%)"> </td> <td style="background: rgb(0%, 60%, 60%)"> </td> <td style="background: rgb(0%, 40%, 40%)"> </td> <td style="background: rgb(0%, 20%, 20%)"> </td> <td style="background: rgb(0%, 0%, 0%)"> </td> <td style="background: black"> </td> </tr> <tr> <td style="background: black"> </td> <td style="background: rgb(0%, 100%, 100%)"> </td> <td style="background: rgb(0%, 80%, 80%)"> </td> <td style="background: rgb(0%, 60%, 60%)"> </td> <td style="background: rgb(0%, 40%, 40%)"> </td> <td style="background: rgb(0%, 20%, 20%)"> </td> <td style="background: rgb(0%, 0%, 0%)"> </td> <td style="background: white"> </td> </tr> </table> </div> <p>The following table should have three matching rows changing (in 5 steps) from aqua at the left to white at the right (plus a checkerboard at both ends to show where the rows are):</p> <div style="background: white"> <table border="border"> <tr> <td style="background: white"> </td> <td style="background: rgb(0%, 100%, 100%)"> </td> <td style="background: rgb(20%, 100%, 100%)"> </td> <td style="background: rgb(40%, 100%, 100%)"> </td> <td style="background: rgb(60%, 100%, 100%)"> </td> <td style="background: rgb(80%, 100%, 100%)"> </td> <td style="background: rgb(100%, 100%, 100%)"> </td> <td style="background: black"> </td> </tr> <tr> <td style="background: black"> </td> <td style="background: rgb(0%, 100%, 100%)"> </td> <td style="background: rgb(20%, 100%, 100%)"> </td> <td style="background: rgb(40%, 100%, 100%)"> </td> <td style="background: rgb(60%, 100%, 100%)"> </td> <td style="background: rgb(80%, 100%, 100%)"> </td> <td style="background: rgb(100%, 100%, 100%)"> </td> <td style="background: white"> </td> </tr> <tr> <td style="background: white"> </td> <td style="background: rgb(0%, 100%, 100%)"> </td> <td style="background: rgb(20%, 100%, 100%)"> </td> <td style="background: rgb(40%, 100%, 100%)"> </td> <td style="background: rgb(60%, 100%, 100%)"> </td> <td style="background: rgb(80%, 100%, 100%)"> </td> <td style="background: rgb(100%, 100%, 100%)"> </td> <td style="background: black"> </td> </tr> </table> </div> <p>The following table should have three matching rows changing (in 5 steps) from blue at the left to black at the right (plus a checkerboard at both ends to show where the rows are):</p> <div style="background: black"> <table border="border"> <tr> <td style="background: black"> </td> <td style="background: rgb(0%, 0%, 100%)"> </td> <td style="background: rgb(0%, 0%, 80%)"> </td> <td style="background: rgb(0%, 0%, 60%)"> </td> <td style="background: rgb(0%, 0%, 40%)"> </td> <td style="background: rgb(0%, 0%, 20%)"> </td> <td style="background: rgb(0%, 0%, 0%)"> </td> <td style="background: white"> </td> </tr> <tr> <td style="background: white"> </td> <td style="background: rgb(0%, 0%, 100%)"> </td> <td style="background: rgb(0%, 0%, 80%)"> </td> <td style="background: rgb(0%, 0%, 60%)"> </td> <td style="background: rgb(0%, 0%, 40%)"> </td> <td style="background: rgb(0%, 0%, 20%)"> </td> <td style="background: rgb(0%, 0%, 0%)"> </td> <td style="background: black"> </td> </tr> <tr> <td style="background: black"> </td> <td style="background: rgb(0%, 0%, 100%)"> </td> <td style="background: rgb(0%, 0%, 80%)"> </td> <td style="background: rgb(0%, 0%, 60%)"> </td> <td style="background: rgb(0%, 0%, 40%)"> </td> <td style="background: rgb(0%, 0%, 20%)"> </td> <td style="background: rgb(0%, 0%, 0%)"> </td> <td style="background: white"> </td> </tr> </table> </div> <p>The following table should have three matching rows changing (in 5 steps) from blue at the left to white at the right (plus a checkerboard at both ends to show where the rows are):</p> <div style="background: white"> <table border="border"> <tr> <td style="background: white"> </td> <td style="background: rgb(0%, 0%, 100%)"> </td> <td style="background: rgb(20%, 20%, 100%)"> </td> <td style="background: rgb(40%, 40%, 100%)"> </td> <td style="background: rgb(60%, 60%, 100%)"> </td> <td style="background: rgb(80%, 80%, 100%)"> </td> <td style="background: rgb(100%, 100%, 100%)"> </td> <td style="background: black"> </td> </tr> <tr> <td style="background: black"> </td> <td style="background: rgb(0%, 0%, 100%)"> </td> <td style="background: rgb(20%, 20%, 100%)"> </td> <td style="background: rgb(40%, 40%, 100%)"> </td> <td style="background: rgb(60%, 60%, 100%)"> </td> <td style="background: rgb(80%, 80%, 100%)"> </td> <td style="background: rgb(100%, 100%, 100%)"> </td> <td style="background: white"> </td> </tr> <tr> <td style="background: white"> </td> <td style="background: rgb(0%, 0%, 100%)"> </td> <td style="background: rgb(20%, 20%, 100%)"> </td> <td style="background: rgb(40%, 40%, 100%)"> </td> <td style="background: rgb(60%, 60%, 100%)"> </td> <td style="background: rgb(80%, 80%, 100%)"> </td> <td style="background: rgb(100%, 100%, 100%)"> </td> <td style="background: black"> </td> </tr> </table> </div> <p>The following table should have three matching rows changing (in 5 steps) from fuchsia at the left to black at the right (plus a checkerboard at both ends to show where the rows are):</p> <div style="background: black"> <table border="border"> <tr> <td style="background: black"> </td> <td style="background: rgb(100%, 0%, 100%)"> </td> <td style="background: rgb(80%, 0%, 80%)"> </td> <td style="background: rgb(60%, 0%, 60%)"> </td> <td style="background: rgb(40%, 0%, 40%)"> </td> <td style="background: rgb(20%, 0%, 20%)"> </td> <td style="background: rgb(0%, 0%, 0%)"> </td> <td style="background: white"> </td> </tr> <tr> <td style="background: white"> </td> <td style="background: rgb(100%, 0%, 100%)"> </td> <td style="background: rgb(80%, 0%, 80%)"> </td> <td style="background: rgb(60%, 0%, 60%)"> </td> <td style="background: rgb(40%, 0%, 40%)"> </td> <td style="background: rgb(20%, 0%, 20%)"> </td> <td style="background: rgb(0%, 0%, 0%)"> </td> <td style="background: black"> </td> </tr> <tr> <td style="background: black"> </td> <td style="background: rgb(100%, 0%, 100%)"> </td> <td style="background: rgb(80%, 0%, 80%)"> </td> <td style="background: rgb(60%, 0%, 60%)"> </td> <td style="background: rgb(40%, 0%, 40%)"> </td> <td style="background: rgb(20%, 0%, 20%)"> </td> <td style="background: rgb(0%, 0%, 0%)"> </td> <td style="background: white"> </td> </tr> </table> </div> <p>The following table should have three matching rows changing (in 5 steps) from fuchsia at the left to white at the right (plus a checkerboard at both ends to show where the rows are):</p> <div style="background: white"> <table border="border"> <tr> <td style="background: white"> </td> <td style="background: rgb(100%, 0%, 100%)"> </td> <td style="background: rgb(100%, 20%, 100%)"> </td> <td style="background: rgb(100%, 40%, 100%)"> </td> <td style="background: rgb(100%, 60%, 100%)"> </td> <td style="background: rgb(100%, 80%, 100%)"> </td> <td style="background: rgb(100%, 100%, 100%)"> </td> <td style="background: black"> </td> </tr> <tr> <td style="background: black"> </td> <td style="background: rgb(100%, 0%, 100%)"> </td> <td style="background: rgb(100%, 20%, 100%)"> </td> <td style="background: rgb(100%, 40%, 100%)"> </td> <td style="background: rgb(100%, 60%, 100%)"> </td> <td style="background: rgb(100%, 80%, 100%)"> </td> <td style="background: rgb(100%, 100%, 100%)"> </td> <td style="background: white"> </td> </tr> <tr> <td style="background: white"> </td> <td style="background: rgb(100%, 0%, 100%)"> </td> <td style="background: rgb(100%, 20%, 100%)"> </td> <td style="background: rgb(100%, 40%, 100%)"> </td> <td style="background: rgb(100%, 60%, 100%)"> </td> <td style="background: rgb(100%, 80%, 100%)"> </td> <td style="background: rgb(100%, 100%, 100%)"> </td> <td style="background: black"> </td> </tr> </table> </div> <p>The following table should have two matching rows changing (in 5 steps) from red at the left to green at the right (plus a checkerboard at both ends to show where the rows are):</p> <div style="background: lime"> <table border="border"> <tr> <td style="background: black"> </td> <td style="background: rgb(100%, 0%, 0%)"> </td> <td style="background: rgb(80%, 20%, 0%)"> </td> <td style="background: rgb(60%, 40%, 0%)"> </td> <td style="background: rgb(40%, 60%, 0%)"> </td> <td style="background: rgb(20%, 80%, 0%)"> </td> <td style="background: rgb(0%, 100%, 0%)"> </td> <td style="background: white"> </td> </tr> <tr> <td style="background: white"> </td> <td style="background: rgb(100%, 0%, 0%)"> </td> <td style="background: rgb(80%, 20%, 0%)"> </td> <td style="background: rgb(60%, 40%, 0%)"> </td> <td style="background: rgb(40%, 60%, 0%)"> </td> <td style="background: rgb(20%, 80%, 0%)"> </td> <td style="background: rgb(0%, 100%, 0%)"> </td> <td style="background: black"> </td> </tr> </table> </div> <p>The following table should have two matching rows changing (in 5 steps) from green at the left to blue at the right (plus a checkerboard at both ends to show where the rows are):</p> <div style="background: blue"> <table border="border"> <tr> <td style="background: black"> </td> <td style="background: rgb(0%, 100%, 0%)"> </td> <td style="background: rgb(0%, 80%, 20%)"> </td> <td style="background: rgb(0%, 60%, 40%)"> </td> <td style="background: rgb(0%, 40%, 60%)"> </td> <td style="background: rgb(0%, 20%, 80%)"> </td> <td style="background: rgb(0%, 0%, 100%)"> </td> <td style="background: white"> </td> </tr> <tr> <td style="background: white"> </td> <td style="background: rgb(0%, 100%, 0%)"> </td> <td style="background: rgb(0%, 80%, 20%)"> </td> <td style="background: rgb(0%, 60%, 40%)"> </td> <td style="background: rgb(0%, 40%, 60%)"> </td> <td style="background: rgb(0%, 20%, 80%)"> </td> <td style="background: rgb(0%, 0%, 100%)"> </td> <td style="background: black"> </td> </tr> </table> </div> <p>The following table should have two matching rows changing (in 5 steps) from blue at the left to red at the right (plus a checkerboard at both ends to show where the rows are):</p> <div style="background: red"> <table border="border"> <tr> <td style="background: black"> </td> <td style="background: rgb(0%, 0%, 100%)"> </td> <td style="background: rgb(20%, 0%, 80%)"> </td> <td style="background: rgb(40%, 0%, 60%)"> </td> <td style="background: rgb(60%, 0%, 40%)"> </td> <td style="background: rgb(80%, 0%, 20%)"> </td> <td style="background: rgb(100%, 0%, 0%)"> </td> <td style="background: white"> </td> </tr> <tr> <td style="background: white"> </td> <td style="background: rgb(0%, 0%, 100%)"> </td> <td style="background: rgb(20%, 0%, 80%)"> </td> <td style="background: rgb(40%, 0%, 60%)"> </td> <td style="background: rgb(60%, 0%, 40%)"> </td> <td style="background: rgb(80%, 0%, 20%)"> </td> <td style="background: rgb(100%, 0%, 0%)"> </td> <td style="background: black"> </td> </tr> </table> </div> </body>