Frontend Dogma

“selectors” Archive

Supertopics:  (non-exhaustive) · glossary look-up: “selectors”

Entry (Sources) and Other Related TopicsDate#
Quick Reminder That “:is()” and “:where()” Are Basically the Same With One Key Difference (geo/css)240
,
Reducing CSS Complexity With the “:is()” Pseudo-Class (cfe)239
,
“:in-range” Pseudo-Class (kev)238
,
Future of CSS: “select” Styling Without the Hacks (lin)237
, ,
CSS-Only Click Handlers You Might Not Be Using, but You Should (pra)236
Decoding CSS Selectors: “:has(:not)” vs. “:not(:has)” (pol)235
,
The “:not” Selector in Use (cit)234
Rainbow Selection in CSS (chr/fro)233
,
Scroll State Queries Are on the Way (and a Bunch More) (kev)232
, , , ,
How to Wait for the “sibling-count()” and “sibling-index()” Functions (mon/css)231
, ,
The “:empty” Pseudo-Class in CSS (cfe)230
CSS “::target-text” for Text Highlighting (tre)229
CSS Selectors Advent Calendar 2024 (iam)228
,
CSS Selectors: Unlocking Advanced Selectors for Modern Web Design (bat)227
Making Content-Aware Components Using CSS “:has()”, Grid, and Quantity Queries (eri/pic)226
, ,
CSS “only-child” Instead of Conditional Logic (rfo)225
,
I Wasted a Day on CSS Selector Performance to Make a Website Load 2 ms Faster (try)224
,
Selecting Previous Siblings (chr/fro)223
Time Travelling CSS With “:target” (css)222
The Undeniable Utility of CSS “:has” (jos)221
,
Double Your Specificity With This One Weird Trick (cir)220
, ,
The “of S” Syntax in “:nth-child()” (mat)219
Wait, What’s the Difference Between “:host”, “:host()”, and “:host-context()”?! (and)218
,
Thoughts on CSS in 2024 (j9t)217
, , ,
CSS Selectors (geo/css)216
,
Display the Specificity of a CSS Selector (pat/dev)215
, , , , , , , , , , ,
Analyze CSS Selector Performance During Recalculate Style Events (dev)214
, , , , ,
CSS Specificity for WordPress 6.6 (aar/wor)213
, , ,
CSS “:has()”, the God Selector (bru)212
A Brief Note on Highlighted Text (aar)211
, , ,
Misconceptions About CSS Specificity (bra/bra)210
,
Combining CSS “:has()” and HTML “<select>” for Greater Conditional Styling (ami/sma)209
, ,
Use “:has()” to Scope CSS208
,
A Primer on the Cascade and Specificity (bel/pic)207
, ,
Managing User Focus With “:focus-visible” (sal/css)206
,
The Power of “:has()” in CSS (sal/css)205
New CSS That Can Actually Be Used in 2024 (tho)204
, , , , , ,
Accessible Forms With Pseudo Classes (sal/css)203
, ,
Some Little Ways I’m Using CSS “:has()” in the Real World (bel/pic)202
,
Simplify Your CSS Using “:is()” and “:where()” Pseudo-Classes (zor/css)201
,
CSS “:has()” Interactive Guide (sha)200
,
CSS “::backdrop” Now Inherits From Its Originating Element (bra/bra)199
CSS “:is(.awesome)” (mar/cfe)198
, ,
Using Recursive CSS to Change Styles Based on Depth (cri)197
Big, Beautiful, Beefy Focus States With “:focus-visible” (dav)196
,
Difference Between “getElementByID” and “querySelector” (kir)195
,
Combining “:has” and “:only-child” to Change Tab Containers (cri)194
Locking Scroll With “:has()” (rob)193
,
We Can :has It All (hex)192
, ,
Quantity Queries Are Very Easy With CSS “:has()” (chr/fro)191
Browsers Only Update “:target” on Page Load and During Fragment Navigation (sim/web)190
Surprising Facts About New CSS Selectors (spa/clo)189
Use the CSS “:disabled” Pseudo-Class Instead of the “[disabled]” Attribute Selector to Match Disabled Form Controls (sim/web)188
,
“:fullscreen” Demo Without JavaScript (yoo)187
Prodding Firefox to Update “:has()” Selection (mey)186
, , ,
Styling External Links With Attribute Selectors (mic/css)185
, ,
Limit the Reach of Your Selectors With the CSS “@ scope” At-Rule (bra/dev)184
,
How to Escape CSS Selectors in JavaScript (ste)183
, , ,
CSS Lobotomized Owl Selector: A Modern Guide (dop/log)182
, ,
Combining “:placeholder-shown” and “:has” (cri)181
,
CSS Selectors: A Visual Guide (fff)180
,
Faking a “:snapped” Selector With Scroll-Driven Animations (bra/bra)179
, ,
Using Multiple Selectors With JavaScript Selector Methods (cfe)178
What Exactly Is [the] “:root” Pseudo-Element in CSS? (zor/css)177
,
Style Recalculation Secrets They Don’t Want You to Know (pat/css)176
, ,
How Blink Invalidates Styles When “:has()” [Is] in Use (byu/iga)175
, , , ,
Stop Rewriting Your CSS! Use “:not()” Instead (zor/css)174
, ,
Conditional CSS With “:has” and “:nth-last-child” (sha)173
How “:not()” Chains Multiple Selectors (dip/mdn)172
An Introduction to the “:has()” Selector in CSS (5t3/sit)171
,
Exploring “:has()” Again (mic/css)170
CSS: Tricks for Targeting Elements With CSS (uma)169
,
A CSS Selector to Highlight Clickable Elements (seb)168
When Is “:focus-visible” Visible? (ire)167
,
DevTools: Faster Searching in DevTools With CSS Selectors (uma)166
, , , ,
Selecting Previous Siblings With CSS “:has()” (tob)165
Use the Child-Element Count in CSS (kev)164
“(255,255,255)” Is the Highest Specificity (bra/bra)163
,
Create a Rainbow-Coloured List With “:nth-of-type()” (rac)162
, ,
More Control Over “:nth-child()” Selections With the “of S” Syntax (bra/dev)161
A “nth-child” CSS Trick (kev)160
,
Level Up Your CSS Skills With the “:has()” Selector (5t3/sma)159
More Real-World Uses for “:has()” (css)158
Solved With “:has()”: Vertical Spacing in Long-Form Text (css)157
The Truth About CSS Selector Performance (pat/mse)156
,
Using “:is()” in Complex Selectors Selects More Than You Might Initially Think (bra/bra)155
Sibling Scopes in CSS, Thanks to “:has()” (bra/bra)154
“:has” Is an Unforgiving Selector (geo/css)153
CSS “:readonly” Is Not for Select Fields (hel)152
CSS “:empty” Isn’t Applicable on Form Fields (hel)151
,
CSS “:has()” Feature Detection With “@ supports(selector(…))”: You Want “:has(+ *)”, Not “:has(*)” (bra/bra)150
,
Styling a “pre” That Contains a “code” (mey)149
4 Ways CSS “:has()” Can Make Your HTML Forms Even Better (aus)148
, ,
A “:nth-child(An+B [of S]?)” Polyfill Thanks to CSS “:has()” (bra/bra)147
,
Testing for the Support of a Selector (mat)146
,
“:has(:not())” vs. “:not(:has())” (mat)145
,
CSS “:is()”, “:where()”, “:has()”, and “:not()”144
Taming the Cascade With BEM and Modern CSS Selectors (css)143
, , ,
Style a Parent Element Based on Its Number of Children Using CSS “:has()” (bra/bra)142
CSS “:where()” “:is()” the Difference? (hel)141
CSS Specificity for Beginners140
,
The Wasted Potential of CSS Attribute Selectors (eli)139
, ,
A Pure CSS Gallery Focus Effect With “:not” (css)138
:where :is CSS? (the)137
CSS Selectors—Cheat Sheet for Class, Name, Child Selector List (fre)136
, ,
“:has()” Opens Up New Possibilities With CSS (kev)135
,
I Never Thought This Would Be Possible With CSS (kev)134
,
Detecting CSS Selector Support (mic/css)133
, ,
Is It “:modal”? (jhe/dev)132
,
How Is This Possible With CSS Only?! (kev)131
, , ,
Parents Counting Children in CSS (mat)130
Using “:has()” as a CSS Parent Selector and Much More (jen/web)129
How the CSS “:is”, “:where”, and “:has” Pseudo-Class Selectors Work (cra/sit)128
Modern CSS Selectors (cra/ope)127
“:has()”: The Family Selector (jhe/dev)126
Detecting CSS Selector Support With JavaScript (mo)125
, ,
The Advanced Guide to the CSS “:has()” Selector (log)124
,
Solving the “Dangler” Conundrum With Container Queries and “:has()” (dav)123
Understanding CSS “:has()” (mey/iga)122
,
With “:focus-visible”, You Can Have Focus Styles When It Makes Sense (hdv)121
, , ,
The Unlocked Possibilities of the “:has()” Selector (jim)120
A Previous Sibling Selector (jim)119
Managing Specificity With CSS Cascade Layers (zor/css)118
, ,
Style Scoping Versus Shadow DOM: Which Is Fastest? (nol)117
, , , , ,
How and When to Use the CSS “:has” Selector (iba/log)116
Conditionally Styling Selected Elements in a Grid Container (rps/css)115
,
Complex vs. Compound Selectors (mia)114
,
Fun With CSS Combinators (alv)113
:where() :is() :has()? New CSS Selectors That Make Your Life Easier (kil/pol)112
Master the “:nth-child()” Pseudo-Class (zor/css)111
,
Practical Use Cases for “:has()” Pseudo-Class (zor/css)110
,
Intro to CSS Parent Selector—“:has()” (zor/css)109
, ,
CSS Parent Selector (sha)108
CSS “:has()” a Parent Selector Now (mo)107
Animated Grid Tracks With “:has()” (mic/css)106
, ,
How to Match HTML Elements With an Indeterminate State (ste)105
, ,
CSS “:has” (dav)104
Deep Dive Into the CSS “:where()” Function (tim/log)103
,
The Focus-Indicated Pseudo-Class “:focus-visible” (reg/web)102
,
Here’s What I Didn’t Know About “:where()” (mat)101
Comparing CSS Specificity Values (kil)100
,
The CSS “:has()” Pseudo-Class, aka Parent Selector (foo)99
The CSS “:has()” Selector Is Way More Than a “Parent Selector” (bra/bra)98
“@ supports selector()” (chr/css)97
,
Native CSS Nesting: What You Need to Know (sar/log)96
,
7 Practical Uses for the “::before” and “::after” Pseudo-Elements in CSS (zii/css)95
,
Simpler Block Spacing in WordPress With “:is()” and “:where()” (mic/css)94
,
Reducing the Need for Pseudo-Elements (dis/sma)93
Next-Level List Bullets With CSS “::marker” (adi/env)92
,
CSS Nesting, Specificity, and You (kil)91
, ,
Meet “:has”, a Native CSS Parent Selector (and More) (cod/sma)90
Can I “:has()” (bka)89
,
Custom Attributes Are Fast Good and Cheap (dfk)88
,
A Guide to Newly Supported, Modern CSS Pseudo-Class Selectors (5t3/sma)87
, ,
You Want Enabling CSS Selectors, Not Disabling Ones (cit)86
Things You Can Do With CSS Today (bel/sma)85
, , , ,
CSS Selectors in Go84
, , ,
Splicing HTML’s DNA With CSS Attribute Selectors (sto/sma)83
, ,
BEM for Beginners: Why You Need BEM (inn/sma)82
,
Selectors Level 4 (fan+/w3c)81
,
Performance of CSS Selectors Is Still Irrelevant (j9t)80
,
Upgrade Your Project With CSS Selector and Custom Attributes (sit)79
, ,
CSS: The Reason Why Selectors Should Be Ordered, Too (j9t)78
,
CSS Tip: Use “:not” to Save Time and Lines of Code (sas)77
,
CSS Selectors: Specificity (web/sit)76
,
CSS Selectors: Pseudo-Elements (web/sit)75
CSS Selectors: Attribute Selectors (web/sit)74
,
CSS Selectors: Combinators (web/sit)73
Using CSS Mod Queries With Range Selectors (ali)72
An Ultimate Guide to CSS Pseudo Classes and Pseudo Elements (ric/sma)71
, ,
On “:not” and Specificity (ire)70
,
Constructing CSS Quantity Queries on the Fly (rea/sma)69
Quantity Ordering With CSS (rea/sma)68
, ,
12 Little-Known CSS Facts (the Sequel) (lou/sit)67
, , , , ,
The Future Generation of CSS Selectors: Level 4 (lou/sit)66
,
Extending in Sass Without Creating a Mess (dav/sma)65
, ,
Selector Specificity With CSS Preprocessors (fut/sit)64
, , , ,
Specificity Graphs (jus)63
, ,
The Specificity Graph (css)62
, ,
Axiomatic CSS and Lobotomized Owls (hey/ali)61
HTML5 Forms: CSS (cra/sit)60
, , ,
Universal Selector (CSS Selector) (ada/sit)59
CSS Selectors Cheat Sheet (ada/sit)58
, ,
“:first-child” (CSS Selector) (ada/sit)57
The Current Generation of CSS3 Selectors (lou/sit)56
,
Semantic CSS With Intelligent Selectors (hey/sma)55
, ,
How to Order CSS Selectors (j9t)54
, , ,
CSS Selectors Level 4: The Path to CSS4 (faz/sit)53
Sneak Peek Into the Future: CSS Selectors, Level 4 (end/sma)52
Pseudo Element Animations/Transitions Bug Fixed in WebKit (chr/css)51
, , , , ,
Getting to Know CSS3 Selectors: Structural Pseudo-Classes (emi/sit)50
,
Off Canvas Menu With CSS “:target” (chr/css)49
,
CSS “:target” for Off-Screen Designs (cmr/css)48
, , ,
Learning to Love the Boring Bits of CSS (sto/ali)47
, ,
Using the CSS “:target” Selector (chr/css)46
,
How to Put Your CSS3 on “:target” (cra/sit)45
Multiple Attribute Values (chr/css)44
, ,
5 Tips for More Efficient jQuery Selectors (cra/sit)43
,
Discover What’s New in CSS 4 (wir)42
Little CSS Stuff Newcomers Get Confused About (chr/css)41
, ,
Learning to Use the “:after” and “:before” Pseudo-Elements in CSS (lou/sma)40
, ,
Useful “:nth-child” Recipes (chr/css)39
,
Better Semantics With CSS Combinators and Selectors (chr/sit)38
The Difference Between “:nth-child” and “:nth-of-type” (chr/css)37
,
How to Use CSS3 Pseudo-Classes (ric/sma)36
, ,
Top 50 jQuery Selectors (sam/sit)35
Styling Texty Inputs Only (chr/css)34
,
Why Use Classes or IDs on the HTML Element? (chr/css)33
, , ,
Why We Don’t Have a Parent Selector (jus)32
,
Efficiently Rendering CSS (chr/css)31
, ,
Adding Content Using CSS3 (the)30
,
CSS Specificity and Inheritance (yai/sma)29
,
Meet the Pseudo Class Selectors (chr/css)28
The Skinny on CSS Attribute Selectors (chr/css)27
, ,
How “nth-child” Works (chr/css)26
Taming Advanced CSS Selectors (yai/sma)25
,
Simplifying CSS Selectors (sou)24
,
How to Override Inline CSS Styles (cra/sit)23
, ,
Performance of CSS Selectors Is Irrelevant (j9t)22
,
Performance Impact of CSS Selectors (sou)21
, ,
Specifics on CSS Specificity (chr/css)20
,
The Two CSS Selector Bugs in IE6 (pau)19
, , ,
Regex Matching Attribute Selectors (sib/sit)18
, ,
The Difference Between ID and Class (chr/css)17
, ,
CSS: Simple Rules for Better Organization and More Efficiency (j9t)16
, ,
CSS Qualified Selectors (sha)15
Phantom CSS (tka)14
Tomorrow’s CSS Today: 8 Techniques They Don’t Want You to Know (sit)13
, , ,
CSS: Selector Variables (j9t)12
,
Getting Specific With CSS (tka)11
,
The Great Specificity Swindle (ate/sit)10
,
CSS Specificity: Things You Should Know (sma)9
, ,
Who Ordered the Link States? (mey)8
,
Top CSS Tips (jus)7
, ,
By Logical Extension (bee)6
,
CSS Selector Parser (lea)5
, , , ,
CSS “:nth” Tester (css)4
, , , ,
CSS Quantity Query Generator (dre)3
, , ,
CSS Specificity Visualizer (ise)2
, , , , , ,
CSS Specificity Calculator (pol)1
, , , , ,