mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 08:17:35 +00:00
Tests/LibWeb: Add some text tests for 'parsing a legacy color value'
I was not aware of this framework back when implementing this back in
bc54560e59
. Add in some basic tests for
this now that we are compliant with the specification.
This commit is contained in:
parent
59cab85002
commit
a9e37be7a0
2 changed files with 32 additions and 0 deletions
8
Tests/LibWeb/Text/expected/css/legacy-color-value.txt
Normal file
8
Tests/LibWeb/Text/expected/css/legacy-color-value.txt
Normal file
|
@ -0,0 +1,8 @@
|
|||
'red' => rgb(255, 0, 0)
|
||||
'#408080' => rgb(64, 128, 128)
|
||||
'transparent' => rgba(0, 0, 0, 0)
|
||||
' GreeN ' => rgb(0, 128, 0)
|
||||
'cafe' => rgb(202, 254, 0)
|
||||
'' => rgba(0, 0, 0, 0)
|
||||
'deadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeef' => rgb(219, 239, 234)
|
||||
'#emoji above U+FFFF 🙃' => rgb(224, 176, 255)
|
Loading…
Add table
Add a link
Reference in a new issue