[webkit-changes] [WebKit/WebKit] 40db7d: SVG rendering ignores xml:space="preserve" attribu...
Ahmad Saleem
noreply at github.com
Mon Oct 24 09:44:27 PDT 2022
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 40db7d1db4027f9257c61c255441a8c69aa7be4e
https://github.com/WebKit/WebKit/commit/40db7d1db4027f9257c61c255441a8c69aa7be4e
Author: Ahmad Saleem <ahmad.saleem792+github at gmail.com>
Date: 2022-10-24 (Mon, 24 Oct 2022)
Changed paths:
M LayoutTests/platform/gtk/imported/w3c/web-platform-tests/svg/import/text-tspan-02-b-manual-expected.txt
M LayoutTests/platform/gtk/svg/W3C-SVG-1.1-SE/text-tspan-02-b-expected.png
M LayoutTests/platform/gtk/svg/W3C-SVG-1.1-SE/text-tspan-02-b-expected.txt
M LayoutTests/platform/ios-simulator/imported/w3c/web-platform-tests/svg/import/text-tspan-02-b-manual-expected.txt
M LayoutTests/platform/ios/svg/W3C-SVG-1.1-SE/text-tspan-02-b-expected.txt
M LayoutTests/platform/mac/imported/w3c/web-platform-tests/svg/import/text-tspan-02-b-manual-expected.txt
M LayoutTests/platform/mac/svg/W3C-SVG-1.1-SE/text-tspan-02-b-expected.png
M LayoutTests/platform/mac/svg/W3C-SVG-1.1-SE/text-tspan-02-b-expected.txt
M Source/WebCore/css/svg.css
Log Message:
-----------
SVG rendering ignores xml:space="preserve" attribute for text
SVG rendering ignores xml:space="preserve" attribute for text
https://bugs.webkit.org/show_bug.cgi?id=112032
Reviewed by Simon Fraser.
Merge - https://src.chromium.org/viewvc/blink?view=revision&revision=167393
Align with Web-Spec: https://www.w3.org/TR/SVG11/text.html#WhiteSpace
"It will convert all newline and tab characters into space characters.
Then, it will draw all space characters, including leading, trailing and multiple contiguous space characters."
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. Also add ";".
* Source/WebCore/css/svg.css: Update "tspan" to "textPath" to inherit white-space
* LayoutTests/platform/gtk/imported/w3c/web-platform-tests/svg/import/text-tspan-02-b-manual-expected.txt: Updated Test Expectations
* LayoutTests/platform/gtk/svg/W3C-SVG-1.1-SE/text-tspan-02-b-expected.png: Updated Test Expectations
* LayoutTests/platform/gtk/svg/W3C-SVG-1.1-SE/text-tspan-02-b-expected.txt: Updated Test Expectations
* LayoutTests/platform/mac/imported/w3c/web-platform-tests/svg/import/text-tspan-02-b-manual-expected.txt: Updated Test Expectations
* LayoutTests/platform/mac/svg/W3C-SVG-1.1-SE/text-tspan-02-b-expected.png: Updated Test Expectations
* LayoutTests/platform/mac/svg/W3C-SVG-1.1-SE/text-tspan-02-b-expected.txt: Updated Test Expectations
* LayoutTests/platform/ios/svg/W3C-SVG-1.1-SE/text-tspan-02-b-expected.txt: Updated Test Expectations
* LayoutTests/platform/ios-simulator/imported/w3c/web-platform-tests/svg/import/text-tspan-02-b-manual-expected.txt: Updated Test Expectations
Canonical link: https://commits.webkit.org/255917@main
More information about the webkit-changes
mailing list