mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-10 18:10:56 +09:00
LibWeb/CSS: Allow empty trailing group when parsing comma-separated list
There's discussion in the linked spec issue, but the short version is, this algorithm will see "foo,bar," as a list of two groups, with "foo" in the first group and "bar" in the second. However, users of this want to get a list of three groups, with the last one being empty. So, do that!
This commit is contained in:
parent
338282f74d
commit
233022c473
Notes:
github-actions[bot]
2025-05-17 06:54:29 +00:00
Author: https://github.com/AtkinsSJ
Commit: 233022c473
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4783
Reviewed-by: https://github.com/tcl3 ✅
3 changed files with 13 additions and 8 deletions
|
@ -2,8 +2,7 @@ Harness status: OK
|
|||
|
||||
Found 18 tests
|
||||
|
||||
17 Pass
|
||||
1 Fail
|
||||
18 Pass
|
||||
Pass e.style['font-variation-settings'] = "700" should not set the property value
|
||||
Pass e.style['font-variation-settings'] = "\"XHGT\"" should not set the property value
|
||||
Pass e.style['font-variation-settings'] = "wght 700" should not set the property value
|
||||
|
@ -16,7 +15,7 @@ Pass e.style['font-variation-settings'] = "\"abcA9\" 0.5" should not set the pro
|
|||
Pass e.style['font-variation-settings'] = "'wght' 200 'abcd' 400" should not set the property value
|
||||
Pass e.style['font-variation-settings'] = "'a' 1234" should not set the property value
|
||||
Pass e.style['font-variation-settings'] = "'abcde' 1234" should not set the property value
|
||||
Fail e.style['font-variation-settings'] = "'wght' 200, " should not set the property value
|
||||
Pass e.style['font-variation-settings'] = "'wght' 200, " should not set the property value
|
||||
Pass e.style['font-variation-settings'] = "'abcd\" 123" should not set the property value
|
||||
Pass e.style['font-variation-settings'] = "'wght' 100px" should not set the property value
|
||||
Pass e.style['font-variation-settings'] = "'wght' calc(100px + 200px)" should not set the property value
|
||||
|
|
|
@ -2,8 +2,8 @@ Harness status: OK
|
|||
|
||||
Found 34 tests
|
||||
|
||||
30 Pass
|
||||
4 Fail
|
||||
32 Pass
|
||||
2 Fail
|
||||
Pass Test parsing '' with matchMedia
|
||||
Pass Test parsing ' ' with matchMedia
|
||||
Pass Test parsing 'all' with matchMedia
|
||||
|
@ -20,9 +20,9 @@ Pass Test parsing 'color)' with matchMedia
|
|||
Pass Test parsing ' color)' with matchMedia
|
||||
Pass Test parsing ' color ), ( color' with matchMedia
|
||||
Fail Test parsing ' foo ' with matchMedia
|
||||
Fail Test parsing ',' with matchMedia
|
||||
Pass Test parsing ',' with matchMedia
|
||||
Pass Test parsing ' , ' with matchMedia
|
||||
Fail Test parsing ',,' with matchMedia
|
||||
Pass Test parsing ',,' with matchMedia
|
||||
Pass Test parsing ' , , ' with matchMedia
|
||||
Fail Test parsing ' foo,' with matchMedia
|
||||
Pass Test parsing '(min-resolution: 1x)' with matchMedia
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue