W3C home > Mailing lists > Public > www-style@w3.org > December 2013

Re: [css-writing-modes]

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Mon, 2 Dec 2013 13:36:19 -0800
Message-ID: <CAAWBYDD9TgmfvxXA+XAXqMSo8gy_AHf3WOffi2wzPLYJzh4W4g@mail.gmail.com>
To: Shahar Or <mightyiampresence@gmail.com>
Cc: www-style list <www-style@w3.org>, Yaron Shahrabani <sh.yaron@gmail.com>
On Mon, Dec 2, 2013 at 9:56 AM, Shahar Or <mightyiampresence@gmail.com> wrote:
> First, the concept that any attribute that has horizontal
> directionality as a possible value (like `float: right;`) should have
> a possible value of something like `with` and `against`. Let me
> explain why with an example:

Yup, we've been intending to do this for a long time.  We already have
established direction-dependent names: "start" and "end".

> Let's say we have an element that in LTR should float right (like a
> photo in an article) and in RTL should float to the opposite
> direction, left.
> ```
> <div class="article" lang="en" dir="ltr">
>     <img alt="Article photo" src="photo.jpg" />
>     <p>Some english text.</p>
> </div>

In this case, you'd use "float:end;".

Received on Monday, 2 December 2013 21:37:06 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:17 UTC