LibWeb: Parse and propagate white-space-collapse CSS property

This commit is contained in:
Callum Law 2025-05-16 18:32:31 +12:00 committed by Jelle Raaijmakers
commit ea30356fba
Notes: github-actions[bot] 2025-05-29 10:06:12 +00:00
17 changed files with 321 additions and 180 deletions

View file

@ -0,0 +1,9 @@
Harness status: OK
Found 4 tests
4 Pass
Pass Property white-space-collapse value 'collapse'
Pass Property white-space-collapse value 'preserve'
Pass Property white-space-collapse value 'preserve-breaks'
Pass Property white-space-collapse value 'break-spaces'

View file

@ -0,0 +1,11 @@
Harness status: OK
Found 6 tests
6 Pass
Pass e.style['white-space-collapse'] = "auto" should not set the property value
Pass e.style['white-space-collapse'] = "none" should not set the property value
Pass e.style['white-space-collapse'] = "collapse preserve" should not set the property value
Pass e.style['white-space-collapse'] = "preserve preserve-breaks" should not set the property value
Pass e.style['white-space-collapse'] = "delicious collapse" should not set the property value
Pass e.style['white-space-collapse'] = "5px" should not set the property value

View file

@ -0,0 +1,14 @@
Harness status: OK
Found 9 tests
9 Pass
Pass e.style['white-space-collapse'] = "collapse" should set the property value
Pass e.style['white-space-collapse'] = "preserve" should set the property value
Pass e.style['white-space-collapse'] = "preserve-breaks" should set the property value
Pass e.style['white-space-collapse'] = "break-spaces" should set the property value
Pass e.style['white-space-collapse'] = "initial" should set the property value
Pass e.style['white-space-collapse'] = "inherit" should set the property value
Pass e.style['white-space-collapse'] = "unset" should set the property value
Pass e.style['white-space-collapse'] = "revert" should set the property value
Pass e.style['white-space-collapse'] = "revert-layer" should set the property value