css/css-masking/parsing/
clip-path-computed.html
Fails: 19 of 21 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 clip-path value 'ellipse(at 50% 50%)' | ellipse(at 50% 50%) | ellipse() | Fails |
Property clip-path value 'ellipse(60% closest-side at 50% 50%)' | ellipse(60% closest-side at 50% 50%) | ellipse(60% closest-side) | Fails |
Property clip-path value 'circle(calc(10px + 0.5em) at -50% 50%)' | circle(30px at -50% 50%) | circle(30px at -50% 50%) | Passes |
Property clip-path value 'circle(calc(10px - 0.5em) at 50% -50%)' | circle(0px at 50% -50%) | circle(0px at 50% -50%) | Passes |
Property clip-path value 'polygon(round 1em, 1px 2px, 3em 4em)' | polygon(round 40px, 1px 2px, 120px 160px) | polygon(round 40px, 1px 2px, 120px 160px) | Passes |
Property clip-path value 'polygon(evenodd round 6pt, 1px 2px, 3em 4em, 6pt 6%)' | polygon(evenodd round 8px, 1px 2px, 120px 160px, 8px 6%) | polygon(evenodd round 8px, 1px 2px, 120px 160px, 8px 6%) | Passes |
Property clip-path value 'polygon(round 0px, 1px 2px, 3px 4px)' | polygon(1px 2px, 3px 4px) | polygon(1px 2px, 3px 4px) | Passes |
Property clip-path value 'polygon(round calc(1em + 2px), 1px 2px, 3px 4px)' | polygon(round 42px, 1px 2px, 3px 4px) | polygon(round 42px, 1px 2px, 3px 4px) | Passes |
Property clip-path value 'xywh(0 1% 2px 0.5em)' | inset(1% calc(100% - 2px) calc(99% - 20px) 0px) | inset(1% calc(100% - 2px) calc(99% - 20px) 0px) | Passes |
Property clip-path value 'xywh(0px 1% 2px 0.5em round 0)' | inset(1% calc(100% - 2px) calc(99% - 20px) 0px) | inset(1% calc(100% - 2px) calc(99% - 20px) 0px) | Passes |
Property clip-path value 'xywh(0px 1% 2px 3% round 0 1px)' | inset(1% calc(100% - 2px) 96% 0px round 0px 1px) | inset(1% calc(100% - 2px) 96% 0px round 0px 1px) | Passes |
Property clip-path value 'xywh(0px 1% 2px 3% round 0px 1px 2em)' | inset(1% calc(100% - 2px) 96% 0px round 0px 1px 80px) | inset(1% calc(100% - 2px) 96% 0px round 0px 1px 80px) | Passes |
Property clip-path value 'xywh(0px 1% 2px 3% round 0px 1px 2% 3px)' | inset(1% calc(100% - 2px) 96% 0px round 0px 1px 2% 3px) | inset(1% calc(100% - 2px) 96% 0px round 0px 1px 2% 3px) | Passes |
Property clip-path value 'xywh(calc(0px) calc(1px + 1%) calc(2px + 2%) calc(3px + 3%))' | inset(calc(1% + 1px) calc(98% - 2px) calc(96% - 4px) 0px) | inset(calc(1% + 1px) calc(98% - 2px) calc(96% - 4px) 0px) | Passes |
Property clip-path value 'rect(auto auto auto auto)' | inset(0%) | inset(0%) | Passes |
Property clip-path value 'rect(0 1% 2px 0.5em)' | inset(0px 99% calc(100% - 2px) 20px) | inset(0px 99% calc(100% - 2px) 20px) | Passes |
Property clip-path value 'rect(0px 1% auto 0.5em round 0)' | inset(0px 99% 0% 20px) | inset(0px 99% 0% 20px) | Passes |
Property clip-path value 'rect(0px 1% auto 3% round 0 1px)' | inset(0px 99% 0% 3% round 0px 1px) | inset(0px 99% 0% 3% round 0px 1px) | Passes |
Property clip-path value 'rect(0px 1% auto 3% round 0px 1px 2em)' | inset(0px 99% 0% 3% round 0px 1px 80px) | inset(0px 99% 0% 3% round 0px 1px 80px) | Passes |
Property clip-path value 'rect(0px 1% auto 3% round 0px 1px 2% 3px)' | inset(0px 99% 0% 3% round 0px 1px 2% 3px) | inset(0px 99% 0% 3% round 0px 1px 2% 3px) | Passes |
Property clip-path value 'rect(calc(0px) calc(1px + 1%) calc(2px + 2%) calc(3px + 3%))' | inset(0px calc(99% - 1px) calc(98% - 2px) calc(3% + 3px)) | inset(0px calc(99% - 1px) calc(98% - 2px) calc(3% + 3px)) | Passes |
Results of the run of 8 November 2026, engine build 1d7a91105. The data behind every page is open.