Quantcast
Channel: Tiffany B. Brown » Browsers
Viewing all articles
Browse latest Browse all 20

Smoothing jagged edges on transformed objects in Firefox

$
0
0

Transformed elements in Firefox sometimes appear with jagged edges. The anti-aliasing isn’t as smooth as what you find in Webkit-based browsers or Internet Explorer (Figure 1).

A transformed image in Firefox.
Figure 2. An image with transform: rotateX(-45deg);. View a larger version.

The good news is that there’s an easy fix for this. It’s essentially the fix used to address the striped border bug in Opera 12.02. Add border: 1px solid transparent to the object. The result looks more like what you see in Figure 2.

A transformed image with smooth edges in Firefox.
Figure 2. An image with transform: rotateX(-45deg); and border: 1px solid transparent

Viewing all articles
Browse latest Browse all 20

Trending Articles