// ALL PROPERTY IS GREAT FOR REMOVING INHERITANCE WHEN REFACTOR LEGACY CSS
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for
//all: inherit;
// .rf- IS A REFACTORED PREFIX WERE ADDING TO OUR CODE BASE THIS SIGNALS WORK COMPLETION
// FIND ANY ELEMENTS THAT HAVENT BEEN REFACTORED
/*
[class]:not([class*=".rf-"]) {
outline: 5px solid red;
}
*/
// FIND ANY ELEMENTS THAT HAVE BEEN REFACTORED
/*
[class*=".rf-"] {
outline: 5px solid red;
}
*/
/*
SHOWING SPECIFICITY DEFAULTS
*/
/*
#bar {
color: blue;
}
.foo {
color: green;
}
a {
color: red;
}
*/
/*
HACKING SPECIFICITY
*/
// ELEMENT & CLASS EQUIVALENT
/*
html [id="bar"] {
color: blue;
}
// ELEMENT & CLASS
.foo.foo {
color: green;
}
// CLASS EQUIVALENT & ELEMENT
:root a {
color: red;
}
*/
/*
FURTHER HACKING SPECIFICITY
*/
// SAME SPECIFICITY AS ONE CLASS
/*
[id="bar"] {
color: blue;
}
// SAME SPECIFICITY AS TWO CLASSES
.foo.foo {
color: green;
}
// SAME SPECIFICITY AS A CLASS & AN ELEMENT
:root a {
color: red;
}
*/
Please Whitelist JSFiddle in your content blocker.
Help keep JSFiddle free for always by one of two ways:
Whitelist JSFiddle in your content blocker (two clicks)
Go PRO and get access to additional PRO features →
Join the 4+ million users, and keep the JSFiddle dream alive.
Ad-free
All ads in the editor and listing pages are turned completely off.
Use pre-released features
You get to try and use features (like the Palette Color Generator) months before everyone else.
Fiddle collections
Sort and categorize your Fiddles into multiple collections.
Private collections and fiddles
You can make as many Private Fiddles, and Private Collections as you wish!
Console
Debug your Fiddle with a minimal built-in JavaScript console.