W3C home > Mailing lists > Public > www-style@w3.org > January 2012

Re: [css4-ui] Proposal for new property for text overflow on single-line text inputs

From: fantasai <fantasai.lists@inkedblade.net>
Date: Mon, 23 Jan 2012 18:05:05 -0800
Message-ID: <4F1E11D1.4090604@inkedblade.net>
To: www-style@w3.org
On 01/16/2012 11:46 AM, Jon Lee wrote:
> We believe the unique behavior of showing and hiding the ellipsis based on focus warrants a new property.
> text-overflow has thus far acted as a "static" property, in that web authors would expect that anything styled with it should remain as such, even in the focus case. As an author, I would find it strange that upon focus of a text input the ellipsis would just disappear. I would think that I should instead include the style
> input:focus { text-overflow: clip; }
> or something of that nature. The unfortunate consequence is that it also implies that I could state
> input:focus { text-overflow: ellipsis; }
> which, as you mentioned, would interfere with the user's ability to edit the text. Encapsulating this whole behavior with a property mitigates both issues.

If you put

input:focus { text-overflow: clip !important; }

in your UA stylesheet and place UA !important at the highest level
of the cascade (which is what Gecko does), then this problem is also

Received on Tuesday, 24 January 2012 02:06:56 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 11 February 2015 12:35:02 UTC