Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 

[] lets you use logical, rather than physical, direction and dimension mappings in CSS, following the [CSS Logical Properties and Values] specification.

<example.css>

/* becomes */

<example.expect.css>

Options

inlineDirection

The inlineDirection option allows you to specify the direction of the inline axe. The default value is left-to-right, which would match any latin language.

You should tweak this value so that it is specific to your language and writing mode.

<exportName>({
	inlineDirection: 'right-to-left'
})
<example.css>

/* becomes */

<example.hebrew.expect.css>

Each direction must be one of the following:

  • top-to-bottom
  • bottom-to-top
  • left-to-right
  • right-to-left

Please do note that transformations won't run if inlineDirection becomes vertical.

[CSS Logical Properties and Values]: