Positioning

Illustrator, just like SVG, is a pixel-precise application. Although the bulk of the world may not care if a rectangle's top left corner is at (5.76389,45.8012), you can bet your inheritance that the designer does care if that is the original intent. As such, SVG allows designers to fuss with their code to their hearts' content.

However, there are some unexpected side effects of both Illustrator's and SVG's precision. What may look like perfect alignment between two abutting objects in Illustrator may actually be off by 0.00001 of a pixel. Although Illustrator's display engine may make your artwork appear correctly, you have no such guarantees with every SVG viewer. The 0.00001–pixel difference may be enough to cause a different application ...

Get Sams Teach Yourself SVG in 24 Hours now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.