span {
line-height: 20px;
background-color: yellowgreen;
&:empty {
display: inline-block;
width: 1px;
height: 20px;
}
}
<span contenteditable></span>
span {
line-height: 20px;
background-color: yellowgreen;
&:empty {
display: inline-block;
width: 1px;
height: 20px;
}
}
<span contenteditable></span>