Files
ladybird/Tests/LibWeb/Text/expected/wpt-import/css/css-fonts/font-weight-sign-function.txt
Callum Law 39484e2027 LibWeb: Store font-weight in ComputedProperties in computed form
We now also more closely follow the spec when computing values for
font-weight and we now:
 - Support relative lengths in `calc()`s
 - Properly clamp `calc()`s
 - Support relative keywords (e.g. lighter, bolder)
 - Respect that font-weight can be a non-integer number.

This does expose a few false positives in the font-weight-computed.html
WPT test. This is because we don't recompute non-inherited font-weight
within `recompute_inherited_style` which means that relative keyword
values can fall out of sync with their parent's value. These previously
passed as we treated `bolder` and `lighter` as aliases for `bold` and
`normal` respectively.
2025-09-19 10:06:33 +01:00

8 lines
234 B
Plaintext

Harness status: OK
Found 3 tests
3 Pass
Pass Property font-weight value 'calc(sign(1rem - 1px) * 10)'
Pass Property font-weight value 'calc(sign(1rem - 1px) * -10000)'
Pass Property font-weight value 'calc(sign(1rem - 1px) * 10000)'