{"id":150,"date":"2012-04-07T20:49:05","date_gmt":"2012-04-07T19:49:05","guid":{"rendered":"http:\/\/sphinx.lamecarlate.net\/?p=150"},"modified":"2018-09-30T18:00:58","modified_gmt":"2018-09-30T17:00:58","slug":"anti-aliasing-not-working-in-chromium","status":"publish","type":"post","link":"https:\/\/informatique.lamecarlate.net\/articles\/anti-aliasing-not-working-in-chromium","title":{"rendered":"Anti-aliasing not working in Chromium"},"content":{"rendered":"

I recently had to use the CSS3 property transform, in its \u00ab\u00a0rotate\u00a0\u00bb version. This property being currently supported by all modern browsers – but with vendor prefixes -, I thought it would be rendered the same anywhere.<\/p>\n

It was not, not really.<\/p>\n

In Chromium, -webkit-transform:rotate(4deg) on a container led to horribly aliased edges for this container. After some research, it appears that it was a WebKit engine bug, not solved for now. Tragedy! Horror! Pickles! Should my design be thrown away?\u00a0No, don’t weep in sorrow: there is a way.<\/p>\n

Others have the same problem:
\nhttp:\/\/stackoverflow.com\/questions\/5078186\/webkit-transform-rotate-pixelated-images-in-chrome<\/a><\/p>\n

And others know how to solve it:
\n
http:\/\/stackoverflow.com\/questions\/6492027\/css-transform-jagged-edges-in-chrome<\/a><\/p>\n

The key is backface-visibility:\u00a0https:\/\/www.w3.org\/TR\/css-transforms-1\/#backface-visibility-property<\/a>\u00a0It’s linked to 3D effects, and I must admit I don’t know why it corrects aliasing. I’ll search a little more \ud83d\ude09<\/p>\n","protected":false},"excerpt":{"rendered":"

I recently had to use the CSS3 property transform, in its \u00ab\u00a0rotate\u00a0\u00bb version. This property being currently supported by all modern browsers – but with vendor prefixes -, I thought […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[35],"tags":[39,15,43],"_links":{"self":[{"href":"https:\/\/informatique.lamecarlate.net\/wp-json\/wp\/v2\/posts\/150"}],"collection":[{"href":"https:\/\/informatique.lamecarlate.net\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/informatique.lamecarlate.net\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/informatique.lamecarlate.net\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/informatique.lamecarlate.net\/wp-json\/wp\/v2\/comments?post=150"}],"version-history":[{"count":1,"href":"https:\/\/informatique.lamecarlate.net\/wp-json\/wp\/v2\/posts\/150\/revisions"}],"predecessor-version":[{"id":927,"href":"https:\/\/informatique.lamecarlate.net\/wp-json\/wp\/v2\/posts\/150\/revisions\/927"}],"wp:attachment":[{"href":"https:\/\/informatique.lamecarlate.net\/wp-json\/wp\/v2\/media?parent=150"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/informatique.lamecarlate.net\/wp-json\/wp\/v2\/categories?post=150"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/informatique.lamecarlate.net\/wp-json\/wp\/v2\/tags?post=150"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}