RE: [css3-text] proposed value for text-align: no-justify

Tab Atkins Jr. [mailto:jackalmage@gmail.com] wrote at Thursday, October 14, 2010 4:08 PM
> On Thu, Oct 14, 2010 at 3:10 PM, Belov, Charles 
> <Charles.Belov@sfmta.com> wrote:
> > Tab Atkins Jr. [mailto:jackalmage@gmail.com] wrote on 
> October 14, 2010
> > 2:06 PM:
> > This is an attempt to allow the user style sheet to override all 
> > website uses of 'text-align: justify' with 'text-align: start', 
> > without having to do this on a case-by-case basis, and 
> without overriding 'text-align:
> > center'.
> >
> > The use case is for an end-user who has trouble reading 
> text which is 
> > justified.
> >
> > The goal would be to be able to code in a user style sheet:
> >
> > * {
> >        text-align: no-justify ! important; }
> >
> > So that all justified text would become left-justified for 
> LTR text or 
> > right-justified for RTL text.
> >
> > However, centered text would remain centered.
> 
> The only way to do this in CSS would be to have some 
> additional property which switches the behavior of 
> "text-align-justify".
> Luckily, this already exists!
> http://dev.w3.org/csswg/css3-text/#text-justify
> 
> I guess, then, you'd like that property to have a "none" value?

That does seem like the simplest solution.  Yes, thanks.  So the user style sheet could contain:

* {
	text-justify: none ! important;
}

which would disable text justification without affecting anything else.


Hope this helps,
Charles Belov
SFMTA Webmaster
 

Received on Thursday, 14 October 2010 23:37:01 UTC