css/css-fonts/parsing/
font-weight-computed.html
Fails: 18 of 20 assertions match, 2 do not; 1 more could not be judged
A parsing and computed-value check: each value the parser must accept or reject, and what it computes to.
| Why some could not be judged | Assertions |
|---|---|
| No assertion with written values to accept or reject | 1 |
Run it in the playgroundThe fileOn GitHubBrowsers’ results on wpt.fyi
Each assertion
Every row shows what the file expected and what the engine returned, whether they match or not.
| Assertion | Expected | Got | Verdict |
|---|---|---|---|
Property font-weight value '150.25' | 150.25 | 150 | Fails |
Property font-weight value 'calc(100 + (sign(20cqw - 10px) * 5))' | 95 | 105 | Fails |
Property font-weight value 'normal' | 400 | 400 | Passes |
Property font-weight value 'bold' | 700 | 700 | Passes |
Property font-weight value '1' | 1 | 1 | Passes |
Property font-weight value '100' | 100 | 100 | Passes |
Property font-weight value '200' | 200 | 200 | Passes |
Property font-weight value '300' | 300 | 300 | Passes |
Property font-weight value '400' | 400 | 400 | Passes |
Property font-weight value '500' | 500 | 500 | Passes |
Property font-weight value '600' | 600 | 600 | Passes |
Property font-weight value '700' | 700 | 700 | Passes |
Property font-weight value '800' | 800 | 800 | Passes |
Property font-weight value '900' | 900 | 900 | Passes |
Property font-weight value '1000' | 1000 | 1000 | Passes |
Property font-weight value '101' | 101 | 101 | Passes |
Property font-weight value 'calc(100)' | 100 | 100 | Passes |
Property font-weight value 'calc(0)' | 1 | 1 | Passes |
Property font-weight value 'calc(-100)' | 1 | 1 | Passes |
Property font-weight value 'calc(100 + 100)' | 200 | 200 | Passes |
Results of the run of 8 November 2026, engine build 1d7a91105. The data behind every page is open.