LibWeb/CSS: Implement the caret-color property

This commit is contained in:
Tim Ledbetter 2025-03-09 13:59:33 +00:00 committed by Alexander Kalenik
commit 88d35c547c
Notes: github-actions[bot] 2025-03-09 18:37:22 +00:00
16 changed files with 381 additions and 218 deletions

View file

@ -0,0 +1,16 @@
Harness status: OK
Found 11 tests
11 Pass
Pass Test default caret-color
Pass Test caret-color: initial
Pass Test caret-color: inherit
Pass Test caret-color: auto
Pass Test caret-color: currentcolor
Pass Test caret-color: lime
Pass Reset caret-color: initial
Pass Test caret-color: rgb(0, 100, 100)
Pass Test caret-color: initial (inherited)
Pass Test caret-color: inherit (inherited)
Pass Test caret-color: blue (inherited)

View file

@ -0,0 +1,9 @@
Harness status: OK
Found 4 tests
4 Pass
Pass e.style['caret-color'] = "none" should not set the property value
Pass e.style['caret-color'] = "invert" should not set the property value
Pass e.style['caret-color'] = "50%" should not set the property value
Pass e.style['caret-color'] = "red green" should not set the property value

View file

@ -0,0 +1,7 @@
Harness status: OK
Found 2 tests
2 Pass
Pass e.style['caret-color'] = "auto" should set the property value
Pass e.style['caret-color'] = "rgba(10, 20, 30, 0.4)" should set the property value