Closed
Bug 648896
Opened 14 years ago
Closed 14 years ago
Masking not-applied properly on line (only) element
Categories
(Core :: SVG, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: marek.raida, Unassigned)
Details
Attachments
(2 files)
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:2.2a1pre) Gecko/20110410 Firefox/4.2a1pre
Build Identifier: Mozilla/5.0 (Windows NT 5.1; rv:2.2a1pre) Gecko/20110410 Firefox/4.2a1pre
If there should be mask applied to group having as a member only line element, it is not applied at all (seems like that rendering is not triggered at all).
Adding any other member to the group, which has fill property, it starts working as expected.
Reproducible: Always
Steps to Reproduce:
1. Open failing testcase from the attachment
Actual Results:
White screen, no rendering at all
Expected Results:
You should see animated dots flowing from right to left
It seems that other browsers behaves in similar way, but IMHO it is a bug.
Masking should be applied to all elements and existence of fill attribute should not be mandatory.
As a workaround (second attachment), adding of another element different from line, even with transparent/no fill property, helps...
| Reporter | ||
Comment 1•14 years ago
|
||
| Reporter | ||
Comment 2•14 years ago
|
||
Updated•14 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment 3•14 years ago
|
||
> It seems that other browsers behaves in similar way, but IMHO it is a bug.
If we're all in the same boat maybe it's not just coincidence ;-)
If attribute ‘maskUnits’ is not specified, then the effect is as if a value of 'objectBoundingBox' were specified.
Then from http://www.w3.org/TR/SVG/coords.html#ObjectBoundingBoxUnits
Keyword objectBoundingBox should not be used when the geometry of the applicable element has no width or no height, such as the case of a horizontal or vertical line, even when the line has actual thickness when viewed due to having a non-zero stroke width since stroke width is ignored for bounding box calculations. When the geometry of the applicable element has no width or height and objectBoundingBox is specified, then the given effect (e.g., a gradient or a filter) will be ignored.
And the w3c testsuite even has a test for this. It uses gradients but the rules are the same.
http://www.w3.org/Graphics/SVG/Test/20061213/htmlObjectHarness/full-pservers-grad-17-b.html
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → INVALID
| Reporter | ||
Comment 4•14 years ago
|
||
great... and in that case sorry for filling this bug... ;-)
Although, from user perspective, I didn't expected this, but spec is spec... ;-)
Comment 5•14 years ago
|
||
No problem :-)
You need to log in
before you can comment on or make changes to this bug.
Description
•