Status: PASS | Duration: 9ms | Subtests: 1/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/css-color/background-color-hsl-004.html
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>CSS-Color-4: hsla() and hsl() are aliases of each other - test</title> <link rel="author" title="Jerry Shih" href="mailto:bignose1007@gmail.com" /> <link rel="author" title="Mozilla" href="http://www.mozilla.org/" /> <link rel="help" href="https://drafts.csswg.org/css-color-4/#the-hsl-notation" /> <meta name="assert" content="hsla() should have the identical grammar and behavior to hsl()." /> <link rel="match" href="background-color-hsl-004-ref.html" /> <style type="text/css"> #p1 { background-color: hsla(120, 75%, 50%); } #p2 { background-color: hsla(120.0, 75%, 50%); } #p3 { background-color: hsla(1.2e2, 75%, 50%); } #p4 { background-color: hsla(1.2E2, 75%, 50%); } #p5 { background-color: hsla(60, 75%, 50%); } #p6 { background-color: hsl(120, 75%, 50%, 0.2); } #p7 { background-color: hsl(120.0, 75%, 50%, 0.4); } #p8 { background-color: hsl(1.2e2, 75%, 50%, 0.6); } #p9 { background-color: hsl(1.2E2, 75%, 50%, 0.8); } #p10 { background-color: hsl(60.0, 75%, 50%, 1.0); } </style> </head> <body> <p id="p1">color</p> <p id="p2">color</p> <p id="p3">color</p> <p id="p4">color</p> <p id="p5">color</p> <p id="p6">color</p> <p id="p7">color</p> <p id="p8">color</p> <p id="p9">color</p> <p id="p10">color</p> </body> </html>
/css/css-color/background-color-hsl-004-ref.html
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>CSS-Color-4: hsla() and hsl() are aliases of each other - ref</title> <link rel="author" title="Jerry Shih" href="mailto:bignose1007@gmail.com" /> <link rel="author" title="Mozilla" href="http://www.mozilla.org/" /> <style type="text/css"> #p1 { background-color: hsl(120, 75%, 50%); } #p2 { background-color: hsl(120.0, 75%, 50%); } #p3 { background-color: hsl(1.2e2, 75%, 50%); } #p4 { background-color: hsl(1.2E2, 75%, 50%); } #p5 { background-color: hsl(60, 75%, 50%); } #p6 { background-color: hsla(120, 75%, 50%, 0.2); } #p7 { background-color: hsla(120.0, 75%, 50%, 0.4); } #p8 { background-color: hsla(1.2e2, 75%, 50%, 0.6); } #p9 { background-color: hsla(1.2E2, 75%, 50%, 0.8); } #p10 { background-color: hsla(60.0, 75%, 50%, 1.0); } </style> </head> <body> <p id="p1">color</p> <p id="p2">color</p> <p id="p3">color</p> <p id="p4">color</p> <p id="p5">color</p> <p id="p6">color</p> <p id="p7">color</p> <p id="p8">color</p> <p id="p9">color</p> <p id="p10">color</p> </body> </html>