LibWeb: Test parsing of CSS Level 4 rgb and hsl syntax

This commit is contained in:
Thomas Fach-Pedersen 2022-06-15 16:40:00 +02:00 committed by Sam Atkins
parent 019e3a342d
commit 626e7a5c7f

View file

@ -13,6 +13,10 @@
#h { background-color: hsl(120, 100%, 50%); }
#i { background-color: hsla(120, 100%, 50%, 1); }
#j { color: lime; background-color: currentColor; }
#k { background-color: rgba(0 255 0 / 100%); }
#l { background-color: rgba(0% 100% 0% / 1); }
#m { background-color: hsl(120 100% 50%); }
#n { background-color: hsla(120 100% 50% / 1); }
</style>
</head>
<body>
@ -27,5 +31,9 @@
<div id="h">This is green, using hsl(120, 100%, 50%).</div>
<div id="i">This is green, using hsla(120, 100%, 50%, 1).</div>
<div id="j"><span style="color: black;">This is green, using currentcolor.</span></div>
<div id="k">This is green, using rgba(0 255 0 / 100%).</div>
<div id="l">This is green, using rgba(0% 100% 0% / 1).</div>
<div id="m">This is green, using hsl(120 100% 50%).</div>
<div id="n">This is green, using hsla(120 100% 50% / 1).</div>
</body>
</html>