fill-opacity behaviour compared to browser and rsvg

Paul Melis
2026-04-02T20:42:55Z

#### Summary:

The `fill-opacity="40%"` on one of the rects below is ignored when loading the svg in inkscape.

```

```

Chromium and rsvg-convert:

![image](/uploads/90bd9c8220c4b235fbbea9c5ed2051af/image.png){width=165 height=66}

Inkscape:

![image](/uploads/7f1a4fbd0b93158dffff9e60b809ff02/image.png){width=99 height=82}

I noticed that if I update the opacity in the fill and stroke panel (to, say, around 52%) the value is saved in the `style="...; fill-opacity:..."` attribute, while still leaving the original `fill-opacity` attribute set:

```

```

Does inkscape simply ignore `fill-opacity`?

#### Steps to reproduce:

- open Inkscape
- load bug.svg

#### What happened?

The fill-opacity set on one of the rectangles is not applied on the Inkscape object.

#### What should have happened?

Fill opacity should be applied

Sample attachments:

![bug.svg](/uploads/3f868e526d2a6e541db02a09f7d7f57d/bug.svg){width=900 height=507}

#### Version info

```
Inkscape 1.4.3 (0d15f75042, 2025-12-25)

Compile (Run)
GLib version: 2.86.4
GTK version: 3.24.51 (3.24.51)
glibmm version: 2.66.8
gtkmm version: 3.24.10
libxml2 version: 2.15.2
libxslt version: 1.1.45
Cairo version: 1.18.4 (1.18.4)
Pango version: 1.57.0 (1.57.0)
HarfBuzz version: 13.1.1 (13.2.1)

OS version: Arch Linux
```