Closed Bug 1630441 Opened 4 years ago Closed 2 years ago

[css-transforms] Zero value in perspective() function

Categories

(Core :: Layout, defect, P3)

defect

Tracking

()

RESOLVED DUPLICATE of bug 1717161

People

(Reporter: mozilla-apprentice, Unassigned)

References

Details

A resolution was made for csswg-drafts/#413.

[css-transforms] Zero value in perspective() function

  • RESOLVED: 0 is allowed with 1px being the render time clamp

Discussion.

This is a followup to bug 1316236, basically.

Most of the CSSWG discussion on this is here:
https://github.com/w3c/csswg-drafts/issues/413#issuecomment-537729118

Though also see subsequent comments, and note that the issue was reopened...

Depends on: 1316236

The spec was changed to reflect this clamping, though.

perspective css property:
https://drafts.csswg.org/css-transforms-2/#perspective-property

...values less than 1px must be treated as 1px for rendering purposes. (This clamping does not affect the underlying value, so perspective: 0; in a stylesheet will still serialize back as 0.)

perspective() function in transform property:
https://drafts.csswg.org/css-transforms-2/#funcdef-perspective

If the depth value is less than 1px, it must be treated as 1px for the purpose of rendering.

Severity: -- → S3
Flags: needinfo?(dholbert)

The severity field for this bug is relatively low, S3. However, the bug has 5 See Also bugs.
:dholbert, could you consider increasing the bug severity?

For more information, please visit auto_nag documentation.

Flags: needinfo?(dholbert)

Matt fixed this a while ago in bug 1717161, or are we missing something?

Flags: needinfo?(dholbert)
Flags: needinfo?(dbaron)

That's just one piece of it... but I think Matt made some other changes as well, now that I'm remembering.

(I was commenting because I found an item on my to-do list to comment in relevant WebKit and Gecko bugs once we were sure the Chromium changes would not get reverted. And it took me a while to remember to do that...)

Based on a glance at https://wpt.fyi/results/css/css-transforms?label=master&label=stable I think there's nothing left to do here.

Flags: needinfo?(dbaron)

Thanks! Let's just dupe to bug 1717161 then (with an implicit-dupe/dependency on the other pieces / other associated changes that got us to the current WPT pass status).

Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.