Re: [css4-ui]/[css4-selectors] Pseudo-class for selecting broken images & other external resources

On 12/28/11 6:25 PM, Lea Verou wrote:
> On 29/12/11 01:12, Boris Zbarsky wrote:
>> On 12/28/11 5:57 PM, Lea Verou wrote:
>>> Ideally, with separate pseudoclasses for HTTP errors and
>>> broken data.
>>
>> I don't think that's necessarily terribly realistic. The two can't be
>> told apart reliably, for one thing: lots of servers return random HTML
>> with a 200 response on HTTP errors.
> That's a server misconfiguration so not the spec's problem. IMHO.

The point is that the layout engine may not have information on what 
exactly caused image data to not be there.  All it knows is that the 
image is not a valid image for some reason; the HTTP and image decoding 
is handled by some lower-level libraries.

-Boris

Received on Wednesday, 28 December 2011 23:27:07 UTC