haikuwebkit/LayoutTests/svg/text/text-overflow-ellipsis-svgf...

41 lines
916 B
HTML
Raw Permalink Normal View History

<!DOCTYPE html>
<html>
<head>
<title>Test for text-overflow: ellipsis using SVG font with kerning and ligatures on</title>
<style>
@font-face {
font-family: 'ABCFont';
src: local('☺'), url('../../svg/custom/resources/ABCFont.svg#ABCFont') format('svg');
font-weight: normal;
font-style: normal;
}
.ellipsis {
width: 180px;
margin: 0 0 20px 0;
border: 1px solid black;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
}
.svgfont {
font-family: 'ABCFont';
-webkit-font-kerning: normal;
}
</style>
</head>
<body>
This test checks that the text-overflow: ellipsis property is handled correctly when using an SVG font and having kerning and ligatures on.<br><br>
Remove unneeded whitespace between content and <br> https://bugs.webkit.org/show_bug.cgi?id=218151 <rdar://problem/70662471> Reviewed by Antti Koivisto. Missed these files in r268958. * fast/css/text-overflow-ellipsis-bidi.html: * fast/css/text-overflow-ellipsis-strict.html: * fast/forms/basic-buttons.html: * fast/repaint/add-table-overpaint-expected.txt: * fast/repaint/hidpi-wrong-repaint-rect-when-parent-has-noncompositing-transform-expected.txt: * fast/repaint/obscured-background-no-repaint-expected.txt: * fast/repaint/resources/line-flow-with-floats.html: * platform/mac/fast/css/text-overflow-ellipsis-bidi-expected.txt: * platform/mac/fast/css/text-overflow-ellipsis-strict-expected.txt: * platform/mac/fast/forms/basic-buttons-expected.txt: * platform/mac/fast/repaint/japanese-rl-selection-clear-expected.txt: * platform/mac/fast/repaint/line-flow-with-floats-1-expected.txt: * platform/mac/fast/repaint/line-flow-with-floats-10-expected.txt: * platform/mac/fast/repaint/line-flow-with-floats-2-expected.txt: * platform/mac/fast/repaint/line-flow-with-floats-3-expected.txt: * platform/mac/fast/repaint/line-flow-with-floats-4-expected.txt: * platform/mac/fast/repaint/line-flow-with-floats-5-expected.txt: * platform/mac/fast/repaint/line-flow-with-floats-6-expected.txt: * platform/mac/fast/repaint/line-flow-with-floats-7-expected.txt: * platform/mac/fast/repaint/line-flow-with-floats-8-expected.txt: * platform/mac/fast/repaint/line-flow-with-floats-9-expected.txt: * platform/mac/svg/text/text-overflow-ellipsis-svgfont-expected.txt: * platform/mac/svg/text/text-overflow-ellipsis-svgfont-kerning-ligatures-expected.txt: * svg/text/text-overflow-ellipsis-svgfont-kerning-ligatures.html: * svg/text/text-overflow-ellipsis-svgfont.html: Canonical link: https://commits.webkit.org/230877@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@268973 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2020-10-26 13:28:38 +00:00
Pass if some text is shown followed by an ellipsis (NOT just the ellipsis by itself).<br><br>
<div class="ellipsis svgfont">
abc abc abc abc abc abc abc abc abc abc
</div>
</body>
</html>