W3C home > Mailing lists > Public > www-style@w3.org > March 2012

Re: [css3-images] rtl/ltr annotation

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Sat, 10 Mar 2012 12:16:53 -0800
Message-ID: <CAAWBYDA5=idqOh+surQTr2-HkyBWdv1ghTy+OZnjJzo=WoTpFA@mail.gmail.com>
To: Andrew Fedoniouk <news@terrainformatica.com>
Cc: www-style@w3.org
On Sat, Mar 10, 2012 at 11:57 AM, Andrew Fedoniouk
<news@terrainformatica.com> wrote:
> Reference: http://dev.w3.org/csswg/css3-images/#image-notation
> Am I correct in my assumptions that two cases below are functional equivalents?
> 1.  el { background: image(a.png ltr, b.png rtl); }
> 2.  el:dir(ltr) { background: url(a.png); }
>     el:dir(rtl) { background: url(b.png); }
> In other words, these ltr/rtl annotators are sensors of what actually?

They aren't sensors at all.  They *declare* the image to be ltr or
rtl.  Then, if it finds itself in an element with opposite
directionality, it's flipped in the inline direction.  So no, your two
cases are definitely not equivalent.

All of this is described pretty clearly in the spec.  The entire
description is a single short paragraph.

Received on Saturday, 10 March 2012 20:17:42 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 22 May 2012 03:48:51 GMT