Like #6320, this is a followup to the resolution in #413. It also depends on #4869 since the relevant piece of the spec isn't in great shape.
In #413 the group resolved that values less than 1px in the perspective()
transform function should be clamped to a minimum of 1px
. It was described there as a "render time clamp".
However, the resolved value of transform
is (interoperably, I think) a matrix()
or matrix3d()
value. If perspective(0)
is put in the matrix without the clamping, we'd need to figure out how to represent infinity in the matrix. While there are, in theory, ways we could do this (like calc(-1/0)
, it's not clear that those ways are actually reliably supported across engines. It seems both easier and more useful to produce the matrix that would actually be used at render time, but applying the clamping when producing the resolved value.
So I'd like to propose that the clamping of perspective()
also apply to the resolved value.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.3