3 ms·
Ah, got you. What would be a suitable fix for this? wrapping the text in an element styled with black text and background then perhaps when you focus on the bla
by DigitalSea 14y ago
Ah, got you. What would be a suitable fix for this? wrapping the text in an element styled with black text and background then perhaps when you focus on the blacked out text it shows it and when you blur it hides it again?
Proof of concept:
<span class="teasertext" tabindex="0">this is teaser text</span>
.teasertext {
background: #000;
color: #000;
}
.teasertext:focus {
background: inherit;
color: inherit;
outline: none;
}