We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If an element has a transform (transform:scale(1) for example), its coordinates are rounded (top:11.5px becomes top:12px).
transform:scale(1)
top:11.5px
top:12px
<div id='d1'></div> <div id='d2'></div> <style> div { position: absolute; top: 11.5px; width: 100px; height: 100px; } #d1 { left: 100px; background: green; } #d2 { left: 200px; background: red; transform: scale(1); } </style>
Note the green div is a bit higher than the red div:
The text was updated successfully, but these errors were encountered:
I have a fix coming up.
Sorry, something went wrong.
Auto merge of #7909 - paulrouget:subpixelPos, r=glennw
f7b2c3e
Snap to screen pixels instead of px Fixes #7904 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7909) <!-- Reviewable:end -->
Auto merge of #7909 - paulrouget:subpixelPos, r=mbrubeck
8ef8c53
No branches or pull requests
If an element has a transform (
transform:scale(1)
for example), its coordinates are rounded (top:11.5px
becomestop:12px
).Note the green div is a bit higher than the red div:
The text was updated successfully, but these errors were encountered: