-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Align criteria for isAlignedForUnder.
https://bugs.webkit.org/show_bug.cgi?id=270431 Reviewed by Alan Baradlay. The criteria of isAlignedForUnder is not aligned between RenderStyle::changeAffectsVisualOverflow from and isAlignedForUnder in InlineTextBoxStyle. * LayoutTests/fast/css3-text/css3-text-decoration/text-underline-position/text-underline-position-auto-computed-underline-offset-crash-expected.txt: Added. * LayoutTests/fast/css3-text/css3-text-decoration/text-underline-position/text-underline-position-auto-computed-underline-offset-crash.html: Added. * Source/WebCore/rendering/style/RenderStyle.cpp: (WebCore::RenderStyle::changeAffectsVisualOverflow const): * Source/WebCore/style/InlineTextBoxStyle.cpp: (WebCore::isAlignedForUnder): * Source/WebCore/style/InlineTextBoxStyle.h: Canonical link: https://commits.webkit.org/275771@main
- Loading branch information
1 parent
88b3ecb
commit e644c80
Showing
5 changed files
with
31 additions
and
19 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
...erline-position/text-underline-position-auto-computed-underline-offset-crash-expected.txt
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 @@ | ||
PASS if no crash or assert. |
13 changes: 13 additions & 0 deletions
13
...text-underline-position/text-underline-position-auto-computed-underline-offset-crash.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,13 @@ | ||
<style> | ||
html { | ||
writing-mode: vertical-lr; | ||
} | ||
</style> | ||
<span id=under>PASS</span> if no crash or assert. | ||
<script> | ||
if (window.testRunner) | ||
testRunner.dumpAsText(); | ||
document.body.offsetHeight; | ||
under.style.textDecoration = "underline"; | ||
under.style.textUnderlinePosition = "auto"; | ||
</script> |
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
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
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