hypot-pow-sqrt-computed.html
Details
- Test
/css/css-values/hypot-pow-sqrt-computed.html- Harness
- OK
Subtests
| Status | Subtest |
|---|---|
| PASS | pow(1,1) should be used-value-equivalent to 1 |
| PASS | sqrt(1) should be used-value-equivalent to 1 |
| PASS | hypot(1) should be used-value-equivalent to 1 |
| PASS | sqrt(pow(1,1)) should be used-value-equivalent to 1 |
| PASS | hypot(pow(1, sqrt(1))) should be used-value-equivalent to 1 |
| PASS | calc(hypot(pow((1 + sqrt(1)) / 2, sqrt(1)))) should be used-value-equivalent to 1 |
| PASS | calc(100px * pow(2, pow(2, 2))) should be used-value-equivalent to 1600px |
| PASS | calc(1px * pow(2, 3)) should be used-value-equivalent to 8px |
| PASS | calc(100px * sqrt(100)) should be used-value-equivalent to 1000px |
| PASS | calc(1px * pow(2, sqrt(100)) should be used-value-equivalent to 1024px |
| PASS | hypot(3px, 4px) should be used-value-equivalent to 5px |
| PASS | hypot(3e+9px, 4e+9px) should be used-value-equivalent to 5e+9px |
| PASS | calc(100px * hypot(3, 4)) should be used-value-equivalent to 500px |
| PASS | hypot(-5px) should be used-value-equivalent to 5px |
| PASS | calc(1px * hypot(-5)) should be used-value-equivalent to 5px |
| PASS | calc(1px * hypot(10000)) should be used-value-equivalent to 10000px |
| PASS | calc(2px * sqrt(100000000)) should be used-value-equivalent to 20000px |
| PASS | calc(3px * pow(20, 4)) should be used-value-equivalent to 480000px |
| PASS | calc(-2 * hypot(3px, 4px)) should be used-value-equivalent to -10px |
| PASS | hypot(0% + 3px, 0% + 4px) should be used-value-equivalent to 5px |
| PASS | hypot(0% + 772.333px) should be used-value-equivalent to calc(0% + 772.333px) |
| PASS | hypot(0% + 772.35px) should be used-value-equivalent to calc(0% + 772.35px) |
| PASS | hypot(0% + 600px, 0% + 800px) should be used-value-equivalent to 1000px |
| FAIL | sqrt(sibling-index()) should be used-value-equivalent to 2 assert_not_equals: sqrt(sibling-index()) isn't valid in 'z-index'; got the default value instead. got disallowed value "auto" |
| FAIL | calc(1px * sqrt(sibling-index())) should be used-value-equivalent to 2px assert_not_equals: calc(1px * sqrt(sibling-index())) isn't valid in 'margin-left'; got the default value instead. got disallowed value "0px" |
| FAIL | sqrt(pow(sibling-index(), 2)) should be used-value-equivalent to 4 assert_not_equals: sqrt(pow(sibling-index(), 2)) isn't valid in 'z-index'; got the default value instead. got disallowed value "auto" |
| FAIL | hypot(3, sibling-index()) should be used-value-equivalent to 5 assert_not_equals: hypot(3, sibling-index()) isn't valid in 'z-index'; got the default value instead. got disallowed value "auto" |
| PASS | sqrt(4 * sign(1em - 1px)) should be used-value-equivalent to 2 |
| PASS | calc(1px * sqrt(4 * sign(1em - 1px))) should be used-value-equivalent to 2px |
| PASS | sqrt(pow(4 * sign(1em - 1px), 2)) should be used-value-equivalent to 4 |
| PASS | hypot(3, 4 * sign(1em - 1px)) should be used-value-equivalent to 5 |
| PASS | calc(pow(tan(atan2(round(up,1px,100%),round(up,1px,100%))),2)*1px) should be computed-value-equivalent to calc(pow(tan(atan2(round(up,1px,100%),round(up,1px,100%))),2)*1px) |
| PASS | hypot(1px) should be used-value-equivalent to 1px |
| PASS | hypot(1cm) should be used-value-equivalent to 1cm |
| PASS | hypot(1mm) should be used-value-equivalent to 1mm |
| PASS | hypot(1Q) should be used-value-equivalent to 1Q |
| PASS | hypot(1in) should be used-value-equivalent to 1in |
| PASS | hypot(1pc) should be used-value-equivalent to 1pc |
| PASS | hypot(1pt) should be used-value-equivalent to 1pt |
| PASS | hypot(1em) should be used-value-equivalent to 1em |
| PASS | hypot(1ex) should be used-value-equivalent to 1ex |
| PASS | hypot(1ch) should be used-value-equivalent to 1ch |
| PASS | hypot(1rem) should be used-value-equivalent to 1rem |
| PASS | hypot(1vh) should be used-value-equivalent to 1vh |
| PASS | hypot(1vw) should be used-value-equivalent to 1vw |
| PASS | hypot(1vmin) should be used-value-equivalent to 1vmin |
| PASS | hypot(1vmax) should be used-value-equivalent to 1vmax |
| PASS | hypot(1s) should be used-value-equivalent to 1s |
| PASS | hypot(1ms) should be used-value-equivalent to 1ms |
| PASS | hypot(1deg) should be used-value-equivalent to 1deg |
| PASS | hypot(1grad) should be used-value-equivalent to 1grad |
| PASS | hypot(1rad) should be used-value-equivalent to 1rad |
| PASS | hypot(1turn) should be used-value-equivalent to 1turn |