Logo

dev-resources.site

for different kinds of informations.

How to make CSS :has() pseudo-class work on Firefox

Published at
1/1/2024
Categories
css
firefox
Author
yuridevat
Categories
2 categories in total
css
open
firefox
open
Author
9 person written this
yuridevat
open
How to make CSS :has() pseudo-class work on Firefox

Finally, the long-awaited :has() pseudo-class has been added to Firefox. Yeah!

Handdrawn cute girl and mouse saying yeah!

I immediately started implementing it and writing a new blog post about it, but hey, wait, why isn't my styling showing up in the browser?

Handdrawn girl and mouse sitting in the cinema, eating popcorn and looking serious.

Turns out I needed a hard refresh for the pseudo-class to work properly on my MacBook. In case you are facing the same problem, I show you how I made it work.

Here is how to do so

  • Open on the Firefox menu by clicking the burger menu

Firefox menu bar showing burger menu on the right side.

  • Select Help from the list

The wanted help item is shown as the last element in the list.

  • Select the More Troubleshooting Information from the list

The More Troubleshooting information element is shown as 4th element in the list.

  • Click Refresh Firefox

Refresh Firefox button is the first button in the list.

  • Confirm the refresh by clicking the Refresh Firefox button

Refresh Firefox button is the button on the right, the second element to choose from.

  • Firefox will close, refresh and open again, with all you windows and tabs restored

That's it. After that, the CSS :has() pseudo-class worked perfectly on my machine.


Stay tuned for my upcoming article about the CSS :has() pseudo-class on Thursday.

For other ways to make the selector work in Firefox, check out the official troubleshooting suggestions.
https://support.mozilla.org/en-US/kb/troubleshoot-and-diagnose-firefox-problems

firefox Article's
30 articles in total
Favicon
Meet Tab-R: My New Browser Extension
Favicon
Request Aborted (NS_BINDING_ABORT) In Firefox but working in remaining browsers
Favicon
5 effektive Methoden, um Bilder aus Webseiten zu extrahieren
Favicon
How to Perform Firefox Mobile Testing? (Step-by-Step Guide)
Favicon
Wormhole Proxy (Firefox Add-on) - single-list proxy manager
Favicon
RemoveCookieWall, una extension de Firefox
Favicon
Deploy firefox as container
Favicon
hello, maybe i am back for a while
Favicon
[firefox] show tabs in full-screen mode
Favicon
Firefox "about:config" Flags That I Like ๐Ÿ”ฅ๐ŸฆŠ
Favicon
How To Speed Up Selenium Test Cases?
Favicon
GitHub Sponsors: Oliver Blanthorn main developer of Tridactyl
Favicon
Browser Extensions for 2024
Favicon
Remote debugging using Firefox on Android devices with Windows
Favicon
Firefox css: restyle the active tab handle
Favicon
Captcha Solving Extension For Chrome, Mozilla Firefox
Favicon
Discord in Firefox, with themes, plugins and RPC for free
Favicon
6 Best Firefox Alternatives 2024
Favicon
Firefox Shortcuts: Enhance Your Browsing Experience
Favicon
I'm not guilty it's firefox!
Favicon
How to make CSS :has() pseudo-class work on Firefox
Favicon
RES-like script that allows you to navigate Lemmy with your keyboard
Favicon
Firefox: Windows and Tabs
Favicon
Firefox DE...we're back together!...for a weird reason
Favicon
Firefox form auto-fill
Favicon
Dear Mozilla, we have to talkโ€ฆ
Favicon
ๅฆ‚ไฝ•ๅœจ elementary OS ๅฎ‰่ฃ Firefox Beta
Favicon
Fix 403 Forbidden error on Mozilla in Minutes
Favicon
Unlock the Sidebar Width in Firefox
Favicon
How to Fix โ€œSecure Connection Failedโ€ Error in Firefox

Featured ones: