Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
<style>
#a {
display: -webkit-inline-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 1;
width: 0;
}
span {
display: inline-block;
width: 10px;
height: 10px;
}
</style>
<body onload="b.remove()">
<div id="a"><span id="b"></span>x</div>