Bug 249151 - perspective calc() values aren't clipped to 0
Summary: perspective calc() values aren't clipped to 0
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: Safari Technology Preview
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Antoine Quint
URL:
Keywords: InRadar, WebExposed, WPTImpact
Depends on:
Blocks:
 
Reported: 2022-12-12 09:13 PST by Antoine Quint
Modified: 2022-12-13 08:16 PST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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>