They seem to be based on the premise that pservers are not valid inside a <text>. But both <linearGradient> and <pattern> are listed explicitly as a valid child of <text> in the draft at https://svgwg.org/svg2-draft/single-page.html#text-TextElement.
I'm not saying this behaviour is desirable, and I'm aware the behaviour asserted in this test matches Webkit, Blink and Gecko. But if this is what we want, then it should be raised as an issue on the SVG spec.
I don't agree with the the following tentative tests:
They seem to be based on the premise that pservers are not valid inside a
<text>
. But both<linearGradient>
and<pattern>
are listed explicitly as a valid child of<text>
in the draft at https://svgwg.org/svg2-draft/single-page.html#text-TextElement.I'm not saying this behaviour is desirable, and I'm aware the behaviour asserted in this test matches Webkit, Blink and Gecko. But if this is what we want, then it should be raised as an issue on the SVG spec.
@fregu