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

Can't use % for background-position arbitrary value #7997

Closed
dwkns opened this issue Mar 30, 2022 · 1 comment · Fixed by #8015
Closed

Can't use % for background-position arbitrary value #7997

dwkns opened this issue Mar 30, 2022 · 1 comment · Fixed by #8015
Assignees

Comments

@dwkns
Copy link

dwkns commented Mar 30, 2022

What version of Tailwind CSS are you using?

3.0.23

What build tool (or framework if it abstracts the build tool) are you using?

postcss-cli 9.1.0

What version of Node.js are you using?

v17.7.2

What browser are you using?

Safari

What operating system are you using?

macOS

Reproduction URL
https://play.tailwindcss.com/dBpXEnLlgb

Describe your issue
Percentages are not output when using bg-[ arbitrary values ]
bg-[top_right_75px] → works just fine
bg-[top_right_5rem] → works just fine
bg-[top_right_50%] → doesn't output the expected CSS

Describe the problem you're seeing, any important steps to reproduce and what behavior you expect instead.
https://play.tailwindcss.com/dBpXEnLlgb

Update:
bg-[top_right_calc(50%)] → works just fine!!!!

@dwkns dwkns changed the title Can't use % in for background-position arbitrary value Can't use % for background-position arbitrary value Mar 30, 2022
@RobinMalfait RobinMalfait self-assigned this Apr 1, 2022
@RobinMalfait
Copy link
Contributor

Hey! Thank you for your bug report!
Much appreciated! 🙏

This should be fixed by #8015, and will be available in the next release.

You can already try it by using the insiders build npm install tailwindcss@insiders or yarn add tailwindcss@insiders.

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