Closed
Bug 555220
Opened 13 years ago
Closed 13 years ago
Elements should be visible even if mask/clip-path/filter refer invalid resources
Categories
(Core :: SVG, defect)
Core
SVG
Tracking
()
RESOLVED
INVALID
People
(Reporter: emk, Assigned: emk)
References
Details
Attachments
(2 files)
1.30 KB,
text/html
|
Details | |
3.39 KB,
patch
|
longsonr
:
review-
|
Details | Diff | Splinter Review |
Reproducable: always Steps to reproduce: 1. Enable JavaScript. 2. Open the test case. 3. Disable JavaScript. 4. Open the test case again. Actual result: An element is not rendered at all when JavaScript is disabled. Expected result: An element should be drawn without SVG effects if JavaScript is disabled. Because of this bug, it's very hard to write a fallback code in case referred resource is missing or invalid.
Assignee | ||
Comment 1•13 years ago
|
||
Assignee | ||
Comment 2•13 years ago
|
||
> if (!isOK) {
> // Some resource is missing. We shouldn't paint anything.
> return;
> }
Why not?
Comment 3•13 years ago
|
||
I've talked to bz once and he said that this behaviour is actually according to the SVG spec, if I recall correctly. But I agree that keeping the element visible would be much better in practice.
Comment 4•13 years ago
|
||
This is according to the SVG specification. SVG 1.1 2nd edition is proposing that this be changed for clipPath only so if you want to raise another bug just for clipPath you can, although the 2nd edition is still a work in progresss so we haven't implemented anything that conflicts with SVG 1.1 and that says missing resources result in no drawing.
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → INVALID
Updated•13 years ago
|
Attachment #435194 -
Flags: review?(roc) → review-
Comment 5•13 years ago
|
||
Since applying SVG effects to HTML isn't specced yet, could we change the behaviour there without violating the SVG spec?
Comment 6•13 years ago
|
||
(In reply to comment #2) > Created an attachment (id=435194) [details] > patch > > > if (!isOK) { > > // Some resource is missing. We shouldn't paint anything. > > return; > > } > Why not? We need to render this correctly http://www.w3.org/Graphics/SVG/Test/20061213/htmlObjectHarness/full-filters-felem-01-b.html
Comment 7•13 years ago
|
||
(In reply to comment #5) > Since applying SVG effects to HTML isn't specced yet, could we change the > behaviour there without violating the SVG spec? So SVG works one way and HTML the opposite. A receipe for complete confusion.
Updated•13 years ago
|
status1.9.2:
? → ---
You need to log in
before you can comment on or make changes to this bug.
Description
•