Re: New values for Float property

Salar wrote:
> Hi,
> 
> I would like to suggest new values for "float" style.
> 
> 
> Here are two new values:
> far: behaves like "right" when direction of element is "ltr", and behaves
> like "left" when direction of element is "rtl".
> near: behaves like "left" when direction of element is "ltr", and behaves
> like "right" when direction of element is "rtl".
> Note: "far" and "near" are just suggested names and can be different.
> 
> Why these are important? Because currently in RTL languages to develop a
> multilingual website, changing elements position requires another stylesheet
> file (e.g. rtl.css) to implement right-to-left layout. The reason is because
> of float attribute which acts same in rtl and ltr directions.


This is not entirely correct. right-to-left layout with floats is 
currently implemented correctly in the latest versions of Firefox and 
IE8 with rtl bidirection (dir="rtl"). Fails in both Safari and Opera.

<http://css-class.com/test/css/bidi/float-left-right-edge-rtl.htm>

<http://css-class.com/test/css/bidi/float-right-left-edge-rtl.htm>


> So adding these two values to float property will help developers a lot.
> 
> If we continue this concept, such values or properties can be applied for
> these styles too:
> padding-left
> padding-right
> border-left
> border-right
> outline-left
> outline-right
> margin-left
> margin-right
> background-position
> and more if there is any...


Wouldn't an author using rtl text be use to coding these properties 
differently?


> I hope, my suggestion was clear to understand.
> Thanks.
> Salar
> 


-- 
Alan http://css-class.com/

Armies Cannot Stop An Idea Whose Time Has Come. - Victor Hugo

Received on Monday, 30 November 2009 17:36:45 UTC