Bug 249151

Summary: perspective calc() values aren't clipped to 0
Product: WebKit Reporter: Antoine Quint <graouts>
Component: CSSAssignee: Antoine Quint <graouts>
Status: RESOLVED FIXED    
Severity: Normal CC: koivisto, webkit-bug-importer
Priority: P2 Keywords: InRadar, WebExposed, WPTImpact
Version: Safari Technology Preview   
Hardware: Unspecified   
OS: Unspecified   

Description Antoine Quint 2022-12-12 09:13:49 PST
The "perspective" property is specified to only allow non-negative values: https://www.w3.org/TR/css-transforms-2/#perspective-property. However, we don't clip values that would be computed to less than 0, for instance using a calc() expression, and instead deem them invalid internally and thus consider as if "none" was provided, which has implications when blending as blending with "none" means a discrete behavior should be used.
Comment 1 Antoine Quint 2022-12-12 09:17:29 PST
Pull request: https://github.com/WebKit/WebKit/pull/7493
Comment 2 EWS 2022-12-12 23:47:13 PST
Committed 257779@main (c1c0e7fbede0): <https://commits.webkit.org/257779@main>

Reviewed commits have been landed. Closing PR #7493 and removing active labels.
Comment 3 Radar WebKit Bug Importer 2022-12-12 23:48:15 PST
<rdar://problem/103287973>