Similar to matches-any this specificity-adjustment pseudo-class represents an element that is represented by its arguments (as selector list) just with a specificity of zero. This is helpful whenever a general matching is used but simple overwrites should still be possible.
# Syntax
:where(selector1[, selector2, …]) {
/* declarations */
}
# Example
input:where(:not(:focus)) {
background-color: #000000;
}
form input {
background-color: #bbbbbb;
}
All inputs in this example should have a black background (except on focus) with a specificity of zero which means form input
would already overwrite the selector due to a higher specificity.
# Browser support
For future browser support information, also check out caniuse.com (Specificity-adjustment pseudo-class).
# Usage statistics (Alexa Top 1,250,000 sites)
Due to an extreme price increase of our statistics provider the data collection was stopped in September 2018.