node-cssjanus
node-cssjanus copied to clipboard
↔️ Convert CSS between left-to-right and right-to-left. Mirror of https://gerrit.wikimedia.org/g/mediawiki/libs/node-cssjanus/. Contribute via https://www.mediawiki.org/wiki/Developer_account.
When the word "right" or "left" is used as part of the name of a custom CSS property, the name is flipped by CSSJanus when the property is assigned, but...
CSSJanus only supports flipping one text-shadow or border-shadow, while the CSS syntax allows multiple. (Originally filed at https://phabricator.wikimedia.org/T62805) Input: ``` * { text-shadow: red 99px -1px 1px, blue 99px 2px...
Any URL that looks like a data URI should be skipped over. Otherwise image data will occasionally be corrupted, and in the case of the PHP port I've already seen...
Add support for changing to any direction/writing-mode. Two new optional arguments added, "sourceDir" and "targetDir", which function as the source and target directions, defaulting to "lr-tb" and "rl-tb", respectively. Additionally,...
Per [Krinkle's suggestion](https://github.com/cssjanus/cssjanus/pull/36#issuecomment-364786710) on splitting up the change for TTB support (#36) into smaller changes. Some refactoring, added support for `cursor: nesw-resize;` some support for `/* comments */` within CSS...
Hi all, I've been working on a tool to identify instances of events registered to the wrong object in uses of some JavaScript event-driven APIs, as part of a research...
For #20 I would like to have some test with only three values. Example: ``` [ "border-radius: 5px 9px 7px", "border-radius: 9px 5px 9px 7px" ], [ "border-radius: 5px 9px...
``` padding-left: calc( 1px +1em ); padding: 1px 2px 3px 4px; padding: 1px 2px 3px calc( 1px + 1em ); ``` ([test](https://cssjanus.github.io/#input/padding-left%3A%20calc(%201px%20%2B1em%20)%3B%0Apadding%3A%201px%202px%203px%204px%3B%0Apadding%3A%201px%202px%203px%20calc(%201px%20%2B%201em%20)%3B%0A)) The first two lines are flipped, the last...
Hi, First of all let me thank you for doing a great work. You project made implementing an RTL version of our project much easier. But I did encounter a...
Janus phase II – not just LTRTTB -> RTLTTB flipping, but also TTBLTR or TTBRTL.