[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

CSS and bidi support (was: Re: A problem with the hebrew about.wml page)



Tommi Vainikainen <thv+debian@iki.fi> writes:
> And more important, removing 'text-align: left' from html and body tags in
> main debian.css (this affects all languages!)
>
> Index: debian.css
> ===================================================================
> RCS file: /cvs/webwml/webwml/english/debian.css,v
> retrieving revision 1.68
> diff -u -r1.68 debian.css
> --- debian.css	15 Jul 2007 22:39:09 -0000	1.68
> +++ debian.css	16 Aug 2008 11:17:19 -0000
> @@ -6,7 +6,6 @@
>  	background-color: #FFFFFF;
>  	margin: 0 4px 0 4px;
>  	padding: 0;
> -	text-align: left;
>  }
>
>  img { border: 0; }
>
> So I don't really understand this later change, but it changes text
> rendering from like this:
>
> first bullet in hebrew *
> second bullet in hebrew *
> last bullet in hebrew *
>
> to what you would expect from right to left languages like this:
>
>                                                      first bullet in hebrew *
>                                                     second bullet in hebrew *
>                                                       last bullet in hebrew *
>
> So what will actually happen if such change is applied to main
> debian.css?
>
> According to CSS 2.1 standard, default value for this text-align is "a
> nameless value that acts as 'left' if 'direction' is 'ltr', 'right' if
> 'direction' is 'rtl'". So if I understand correctly, that should be
> unnecessary to have this text-align setting in debian.css if we assume
> CSS compatibility in this respect. So is there a problem with some
> browsers, or does anyone remember any background for this?

I think nobody has commented this issue with current CSS rules. So
should I assume that there is no problems with this change, and apply it?

-- 
Tommi Vainikainen


Reply to: