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   

Antoine Quint
Reported 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.
Attachments
Antoine Quint
Comment 1 2022-12-12 09:17:29 PST
EWS
Comment 2 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.
Radar WebKit Bug Importer
Comment 3 2022-12-12 23:48:15 PST
Note You need to log in before you can comment on or make changes to this bug.