Re: [CSS3-UI] text-overflow:ellipsis (freshly rewritten/expanded and incorporated into editor's draft)

On 02/16/2011 05:37 PM, Tantek Çelik wrote:
>
>> Consider for instance, the case of a multi lingual document, with several
>> truncated paragraphs with different scripts, and each script with its own
>> ellipsis.
>>
>> <style>p.truncated {text-overflow:attr(data-ellipsis)}</style>
>>
>> <p class="truncated" data-ellipsis="…">Text in latin script</p>
>> <p class="truncated" data-ellipsis="ฯ">Text in thai script</p>
>> <p class="truncated" data-ellipsis="ຯ">Text in laotian script</p>
>> <p class="truncated" data-ellipsis="⋯⋯">Text in chinese script</p>
>
> Note that this suggested syntax is an abuse of HTML5 data-*
> attributes, as those are supposed to be site/page specific and NOT
> used in any standards, formats etc.

Looks site-specific to me. The site-specific style sheet is taking
advantage of the site-specific data-ellipsis attribute by using
the standard 'text-overflow' property with the standard 'attr()'
function. How is this a problem?

~fantasai

Received on Thursday, 17 February 2011 18:49:59 UTC