Batik calculates the area behind text (e.g., for feFlood in a filter) by calculating a tight rectangle bound the character glyphs.
Chrome, Firefox and Edge all calculate a somewhat looser rectangle, including the full line height. Their behavior seems correct, as it results in a much more pleasing and intuitive effect when multiple text segments are filtered in one line of text.
- tqbf2-outer.svg - a file demonstrating this problem. This can be loaded directly in any current browser
- tqbf2.pdf - the results in Batik. This differs from the browser results.