[Webkit-unassigned] [Bug 112796] New: A horizontal <line> is not rendered when contained in a parent group with a clip-path property.
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Mar 20 06:06:28 PDT 2013
https://bugs.webkit.org/show_bug.cgi?id=112796
Summary: A horizontal <line> is not rendered when contained in
a parent group with a clip-path property.
Product: WebKit
Version: 528+ (Nightly build)
Platform: All
OS/Version: All
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: SVG
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: pruzand at gmail.com
CC: zimmermann at kde.org
Created an attachment (id=194032)
--> (https://bugs.webkit.org/attachment.cgi?id=194032&action=review)
a simple testcase that reproduces the issue.
A horizontal line whose parent has a clip-path attribute is not rendered, even if the clipPath geometry is "compatible" with the line geometry.
For example, with the following markup:
<g clip-path="url(#gfx_clip1)">
<line stroke-dasharray="none" y2="200" x2="340" y1="200" x1="10"
stroke-miterlimit="4" stroke-linejoin="miter" stroke-linecap="butt"
stroke-width="1" stroke-opacity="1" stroke="rgb(255, 0, 0)" fill-opacity="0" fill="none">
</line>
</g>
<clipPath id="gfx_clip1">
<rect height="500" width="500" y="0" x="0"></rect>
</clipPath>
the line is not rendered on screen. It works in FF19, IE9.
Note that the issue does _not_ appear if:
* the clip-path attribute is removed; or
* a new shape is added to the group (provided the new shape changes the group bbox),the line is rendered. For example, the following markup does not reproduce the issue anymore:
<g clip-path="url(#gfx_clip1)">
<line stroke-dasharray="none" y2="200" x2="340" y1="200" x1="10"
stroke-miterlimit="4" stroke-linejoin="miter" stroke-linecap="butt"
stroke-width="1" stroke-opacity="1" stroke="rgb(255, 0, 0)" fill-opacity="0" fill="none">
</line>
<rect stroke-dasharray="none" width="200" height="100" y="30" x="10"
stroke-miterlimit="4" stroke-linejoin="miter" stroke-linecap="butt" stroke-width="1" stroke-opacity="1"
stroke="rgb(255, 0, 0)" fill-opacity="0" fill="none">
</rect>
</g>
<clipPath id="gfx_clip1">
<rect height="500" width="500" y="0" x="0"></rect>
</clipPath>
Attached a sample that reproduces the issue.
Reproduced on:
Safari 6.0.3 / MacOS X 10.8.3
Chrome 25.0.1364.172m / Windows 7
Chrome Canary 27.0.1446.3 / Windows 7
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list