[[!comment format=mdwn
 username="smcv"
 ip="81.100.115.242"
 subject="comment 9"
 date="2014-09-21T12:41:56Z"
 content="""
[Authoring HTML: Handling Right-to-left Scripts](http://www.w3.org/TR/i18n-html-tech-bidi/)
might be useful reading.

In [modern browsers](http://caniuse.com/css-sel2) (i.e. not IE6) it
should be possible to make CSS conditional on any attribute, not
just class, so you could maybe do something like this:

    /* ikiwiki's existing CSS */
    .sidebar {
        float: right;
        margin-left: 4px;
    }

    /* new */
    html[dir=\"rtl\"] .sidebar {
        float: left;
        margin-left: 0px;
        margin-right: 4px;
    }

If you contributed a patch for `style.css` to make markup like this
\"just work\", I'd be happy to review it. (`notebox` could use the
same technique).
"""]]
