https://bugs.documentfoundation.org/show_bug.cgi?id=156236
Bug ID: 156236
Summary: SVG import: rect element with rx="0" uses ry value
instead (and vice-versa)
Product: LibreOffice
Version: 6.1.0.3 release
Hardware: All
OS: All
Status: UNCONFIRMED
Keywords: filter:svg
Severity: normal
Priority: medium
Component: filters and storage
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
Blocks: 88278
If the property rx is 0, LO will import it as equal of the non-zero positive
value of ry (and vice versa).
Steps to reproduce:
1. Open attachment in e.g. Firefox or Chrome, observe that bottom-left rect
element is displayed as a square.
2. Open attachment in LO
Result: bottom-left rect is displayed with rounded corners consistent with
values of rx=15 and ry=15.
Expected: right-angle corners, just like in Firefox or Chrome.
Tested in:
Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 77fca616e0bd79e0b405fd0b3543cf8e94e15df3
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded
Regression as not present in 6.0:
Version: 6.0.0.3
Build ID: 64a0f66915f38c6217de274f0aa8e15618924765
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk2;
Locale: en-AU (en_AU.UTF-8); Calc: group
Bibisected with linux-64-6.1 to first bad commit
2c183ed370c1e381ffaa14cb1507df84716333da which points to core commit:
commit 3ca7be09834a26fbd1c371deabd7a58111092676
author Armin Le Grand <[email protected]> Thu May 10 17:49:19 2018 +0200
committer Armin Le Grand <[email protected]> Fri May 18 20:11:35
2018 +0200
Replace SVGFilter using SVGIO
Armin and Xisco, can you please have a look?
--- Further info
"If a properly specified value is provided for rx but not for ry (or the
opposite), then the browser will consider the missing value equal to the
defined one."
https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/rx#rect
For the rx or ry properties, the value "0" is valid:
https://svgwg.org/svg2-draft/geometry.html#RX
Related svg-native-viewer patch:
https://github.com/adobe/svg-native-viewer/issues/69
Inkscape 1.2.2 imports it like LO, but see corresponding bug reports:
- https://bugs.launchpad.net/inkscape/+bug/1533302
- https://gitlab.com/inkscape/inbox/-/issues/6875
Referenced Bugs:
https://bugs.documentfoundation.org/show_bug.cgi?id=88278
[Bug 88278] [META] SVG import image filter (all modules)
--
You are receiving this mail because:
You are the assignee for the bug.