Specification test cases
The test cases below are imported from the Turbo CSS specification.
They have been executed upon loading this page.
Show an ellipsis where overflowing content is cropped.
t1 text-overflow-ellipsis
.t1.text-overflow-ellipsis {
text-overflow: ellipsis;
}
Just crop overflowing content, do not provide any hint.
t1 text-overflow-clip
.t1.text-overflow-clip {
text-overflow: clip;
}
Shorthand utility to force text on a single line and show an ellipsis when the text is overflowing.
t1 text-truncate
.t1.text-truncate {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}