Description:
Rendering a SVG file which contains multiple spaces inside text, and the
xml:space="preserve" attribute will will still compact space characters.
(Acting like xml:space="default".)
I think the offending line is in RenderSVGInlineText::RenderSVGInlineText
on line 69 in
chromium/src/third_party/WebKit/Source/WebCore/rendering/svg/RenderSVGInlineText.cpp,
but I am overall unfamiliar with the WebRTC code base. The constructor for
RenderSVGInlineText strips additional whitespace regardless of this tag.
Attaching screenshot of this bug in Chromium, using WebKit 537.32
(trunk@143310), and expected result as rendered inside Firefox.
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
chro...@googlecode.com
unread,
Apr 15, 2013, 4:40:12 PM4/15/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
I thought that I commented to this bug already, but I can't see it. Just in
case if it didn't get through: The SVG WG decided that xml:space should be
replaced by CSS white-space instead. So might be worth looking more into
this direction.
I guess the point is more that we should encourage users to use the prober
way. Implementing xml:space first (which is not fully compatible to CSS
anyway IIRC) does not seem to be the right way.
Another note, it is deprecated and not mandatory. It is the question if we
still want to focus on SVG1.1 or go to SVG2 directly. Supporting multiple
levels seems to be hard to maintain. Given that we do not get a new version
on the version attribute on SVG2, it will be hard to differ anyway.
(version attribute is deprecated as well IIRC)
chro...@googlecode.com
unread,
Feb 18, 2014, 11:01:55 PM2/18/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
SVG rendering ignores xml:space="preserve" attribute for text
Make tspan and textPath inherit the css-whitespace property by default.
This means it will either use the
same xml:space setting as its parent text container, or use its own
xml:space value if provided.