Difference between revisions of "CSS96"

From Inkscape Wiki
Jump to: navigation, search
(Efffected files)
(Fix)
Line 23: Line 23:
  
 
* A 'viewBox' should NOT be automatically added.
 
* A 'viewBox' should NOT be automatically added.
 +
* If a user does agree to add a 'viewBox' it should be undoable (Ctrl-Z) in case the user decides it was not appropriate.
  
 
=See=
 
=See=

Revision as of 09:44, 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.
  • If a user does agree to add a 'viewBox' it should be undoable (Ctrl-Z) in case the user decides it was not appropriate.

See