Skip to content

dxpsoft/feature-queries-manager

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@ sign

Feature Queries Manager

Manage and toggle CSS on a page behind a @supports Feature Query

How does it work?

It works by negating the feature query condition to give you the opposite result. For example, it will turn the following feature query condition...

@supports (display: flex) { /* styles here */ }

... Into the following...

@supports not((display: flex)) { /* styles here */ }

How to use

1. Install the Feature Queries Manager

(Other browsers TBA)

2. Open DevTools and see a new panel labelled "FQM"

Screenshot of FQM

This page will display all the feature queries on the page (on the left) and any styles within those Feature Queries (on the right).

3. Toggle Feature Queries

On the left panel, you will see the list of feature query conditions on the page, and a checkbox beside each condition.

  • Uncheck the checkbox to negate the feature query condition
  • Check the checkbox to re-instate the original feature query condition

Example of FQM toggle on and off

Packages

No packages published

Languages

  • JavaScript 61.7%
  • CSS 32.1%
  • HTML 6.2%