LibWeb: Don't deduplicate font-variation-settings values at parse time

We now only deduplicate and sort the computed value of the
`font-variation-settings` property.
This commit is contained in:
Tim Ledbetter 2025-09-19 16:44:18 +01:00 committed by Sam Atkins
parent 6cb0f0fbcd
commit 83ad5ce8a2
Notes: github-actions[bot] 2025-09-26 10:22:16 +00:00
4 changed files with 38 additions and 20 deletions

View file

@ -2,12 +2,11 @@ Harness status: OK
Found 7 tests
5 Pass
2 Fail
7 Pass
Pass e.style['font-variation-settings'] = "normal" should set the property value
Pass e.style['font-variation-settings'] = "\"wght\" 700" should set the property value
Pass e.style['font-variation-settings'] = "'wght' 700" should set the property value
Fail e.style['font-variation-settings'] = "\"wght\" 700, \"XHGT\" 0.7" should set the property value
Pass e.style['font-variation-settings'] = "\"wght\" 700, \"XHGT\" 0.7" should set the property value
Pass e.style['font-variation-settings'] = "\"a cd\" 0.5" should set the property value
Pass e.style['font-variation-settings'] = "\"ab@d\" 0.5" should set the property value
Fail e.style['font-variation-settings'] = "'wght' 1e3, 'slnt' -450.0e-1" should set the property value
Pass e.style['font-variation-settings'] = "'wght' 1e3, 'slnt' -450.0e-1" should set the property value