Comment 2 for bug 1236074

Revision history for this message
su_v (suv-lp) wrote :

The SVG file you are importing contains a stylesheet which defines the opacity for all rects as '0'. When you scale the rectangle with the select tool, it is updated (position, dimension, stroke width), and just imported new global style directive is taken into account (the opacity value of the rect's 'style' attribute stores that value persistently - copied from the stylesheet):

  <…>
  <style
     type="text/css"
     id="style4">svg { background-color: #881C1C; } rect { opacity: 0; }</style>
  <…>

Just curious: what is the origin of that SVG file? Inkscape does not write such internal stylesheets itself, but does apply them when encountered in SVG files (limited CSS support).

Possible bugs encountered with importing such a file might be
1) a perceived inconsistency that only the 'scaling' the selection with the select tool triggers a recalculation of the style information (AFAIU because scaling may require a recalculation of the stroke width) - moving or rotating the existing rectangle does not have the same effect, nor does editing the geometry of the rectangle with the rect tool.
2) the style change based on the imported stylesheet is not recorded in the undo history (undoing the scaling does not revert the style change)
3) no visible information / message for the user which (optionally) warns about possibly unintended style changes based on the stylesheet of the imported file