Bug 155651 - Add SVG attribute value "context-stroke"
Summary: Add SVG attribute value "context-stroke"
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: filters and storage (show other bugs)
Version:
(earliest affected)
7.6.0.0 alpha1+
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL: https://www.w3.org/TR/SVG2/painting.html
Whiteboard:
Keywords: filter:svg
Depends on:
Blocks: SVG-Import
  Show dependency treegraph
 
Reported: 2023-06-02 18:06 UTC by Richard Mortimer
Modified: 2023-06-07 13:45 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments
Writer document with the SVGs and their equivalent PDFs imported (126.58 KB, application/vnd.oasis.opendocument.text)
2023-06-02 18:06 UTC, Richard Mortimer
Details
PDF of writer document with sample SVG/PDFs imported (45.44 KB, application/pdf)
2023-06-02 18:07 UTC, Richard Mortimer
Details
Inkscape 1.2 arrows SVG (6.57 KB, image/svg+xml)
2023-06-02 18:08 UTC, Richard Mortimer
Details
Inkscape 1.2 arrows PDF (3.10 KB, application/pdf)
2023-06-02 18:08 UTC, Richard Mortimer
Details
Inkscape 1.1.2 arrows SVG (6.37 KB, image/svg+xml)
2023-06-02 18:09 UTC, Richard Mortimer
Details
Inkscape 1.1.2 arrows PDF (2.91 KB, application/pdf)
2023-06-02 18:09 UTC, Richard Mortimer
Details
Inkscape 1.0.2 arrows SVG (7.30 KB, image/svg+xml)
2023-06-02 18:10 UTC, Richard Mortimer
Details
Inkscape 1.0.2 arrows PDF (3.08 KB, application/pdf)
2023-06-02 18:10 UTC, Richard Mortimer
Details
Inkscape 0.92 arrows SVG (8.08 KB, image/svg+xml)
2023-06-02 18:10 UTC, Richard Mortimer
Details
Inkscape 0.92 arrows PDF (4.28 KB, application/pdf)
2023-06-02 18:11 UTC, Richard Mortimer
Details
Screnshot from Chromium (78.05 KB, image/png)
2023-06-03 17:12 UTC, Rainer Bielefeld Retired
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Richard Mortimer 2023-06-02 18:06:52 UTC
Created attachment 187670 [details]
Writer document with the SVGs and their equivalent PDFs imported

The SVG images produced by recent (version 1.2 onwards) versions of Inkscape do not display arrows correctly, if at all. Earlier versions of Inkscape (0.92, 1.0.x and 1.1.x) import correctly.

The SVG images produced by Inkscape display correctly in Firefox and Chrome so it seems that it is Libreoffice that is not importing/displaying correctly.

Tested in Libreoffice 7.2.7.2, 7.5.3.2 and 7.6.0.0 alpha1 (1/June/2023) with the same results.

I can export the SVGs from Inkscape as PDF and the imported PDF documents display correctly. Attached to the bug are example SVGs generated with different versions of Inkscape and PDF exports from that version of Inkscape. Also a writer document with all of the SVGs and PDFs imported to show the issue.
Comment 1 Richard Mortimer 2023-06-02 18:07:55 UTC
Created attachment 187671 [details]
PDF of writer document with sample SVG/PDFs imported
Comment 2 Richard Mortimer 2023-06-02 18:08:21 UTC
Created attachment 187672 [details]
Inkscape 1.2 arrows SVG
Comment 3 Richard Mortimer 2023-06-02 18:08:48 UTC
Created attachment 187673 [details]
Inkscape 1.2 arrows PDF
Comment 4 Richard Mortimer 2023-06-02 18:09:16 UTC
Created attachment 187674 [details]
Inkscape 1.1.2 arrows SVG
Comment 5 Richard Mortimer 2023-06-02 18:09:38 UTC
Created attachment 187675 [details]
Inkscape 1.1.2 arrows PDF
Comment 6 Richard Mortimer 2023-06-02 18:10:00 UTC
Created attachment 187676 [details]
Inkscape 1.0.2 arrows SVG
Comment 7 Richard Mortimer 2023-06-02 18:10:25 UTC
Created attachment 187677 [details]
Inkscape 1.0.2 arrows PDF
Comment 8 Richard Mortimer 2023-06-02 18:10:49 UTC
Created attachment 187678 [details]
Inkscape 0.92 arrows SVG
Comment 9 Richard Mortimer 2023-06-02 18:11:10 UTC
Created attachment 187679 [details]
Inkscape 0.92 arrows PDF
Comment 10 Rainer Bielefeld Retired 2023-06-03 16:59:53 UTC
> The SVG images produced by Inkscape display correctly in Firefox and Chrome 

Not in Chromium Version 97.0.4692.7
Not in FF 115.0a1 (2023-06-03) (64-Bit)

We need some proof that the .SVG have correct syntax
Comment 11 Rainer Bielefeld Retired 2023-06-03 17:12:59 UTC
Created attachment 187699 [details]
Screnshot from Chromium

Also Chromium Version 116.0.5810.0 (Entwickler-Build) (64-Bit) shows SVG different from PDF exported from Inkscape.
Comment 12 Regina Henschel 2023-06-03 19:53:40 UTC
Problem is the value fill:context-stroke in the style attribute of the marker. The attribute value "context-stroke" does not belong to SVG 1.1. It is only in the working draft for SVG 2. LibreOffice does not support this value.
Comment 13 Roman Kuznetsov 2023-06-04 18:06:31 UTC
Set to NEW by Comment 12

Thanks Regina
Comment 14 Regina Henschel 2023-06-07 13:45:43 UTC
Same for attribute 'context-fill'.