Closed Bug 1264373 Opened 9 years ago Closed 9 years ago

Filter effects not being applied to <tspan> elements

Categories

(Core :: SVG, defect)

45 Branch
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1062725

People

(Reporter: paul.lebeau, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0 Build ID: 20160407164938 Steps to reproduce: Visit the following URL: https://jsfiddle.net/67nen0fs/5/ <svg width="450" height="80" viewBox="0 0 450 80" xmlns="http://www.w3.org/2000/svg" version="1.1"> <defs> <filter id="colorMe" x="0" y="0" width="1" height="1"> <feGaussianBlur stdDeviation="8" result="blur" /> <feMerge> <feMergeNode in="blur"/> <feMergeNode in="SourceGraphic"/> </feMerge> </filter> </defs> <text x="15" y="30" font-size="40px" filter="url(#colorMe)">You are <tspan fill="white">not</tspan> me </text> <text x="15" y="70" font-size="40px">You are <tspan fill="white" filter="url(#colorMe)">not</tspan> me </text> </svg> Actual results: In neither case doe the text in the <tspan> elements get the filter applied. A similar issue was discussed in bug https://bugzilla.mozilla.org/show_bug.cgi?id=917766 There it was determined that <tspan> is not a container element, (nor a hraphic element(?) so cannot have a filter applied. That may be the case, but at the very least it should be affected by a filter applied to its parent <text> element shouldn't it? Note: this test file fails in Chrome (for a different reason), but works in IE.
Component: Untriaged → SVG
Product: Firefox → Core
Status: UNCONFIRMED → RESOLVED
Closed: 9 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.