← back to v138 · css-typed-arithmetic
conformance · v138
v138 · css-typed-arithmetic — conformance probe
7 assertions drawn from the spec. Each is a single contract the spec text makes. Pass/fail reflects what this browser executed; blocked means the contract was not run because it needs user mediation, hardware, or another unavailable precondition. Open the page in Chrome stable / canary / Firefox / Safari to compare.
0
pass
0
fail
0
blocked
7
total
| id | contract | kind | verdict | detail |
|---|---|---|---|---|
length-divided-by-length-is-number |
calc(<length> / <length>) resolves to a unitless number and is accepted by a number-valued property. spec ↗ | css-supports | … | |
length-divided-by-length-equals-expected-number |
calc(20px / 4px) computes to the number 5, observable via getComputedStyle on opacity. spec ↗ | script | … | |
number-times-length-is-length |
Multiplying a unitless number by a length still yields a length (this already worked; typed arithmetic preserves it). spec ↗ | css-supports | … | |
percentage-divided-by-length-times-length |
calc(20% / 0.5em * 1px) — mixed-unit arithmetic that cancels to a length is accepted. spec ↗ | css-supports | … | |
angle-divided-by-angle-is-number |
calc(<angle> / <angle>) resolves to a number, usable as a unitless value. spec ↗ | css-supports | … | |
time-divided-by-time-is-number |
calc(<time> / <time>) resolves to a number. spec ↗ | css-supports | … | |
number-times-1deg-converts-to-angle |
Casting a typed length to a number then multiplying by 1deg produces an angle (length-to-angle cast pattern). spec ↗ | css-supports | … |