Some styles missing in firefox

Some of my element's styles are not being applied in firefox, as you can see, the highlighted element has classes .primary and .button-like, I am applying a display: flex, seen in the highlighted line of the stylesheet but it does not show in the style inspector It works on other browsers pls help
No description
No description
8 Replies
Brandon
BrandonOP13mo ago
the site is res-pawn.com and its the blue "play puzzles" button if that helps OH NVM i found it its because firefox does not support :has()
MarkBoots
MarkBoots13mo ago
ah, yes. that's a really awfull concequence. it will break the whole selector. btw, my compliments on the overall look of the site
Brandon
BrandonOP13mo ago
thank you 😊 i spent too much time designing lol
MarkBoots
MarkBoots13mo ago
btw i little suggestion for on the cards container ("How it works") if you hover the container, but not the card, all are greyed out you could fix this by setting pointer-events: none on the container and pointer-events: all on the childs could also be done with the has selector, but we know its has not full support yet
Brandon
BrandonOP13mo ago
Thanks, nice trick. I actually did that using the has selector (as you mentioned) before, but moving the cursor across cards made them all flicker, and I didn't like it
MarkBoots
MarkBoots13mo ago
i get what you mean. but there is an option for that too. you could bridge the grid-gap by putting a pseudo element behind each card that is half the gap bigger at each side here an example with has and the pointer-events trick https://codepen.io/MarkBoots/pen/dyaZZBz
Brandon
BrandonOP13mo ago
what the... youre a css wizard I will do that thanks
MarkBoots
MarkBoots13mo ago
haha, no problem mate ✌️
Want results from more Discord servers?
Add your server