I have the following list (example):
<ol>
<li>Item</li>
<li>Item</li>
<li>
<span class="parent">
<span class="child">Nested span with overflow: hidden</span>
</span>
</li>
<li>Item</li>
<li>Item</li>
</ol>
Both .parent
and .child
have display: block
, only the .child
has overflow: hidden
applied on it.
For some reason it still causes the list item's bullet to disappear, it reappears when I remove the overflow: hidden
. I must add it to the child to apply text-overflow
on it.
Any tips, tricks or a bit of info would be appreciated, note that positioning the bullets inside the list items won't help in my specific case and I'm trying not to add unnecessary markup in order to keep my code semantic.