Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logical border width properties don't retain override order #262

Closed
AndrewLeedham opened this issue Aug 31, 2022 · 1 comment · Fixed by #263
Closed

Logical border width properties don't retain override order #262

AndrewLeedham opened this issue Aug 31, 2022 · 1 comment · Fixed by #263

Comments

@AndrewLeedham
Copy link
Contributor

AndrewLeedham commented Aug 31, 2022

I seem to have run in to a bug via cssnano, which I have traced back to here. I have logical border width properties overriding a reset of the border width, but the order of the override is not being retained. So given:

div {
    background: grey;
    border-width: 0;
    border-top-width: 1px;
    border-inline-start-width: 1px;
 }

I am getting:

div {
    background: grey;
    border-inline-start-width: 1px;
    border-width: 0;
    border-top-width: 1px;
}

This means the border-inline-start-width is ignored because the border-width overrides it.

I created a minimal repro with the above code to demonstrate the issue: https://runkit.com/embed/zdr51an9amcj.

@Siilwyn
Copy link
Owner

Siilwyn commented Sep 2, 2022

Great find!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants