- From: Amelia Bellamy-Royds <amelia.bellamy.royds@gmail.com>
- Date: Thu, 21 Apr 2016 07:31:35 +0100
- To: Florian Rivoal <florian@rivoal.net>
- Cc: "www-style@w3.org list" <www-style@w3.org>
Received on Thursday, 21 April 2016 06:32:10 UTC
> > For this kind of use cases, especially the first one, I think a pseudo > class that matches on images that fail to load would be easier to use than > a media query. > An element pseudoclass does have the benefit of applying to broken links as well as no-image settings. Mozilla already has a prefixed pseudoclass for this case. However, it puts constraints on which *other* elements you can effect with the selector (needs to be a direct sibling after the missing image in the DOM tree). This limits the use for doing things like un-hiding text labels and captions. Still better than nothing, of course.
Received on Thursday, 21 April 2016 06:32:10 UTC