W3C home > Mailing lists > Public > public-css-archive@w3.org > June 2016

[csswg-drafts] [css-content] Clarify how 'content' alt should work if images fail to load or are disabled

From: Simon Pieters via GitHub <sysbot+gh@w3.org>
Date: Wed, 22 Jun 2016 12:20:27 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-161667122-1466598027-sysbot+gh@w3.org>
zcorpan has just created a new issue for 
https://github.com/w3c/csswg-drafts:

== [css-content] Clarify how 'content' alt should work if images fail 
to load or are disabled ==
https://drafts.csswg.org/css-content/#alt

It says this string is only for AT.

In the example:

```
.new::before {
  content: url(./img/star.png) / "New!";
    /* or a localized attribute from the DOM: attr("data-alt") */
}
```

if the image fails to load or the UA has images disabled, what should 
be rendered visually? Nothing? A broken image icon? The alt string?

cc @fantasai 

Please view or discuss this issue at 
https://github.com/w3c/csswg-drafts/issues/218 using your GitHub 
account
Received on Wednesday, 22 June 2016 12:20:29 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:40:59 UTC