Difference between revisions of "CSS96"

From Inkscape Wiki
Jump to navigation Jump to search
(Created page with " =Problem= Inkscape <= 0.91 uses 90px per inch. Inkscape >= 0.92 uses SVG/CSS defined 96px per inch. Work was done in 0.91 to make Inkscape produced drawings independent of...")
 
Line 6: Line 6:
Work was done in 0.91 to make Inkscape produced drawings independent of which px per inch value is used but pre 0.91 files may still depend on 90 px per inch.
Work was done in 0.91 to make Inkscape produced drawings independent of which px per inch value is used but pre 0.91 files may still depend on 90 px per inch.


=Efffected files=
=Affected files=


Files that have all the following properties:
Files that have all the following properties:

Revision as of 09:01, 5 June 2016


Problem

Inkscape <= 0.91 uses 90px per inch. Inkscape >= 0.92 uses SVG/CSS defined 96px per inch.

Work was done in 0.91 to make Inkscape produced drawings independent of which px per inch value is used but pre 0.91 files may still depend on 90 px per inch.

Affected files

Files that have all the following properties:

  • Pre-0.91 Inkscape files AND
  • Which do not have a 'viewBox' AND
  • Have:
    • A size (SVG root width/height) expressed in non-pixel units OR
    • Have grids with non-pixel units OR
    • Have guides with non-pixel units OR
    • Have font sizes with non-pixel units (pt).

Fix

If the a file is detected to have a problem, offer the user the option to add a 'viewBox' that fixes the user unit to 90 px per inch.

  • A 'viewBox' should NOT be automatically added.

See