[wp-trac] [WordPress Trac] #31332: RTL CSS generation: Switch from CSSJanus to RTLCSS

WordPress Trac noreply at wordpress.org
Fri Feb 27 13:40:06 UTC 2015


#31332: RTL CSS generation: Switch from CSSJanus to RTLCSS
--------------------------------------------------+----------------------
 Reporter:  ocean90                               |       Owner:  ocean90
     Type:  defect (bug)                          |      Status:  closed
 Priority:  normal                                |   Milestone:  4.2
Component:  Build/Test Tools                      |     Version:
 Severity:  normal                                |  Resolution:  fixed
 Keywords:  has-patch dev-feedback needs-testing  |     Focuses:
--------------------------------------------------+----------------------
Changes (by ocean90):

 * owner:   => ocean90
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"31573"]:
 {{{
 #!CommitTicketReference repository="" revision="31573"
 RTL CSS generation: Switch from CSSJanus to RTLCSS.

 CSSJanus (introduced in [26107]), we had a great time with you, but sadly
 you don't like our fancy CSS.

 RTLCSS is a framework for converting CSS from LTR to RTL, same as
 CSSJanus, with support for more CSS properties like `transform`,
 `transition` or multiple box and text shadows.

 Changes:
 * devDependencies: Remove `grunt-cssjanus`, add `grunt-rtlcss`.
 * RTLCSS uses `/* rtl:ignore */` to ignore a rule, switch existing `/*
 @noflip */` to the new directive.
 * RTLCSS supports the `transform` property, means we can remove some
 ignore rules.
 * RTLCSS supports string maps for custom replace rules. This commit
 includes a rule `import-rtl-stylesheet` which replaces ".css" with
 "-rtl.css" in URLs.

 Notes for core development:
 * The file generation task is still `grunt rtl`.
 * If you have used `grunt cssjanus` before, use `grunt rtlcss` now.
 * Remember the new directive `/* rtl:ignore */`.

 fixes #31332.

 Build: https://build.trac.wordpress.org/changeset/31554
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/31332#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list