No clipping with nested svg elements

Bug #186023 reported by Frederik Elwert on 2008-01-25
Affects Status Importance Assigned to Milestone

Bug Description

According to the SVG 1.1 spec, user agents must establish a clipping path for svg elements that are not the root element:

Take this simple example:

<?xml version="1.0" standalone="no"?>
<svg xmlns="" version="1.1"
     width="100" height="100">
    <circle cx="25" cy="25" r="25"/>
    <svg x="50" y="50" width="25" height="25">
        <circle cx="25" cy="25" r="25"/>

It should show one full circle, and one circle clipped to its upper-left quarter. This is handled correctly by Batik, librsvg and Opera. But Inkscape shows both circles unclipped.

Ryan Lerch (ryanlerch) wrote :

Do we support this feature of SVG yet? or is it a wishlist item that goes towards the overall goal of being SVG compliant?

Changed in inkscape:
status: New → Incomplete

Inkscape can't produce this kind of files with nested svg files. But it generally can display them - except for the clipping. So this is a display bug concerning compatibility with the spec and with other viewers. I don't know if you would call it a wishlist feature, I would call it a bug.

ScislaC (scislac) wrote :

Given that we use Batik as the reference renderer, this appears to be correct.

Changed in inkscape:
importance: Undecided → Medium
status: Incomplete → Confirmed
jazzynico (jazzynico) on 2010-12-28
tags: added: clipping svg
Beluga (buovjaga) wrote :

Still confirmed.

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

jazzynico (jazzynico) on 2016-08-15
Changed in inkscape:
status: Confirmed → Triaged
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers