Warnhinweis für fehlendes alt-Attribut
bearbeitet von
Servus!
Grad bei [Miriam Suzanne gesehen](https://front-end.social/@mia/109293960557756699):
Sollten wir das im Wiki auch machen?
~~~ CSS
img:not([alt]), .audio-player__canvas:not([title]), .video-player video:not([title]), .media-gallery__gifv video:not([title]) {
border: medium dashed red;
box-sizing: border-box;
}
.media-gallery__item-thumbnail:has(img:not([alt]))::after {
content: 'No image description';
background: maroon;
color: mistyrose;
display: inline-block;
padding: 0.1rem 0.4rem;
position: absolute;
inset-block-start: 0;
inset-inline-end: 0;
}
~~~
Herzliche Grüße
Matthias Scharwies
--
Eigentlich hatte ich heute [viel vor](https://wiki.selfhtml.org/wiki/Kategorie:ToDo) - jetzt habe ich morgen viel vor!