[Webkit-unassigned] [Bug 240867] New: <text>, <tspan> position is not respected when white-space is applied and element contains text nodes
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue May 24 05:33:53 PDT 2022
https://bugs.webkit.org/show_bug.cgi?id=240867
Bug ID: 240867
Summary: <text>, <tspan> position is not respected when
white-space is applied and element contains text nodes
Product: WebKit
Version: WebKit Nightly Build
Hardware: All
OS: All
Status: NEW
Severity: Normal
Priority: P2
Component: SVG
Assignee: webkit-unassigned at lists.webkit.org
Reporter: gtktsc at gmail.com
CC: sabouhallawa at apple.com, zimmermann at kde.org
Created attachment 459718
--> https://bugs.webkit.org/attachment.cgi?id=459718&action=review
Example of working and broken <text> nodes in SVG when white-space is applied
When <text> node has `white-space` property set to `pre-wrap` or `pre-line` and it contains <tspan> nodes and text nodes combined (for example newline character or empty space between <tspan>) children overlap on each other - their position is not respected. When text nodes are trimmed from <text> it works properly. It works in Firefox and Chrome.
Similar bug https://bugs.webkit.org/show_bug.cgi?id=189790 related to how `white-space` behaves, but it's not about text nodes in particular.
I've attached an example, it contains three <text> nodes:
- text node without `white-space` property - working,
- text node with `white-space` property and text nodes in between - broken,
- text node with `white-space` property but without text nodes in between - working.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220524/113b9974/attachment.htm>
More information about the webkit-unassigned
mailing list