Re: [css-content][css-pseudo] alt missing from generated content module? moved?

On 05/11/2016 09:50 AM, Dave Cramer wrote:
> 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.

See https://lists.w3.org/Archives/Public/www-style/2014Nov/0046.html

> 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 17:41:18 UTC