I was wondering if it is possible to position the div text exactly at the end of the CSS shape within the same div without requiring any additional html elements? Currently, they are overlapping.
div {
width: 10px;
height: 10px;
background: var(--color);
}
<div style="--color:red">AB</div>
<div style="--color:green">CD</div>
<div style="--color:blue">EF</div>