No clipping with nested svg elements

Bug #186023 reported by Frederik Elwert
2
Affects Status Importance Assigned to Milestone
Inkscape
Invalid
Medium
Unassigned

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: http://www.w3.org/TR/SVG11/masking.html#InitialClippingPath

Take this simple example:

<?xml version="1.0" standalone="no"?>
<svg xmlns="http://www.w3.org/2000/svg" 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"/>
    </svg>
</svg>

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.

Tags: clipping svg
Revision history for this message
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
Revision history for this message
Frederik Elwert (frederik-elwert) wrote :

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.

Revision history for this message
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)
tags: added: clipping svg
Revision history for this message
Beluga (buovjaga) wrote :

Still confirmed.

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
Jonathan Hofinger (jhofinger) wrote :

Hi - thanks for reporting this bug, I've manually migrated it to Inkscape's new bug tracker on GitLab, and closed it here.

Please feel free to file new bugs about the issues you're seeing at http://inkscape.org/report.

Moved to: https://gitlab.com/inkscape/inbox/issues/2196
Closed by: https://gitlab.com/jhofinger

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

Other bug subscribers

Remote bug watches

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