-
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.
Ellipsis renders multiple times when
position: relative
and top
i…
…s used https://bugs.webkit.org/show_bug.cgi?id=274087 <rdar://problem/128394449> Reviewed by Antti Koivisto. Let's not paint line ending ellipsis when painting is meant to include inline box (with layer) content only. * LayoutTests/fast/inline/multiple-ellispsis-rendering-when-inline-box-has-layer-expected.html: Added. * LayoutTests/fast/inline/multiple-ellispsis-rendering-when-inline-box-has-layer.html: Added. * Source/WebCore/layout/integration/inline/LayoutIntegrationInlineContentPainter.cpp: (WebCore::LayoutIntegration::InlineContentPainter::InlineContentPainter): (WebCore::LayoutIntegration::InlineContentPainter::paint): (WebCore::LayoutIntegration::LayerPaintScope::LayerPaintScope): (WebCore::LayoutIntegration::LayerPaintScope::includes): * Source/WebCore/layout/integration/inline/LayoutIntegrationInlineContentPainter.h: Canonical link: https://commits.webkit.org/279645@main
- Loading branch information
1 parent
c55e92e
commit 15bbd64
Showing
4 changed files
with
63 additions
and
19 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
LayoutTests/fast/inline/multiple-ellispsis-rendering-when-inline-box-has-layer-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,18 @@ | ||
<style> | ||
div { | ||
padding-top: 20px; | ||
font-family: Monospace; | ||
font-size: 20px; | ||
|
||
white-space: nowrap; | ||
width: 420px; | ||
height: 100px; | ||
overflow: hidden; | ||
text-overflow: ellipsis; | ||
} | ||
|
||
span { | ||
color: transparent; | ||
} | ||
</style> | ||
<div class="ellipsis"><span>PASS if there's only one ellipsis on this line</span></div> |
20 changes: 20 additions & 0 deletions
20
LayoutTests/fast/inline/multiple-ellispsis-rendering-when-inline-box-has-layer.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,20 @@ | ||
<style> | ||
.ellipsis { | ||
padding-top: 20px; | ||
font-family: Monospace; | ||
font-size: 20px; | ||
|
||
white-space: nowrap; | ||
width: 420px; | ||
height: 100px; | ||
overflow: hidden; | ||
text-overflow: ellipsis; | ||
} | ||
|
||
span { | ||
top: -5px; | ||
color: transparent; | ||
position: relative; | ||
} | ||
</style> | ||
<div class="ellipsis"><span>PASS if there's only one ellipsis on this line</span></div> |
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