Firefox CSS Issue
See image 1 and 2. the button doesn't disappear after the card is flipped.
HTML
JS
CSS
These are the code for the button
10 Replies
Full code here :
https://github.com/r-ddle/r-ddle.netlify.app
GitHub
GitHub - r-ddle/r-ddle.netlify.app: A simple website made by a newb...
A simple website made by a newbie web dev. Contribute to r-ddle/r-ddle.netlify.app development by creating an account on GitHub.
backface-visibility: hidden
I am supposed to add this to the button right?
if yes then this is what happens
I'm stil confused tho.
Opera GX, Edge, Chrome and Brave all of those browsers don't have an issue except for firefox
are we supposed to write css differently for firefox?
Try adding prefixes, yeah Firefox and safari have some properties that aren’t supported. For example, if I use a
background-image: linear-gradient(to right in oklch, oklch(39%, 0.3, 360), oklch(44%, 0.28, 360))
it doesn’t work in Firefox ! No gradient, no background at all because I hadn’t added a fall back. However, taking off the “in oklch” allows it to work🤷🏻♀️
I’m not sure about backface-visibility but it seems like it should be supported. Try prefixing it also
backface-visibility: hidden;
-moz-backface-visibility:hidden;
-webkit-backface-visibility: hidden;
It really didn't do anything, I checked browser stats and firefox is not that popular
not feeling like learning firefox rules just to fix a card 🥹
well thanks anyways
Firefox is one of the three major browsers, if you don’t want to learn how to work with it , you could try running your style sheet through a prefixer to get all the prefixes you need
Are you learning web dev to find a job? Writing compatible code is a must
it's also not that much of a hassle