Skip to content

postcss-logical-float-and-clear not including [dir="rtl"] version of ruleset #958

@mherchel

Description

@mherchel

Bug description

I'm not sure if this is a bug or a feature (because the documentation doesn't say that this should be compiled this way)

The issue is that PostCSS Logical will used to compile CSS and include RTL versions (assuming default is LTR).

Example source:

.test { padding-inline-start: 10px; }

Example output:

.test { padding-left: 10px; }
[dir="rtl"] .test { padding-right: 10px; }

However, I can't see any option within PostCSS Logical Float And Clear to do the same.

Source CSS

.test { float: inline-start; }

Expected CSS

.test { float: left; }
[dir="rtl"] .test { float: right; }

Actual CSS

.test { float: left; }

Does it happen with npx @csstools/csstools-cli <plugin-name> minimal-example.css?

N/A

Debug output

No response

Extra config

No response

What plugin are you experiencing this issue on?

PostCSS Preset Env, PostCSS Logical Float and Clear

Plugin version

1.0.1

What OS are you experiencing this on?

macOS

Node Version

16.13.1

Validations

  • Follow our Code of Conduct
  • Check that there isn't already an issue that request the same feature to avoid creating a duplicate.

Would you like to open a PR for this bug?

  • I'm willing to open a PR

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions