WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
240867
<text>, <tspan> position is not respected when white-space is applied and element contains text nodes
https://bugs.webkit.org/show_bug.cgi?id=240867
Summary
<text>, <tspan> position is not respected when white-space is applied and ele...
Bartosz Gryta
Reported
2022-05-24 05:33:53 PDT
Created
attachment 459718
[details]
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.
Attachments
Example of working and broken <text> nodes in SVG when white-space is applied
(567 bytes, image/svg+xml)
2022-05-24 05:33 PDT
,
Bartosz Gryta
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2022-05-31 05:34:29 PDT
<
rdar://problem/94145711
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug