Open
Bug 1462147
Opened 8 years ago
Updated 3 years ago
Consider snapping less
Categories
(Core :: Graphics, enhancement, P3)
Core
Graphics
Tracking
()
NEW
People
(Reporter: jrmuizel, Unassigned)
Details
(Whiteboard: [gfx-noted])
When thinking about our WebRender snapping code I had a look at what Chrome was doing.
From what I understand, Chrome does not consider the transform when snapping. It simply snaps layout subpixels to pixels and applies the transform to the drawing context. e.g. an image that's transformed 0.5px will always be blurry even if it has a margin-left of 0.5px
This seems to be considerably simpler from an implementation point of view. It also maps well to animated transforms.
https://jrmuizel.github.io/implementation-tests/snapping.html contains some test cases showing this behaviour.
Updated•8 years ago
|
Priority: -- → P3
Whiteboard: [gfx-noted]
Updated•3 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•