Re: 'float: before' and 'float: after' for easier styling of RTL languages

On Mon, Nov 23, 2015 at 4:21 PM, Mats Blakstad <mats.gbproject@gmail.com> wrote:
> Is it possible to simplify floating of RTL languages?
>
> RTL languages changes the meaning of "left" and "right". Extra stylesheets
> are needed for RTL languages to make floating correct, it takes time to sit
> and revert all floating.
>
> It would be easier if we could make elements float "before" or "after", and
> then make it always float in correct directions depending on the dir
> attribute (dir="rtl" or dir="ltr").

This is already covered by the Logical Properties draft:
<https://drafts.csswg.org/css-logical-props/#float-clear>

(This spec is still in the experimental stage, but this is the plan of
record currently.)

~TJ

Received on Wednesday, 9 December 2015 19:24:23 UTC