img:not([alt]) {
visibility: hidden;
}
7 replies
@zachleat If only we could have `:after` elements on <img> elements and we could `content: ' 💩 ';` them for full effect!
@westbrook @zachleat :has(img:not([alt]))::after {
content: "💩";
}@yatil @westbrook it’s turtle poop all the way down!!
Does that missing alt need alternative text 😉, e.g.
:has(img:not([alt]))::after {
content: "💩" / "A neat pile of soft brown feces with a smiling face (eyes contact)";
}
@zachleat this is part of my imaginary "no chill"/pedantic/"zero tolerance" browser rendering mode.
@Kilian XHTML when??
*runs away*