W3C home > Mailing lists > Public > www-style@w3.org > February 2011

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

From: fantasai <fantasai.lists@inkedblade.net>
Date: Thu, 17 Feb 2011 10:49:19 -0800
Message-ID: <4D5D6DAF.8070809@inkedblade.net>
To: Tantek Çelik <tantek@cs.stanford.edu>
CC: João Eiras <joao-c-eiras@telecom.pt>, "www-style@w3.org" <www-style@w3.org>
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?

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

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:07:56 UTC