mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 17:55:07 +02:00
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.
8 lines
234 B
Plaintext
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)' |