Re: [css-writing-modes]

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;".

~TJ

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