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

Re: background-position and bidi in CSS 2.1

From: Simetrical <simetrical@gmail.com>
Date: Sun, 14 Dec 2008 15:34:43 -0500
Message-ID: <7c2a12e20812141234k10c5dbb3g3c2768c42109aab@mail.gmail.com>
To: "Andrew Fedoniouk" <news@terrainformatica.com>
Cc: "L. David Baron" <dbaron@dbaron.org>, www-style@w3.org

On Sun, Dec 14, 2008 at 3:15 PM, Andrew Fedoniouk
<news@terrainformatica.com> wrote:
> Sorry but there is *absolutely* no way in CSS2.1/3 to say
> something like this now:
> ul:ltr { padding-left:2em; }
> ul:rtl { padding-right:2em; }

MediaWiki "solves" this by just tacking a class "rtl" or "ltr" on to
the body, depending on direction.  This wouldn't work so easily for
sites that need to intermix directionalities on one page to arbitrary
nesting levels, of course, but I'd imagine those are less common.  (It
also conditionally includes an extra stylesheet for RTL, but that's
not actually necessary.)

Not that I'm against the feature, but it can be done in practice right
now by chucking in extra classes at the application/author level.  As
with most selector-related things.  :)
Received on Sunday, 14 December 2008 20:35:18 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:42 UTC