- From: Dave Cramer <dauwhe@gmail.com>
- Date: Wed, 11 May 2016 09:50:57 -0700
- To: James Craig <jcraig@apple.com>
- Cc: www-style list <www-style@w3.org>
On Wed, May 11, 2016 at 9:39 AM, James Craig <jcraig@apple.com> wrote: > Example 21 and 22 in the "Automatic Counters and numbering section" > > https://drafts.csswg.org/css-content-3/#counters > > ...reference the "alt" property that was previously defined in this spec. > > Will someone point me to the new location of that property definition? > > I could not find it in Pseudos either. > https://drafts.csswg.org/css-pseudo-4/ > It's an editing error—I'll fix the examples. Fantasai pointed out that having a separate alt property was a problem, as it would not cascade with the content property itself. So we're proposing to have alternative text as part of the syntax of the content property itself, by allowing a slash at the end of the property followed by an alt text string. Here's an example: hr::before { content: "* * *" / "" } In this case, using the empty alt string to indicate that the string inserted via the content property is purely decorative. If an image is inserted via content property, one could express proper alt text as well foo::before { content: url('bar.jpg') / "alt text for bar.jpg image" } Thanks, Dave
Received on Wednesday, 11 May 2016 16:51:29 UTC