CSSJanus
Convert CSS stylesheets between left-to-right and right-to-left.
|
Convert CSS stylesheets between left-to-right and right-to-left.
Parameters;
$css
(string) Stylesheet to transform.$swapLtrInURL
(boolean) Swap ltr
to rtl
direction in URLs.$swapLeftInURL
(boolean) Swap left
and right
edges in URLs.Example:
If a rule is not meant to be flipped by CSSJanus, use a /* @noflip */
comment to protect the rule.
This is a PHP port of the Node.js implementation of CSSJanus. Feature requests and bugs related to the actual CSS transformation logic or test cases of it, should be submitted upstream at https://github.com/cssjanus/cssjanus.
CSSJanus was originally a Google project.