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

Fix order-first and order-last for Firefox #16266

Merged
merged 3 commits into from
Feb 5, 2025
Merged

Conversation

RobinMalfait
Copy link
Member

This PR fixes an issue where order-last doesn't work as expected in Firefox.

The implementation of order-last, looks like this:

.order-last {
  order: calc(infinity);
}

Which is valid CSS, and calc(infinity) is even valid in Firefox. You can use this in other properties such as border-radius:

.rounded-full {
  border-radius: calc(infinity * 1px);
}

While this works, in properties like order it just doesn't work.

Fixes: #16165

The `calc(infinity)` is supposed to work in Firefox, and it does in
places like `rounded-full` which generate:
```css
.rounded-full {
  border-radius: calc(infinity * 1px);
}
```

But in places for `order`, it doesn't complain and is valid, yet it just
doesn't work.
@RobinMalfait RobinMalfait requested a review from a team as a code owner February 5, 2025 09:38
@RobinMalfait RobinMalfait merged commit 82d486a into main Feb 5, 2025
5 checks passed
@RobinMalfait RobinMalfait deleted the fix/issue-16165 branch February 5, 2025 11:04
@thecrypticace
Copy link
Contributor

We should probably file a browser bug for this

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 this pull request may close these issues.

[v4] order-first/last not working in Firefox
3 participants