Your guide on how to use and make the most out of RTLCSS
The metadata object provides access to directive related information.
Property | Type | Description |
---|---|---|
source | node | PostCSS comment node that triggered the directive. |
name | string | The directive name, e.g. ignore in /*rtl:ignore*/ . |
param | string | The directive paramter, e.g. {"clean":false} in /*rtl:options:{"clean":false}*/ . |
begin | boolean | Indicates the start of the directive scope*1. |
end | boolean | Indicates the end of the directive scope*1. |
*1 Self-closing control directives will have both begin
and end
set to true
.