https://bugzilla.wikimedia.org/show_bug.cgi?id=28693

Krinkle <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Implement context sensitive |Implement command for
                   |rtl command for resource    |double directionality in
                   |loader                      |CSSJanus.php

--- Comment #9 from Krinkle <[email protected]> 2011-08-08 07:33:17 UTC ---
I agree it should be in the HTML, in the (semantic) attribute for "dir".

So there'd be <foo class="bar" dir="ltr"> and/or <foo class="bar" dir="rtl"> on
a page.

Styling could be done now as:

.bar { font-size: 85%; background: #f2f2f2; }

/* @noflip */ .bar[dir=rtl] { margin-right: 1em; }
/* @noflip */ .bar[dir=ltr] { margin-left: 1em; }

One extra gain is that later overrides will always work in LTR and in RTL.
For example, if someone wants to change some of these stylings, ".bar {
margin-left: 2em; }" will not work (even if it's after the above), because
".bar[dir=...]" is more specific and thus still overrides that later rules. 
The override would have to include the "dir" parts.

This could be automated with:

/* @addflipped */ .bar[dir=ltr] { margin-left: 1em; }

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to