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
[IFC]
text-overflow: ellipsis
doesn't work with overflow: clip
https://bugs.webkit.org/show_bug.cgi?id=258265 <rdar://problem/111182654> Reviewed by Simon Fraser. https://drafts.csswg.org/css-overflow/#text-overflow " This property specifies rendering when inline content overflows its end line box edge in the inline progression direction of its block container element ("the block") that has overflow other than visible. " * LayoutTests/fast/css/empty-pseudo-class.html: * LayoutTests/fast/inline/overflow-with-text-ellipsis-expected.html: Added. * LayoutTests/fast/inline/overflow-with-text-ellipsis.html: Added. * Source/WebCore/layout/formattingContexts/inline/InlineFormattingContext.cpp: (WebCore::Layout::lineEndingEllipsisPolicy): imported/w3c/web-platform-tests/css/css-ui/text-overflow-021.html: this never worked (revealing content as being scrolled in). Canonical link: https://commits.webkit.org/265445@main
- Loading branch information
1 parent
bb99bf0
commit ca99365
Showing
4 changed files
with
40 additions
and
1 deletion.
There are no files selected for viewing
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
19 changes: 19 additions & 0 deletions
19
LayoutTests/fast/inline/overflow-with-text-ellipsis-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,19 @@ | ||
<style> | ||
div { | ||
width: 30px; | ||
text-overflow: ellipsis; | ||
white-space: nowrap; | ||
font-family: Monospace; | ||
font-size: 20px; | ||
} | ||
|
||
div::-webkit-scrollbar { | ||
width: 0px; | ||
height: 0px; | ||
} | ||
</style> | ||
PASS if ellipsis show | ||
<div style="overflow: hidden">X…</div> | ||
<div style="overflow: clip">X…</div> | ||
<div style="overflow-x: scroll">X…</div> | ||
<div style="overflow: scroll">X…</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<style> | ||
div { | ||
width: 30px; | ||
text-overflow: ellipsis; | ||
white-space: nowrap; | ||
font-family: Monospace; | ||
font-size: 20px; | ||
} | ||
div::-webkit-scrollbar { | ||
width: 0px; | ||
height: 0px; | ||
} | ||
|
||
</style> | ||
PASS if ellipsis show | ||
<div style="overflow: hidden">XXXX</div> | ||
<div style="overflow: clip">XXXX</div> | ||
<div style="overflow: auto">XXXX</div> | ||
<div style="overflow: scroll">XXXX</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