Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Stop propagating text decorations on outermost SVG roots
https://bugs.webkit.org/show_bug.cgi?id=248567 rdar://problem/103093226 Reviewed by Antti Koivisto. This patch aligns WebKit with Gecko / Firefox and Blink / Chromium. Merge: https://src.chromium.org/viewvc/blink?view=revision&revision=199132 Outermost SVG roots should be consider atomic inline-level, and hence text decorations should not propagate into them from the outside. * Source/WebCore/style/StyleAdjuster.cpp: (isOutermostSVGElement): Add new static function (shouldInheritTextDecorationsInEffect): Update as per commit * LayoutTests/svg/text/text-decoration-propagation.html: Add Test Case * LayoutTests/svg/text/text-decoration-propagation-expected.html: Add Test Case Expectation * LayoutTests/svg/text/text-decoration-propagation-2.html: Add Test Case * LayoutTests/svg/text/text-decoration-propagation-2-expected.html: Add Test Case Expectation Canonical link: https://commits.webkit.org/264894@main
- Loading branch information
1 parent
5b9c48e
commit b3a3c58
Showing
5 changed files
with
41 additions
and
1 deletion.
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
LayoutTests/svg/text/text-decoration-propagation-2-expected.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<!DOCTYPE html> | ||
<style> | ||
#outer { text-decoration: underline; } | ||
</style> | ||
<svg id=outer> | ||
<text y="20">Text which does have an underline</text> | ||
</svg> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<!DOCTYPE html> | ||
<style> | ||
#outer { text-decoration: underline; } | ||
</style> | ||
<svg id=outer> | ||
<svg> | ||
<text y="20">Text which does have an underline</text> | ||
</svg> | ||
</svg> |
6 changes: 6 additions & 0 deletions
6
LayoutTests/svg/text/text-decoration-propagation-expected.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<!DOCTYPE html> | ||
<span> | ||
<svg> | ||
<text y="20">Text which does NOT have an underline</text> | ||
</svg> | ||
</span> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<!DOCTYPE html> | ||
<style> | ||
span { text-decoration: underline; } | ||
</style> | ||
<span> | ||
<svg> | ||
<text y="20">Text which does NOT have an underline</text> | ||
</svg> | ||
</span> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters