Skip to content

PostCSS Logical not transpiling flow relative properties (e.g. float: inline-start) even if browserlist says no support #632

Closed
@mherchel

Description

@mherchel

Bug description

Chrome and Safari do not yet support flow relative properties (e.g. float: inline-start). You can see the data on CanIUse at https://caniuse.com/mdn-css_properties_clear_flow_relative_values

However, if you tell browerlist to support Chrome, these properties are not transpiled by PostCSS Logical

This is an upstream bug report of Drupal core issue 3313146

"browserslist": [
    "last 2 Chrome major versions"
  ],

Source CSS

.selector {
  float: inline-end;
}

Expected CSS

[dir="ltr"] .selector {
  float: right;
}

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

Actual CSS

.selector {
  float: inline-end;
}

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 Logical

Plugin version

5.0.4

What OS are you experiencing this on?

Linux

Node Version

16.14.0

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

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions