Re: A proposal to replace 'tab-size' with 'tabstop-widths'

On 12/21/2012 06:24 PM, Nick Gravgaard wrote:
> Hi all.
>
> I'm the inventor of elastic tabstops
> (http://nickgravgaard.com/elastictabstops/), and I was recently
> contacted by someone who was working on Ace (http://ace.ajax.org/),
> which seems to be the most widely used browser based text editor. There
> had been some demand for elastic tabstops and he was attempting to
> implement it. This led me to look into how elastic tabstops might be
> implemented in Ace. The first thing I came across was the 'tab-size'
> property and I quickly realised that it was not sufficient to support
> what was needed.
>
> I would like to suggest something which is more powerful than 'tab-size'
> (http://www.w3.org/TR/css3-text/#tab-size) but should be easily
> implementable and would work like ''tab-size' when given one value. I
> propose a new attribute called 'tabstop-widths' which takes a list of
> widths measured in em and/or px values.

I think this would be quite easy to spec as an extension to the
existing 'tab-size' property to have it accept multiple values,
rather than as a separate property.

The open question is whether anyone would want to implement that.

~fantasai

Received on Thursday, 3 January 2013 17:15:03 UTC