only last style tag interpreted

Bug #521443 reported by neo
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
Undecided
Unassigned

Bug Description

Inkscape seems to overwrite it's style. I mean: when in a document you've got two style tags only the second is used. I attached a simple example.

Using:
Inkscape 0.47pre4 r22446 (Oct 14 2009)
on
Linux xoranVII 2.6.31-14-generic #48-Ubuntu SMP Fri Oct 16 14:04:26 UTC 2009 i686 GNU/Linux (ubuntu 9.10)

Tags: css styles
Revision history for this message
neo (tkolodziejski) wrote :
Revision history for this message
su_v (suv-lp) wrote :

According to "CSS Support - Multiple stylesheets" (Inkscape Wiki) this is a limitation of 'libcroco':
«Initially, we would support only a single stylesheet, as libcroco currently doesn't support multiple stylesheets. …»
<http://wiki.inkscape.org/wiki/index.php/CSS_Support#Multiple_stylesheets>

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

reproduced with Inkscape 0.47+devel r9086 on OS X 10.5.8 (and checked against Batik1.7 which honors both <style> tags)

Changed in inkscape:
status: New → Confirmed
Revision history for this message
neo (tkolodziejski) wrote :

Blame on me I didn't check that in page you gave. But if it's so simple to fix - just concatenate that two stylesheets wouldn't it be logical just to put all style tags into single one as a fast workaround?

su_v (suv-lp)
tags: added: css
Revision history for this message
Beluga (buovjaga) wrote :

Still confirmed. Inkscape shows the box in black while Firefox and LibreOffice show it in red.

Arch Linux 64-bit, KDE Plasma 5
Inkscape 0.92pre1 15054 (GTK3)

jazzynico (jazzynico)
Changed in inkscape:
status: Confirmed → Triaged
Revision history for this message
Nathan Lee (nathan.lee) wrote :

Closing as fixed in 1.0

Fixed in Inkscape 1.0alpha (9dee831, 2019-01-15) appimage, Inkscape 1.0 (4035a4f, 2020-05-01) appimage, Inkscape 1.1-dev (bd77302e35, 2020-07-12, custom) Linux Mint 19.1

Note: there is some slowness opening files with multiple style tags (to the point of making them un-open-able), this is fixed in development versions (see https://gitlab.com/inkscape/inkscape/-/issues/504)

Closed by: https://gitlab.com/nathanal

Changed in inkscape:
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.