Tech does not just watch: Take action against Russia’s war on Ukraine 🇺🇦, and take action against Israel’s genocide on the Palestinian people and the destruction of Palestine 🇵🇸 Hide

Frontend Dogma

“selectors” News Archive

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

Entry (Sources) and Other Related TopicsDate#
Frontend News #16: “:heading” Pseudo-Class, Faded Text Effects, “box-sizing” (zor/css)276
, , , ,
Styling Siblings With CSS Has Never Been Easier: Experimenting With “sibling-count” and “sibling-index” (uti)275
,
One List to Rule Them All (arg)274
, , , ,
Why Is CSS “::first-letter” Not Working? (whi)273
“:has()” Is More Than a Parent Selector (kev)272
,
“:nth-last-child” (kev)271
Quantity Query Carousel (chr/fro)270
, ,
“:out-of-range” (kev)269
“:placeholder-shown” (kev)268
What Is [the] CSS Owl Selector (“* + *”)? (zor/css)267
,
HTML Oddities: Does the Order of Attribute Values Matter? (ede)266
, ,
“:only-child” (kev)265
Getting Specific About CSS Specificity (kat)264
,
Making “:visited” More Private (dev)263
, , , ,
Quick Reminder That “:is()” and “:where()” Are Basically the Same With One Key Difference (geo/css)262
,
Reducing CSS Complexity With the “:is()” Pseudo-Class (cfe)261
,
“:in-range” Pseudo-Class (kev)260
,
Future of CSS: “select” Styling Without the Hacks259
, ,
Decoding CSS Selectors: “:has(:not)” vs. “:not(:has)” (pol)258
,
CSS-Only Click Handlers You Might Not Be Using, but You Should257
The “:not” Selector in Use (cit)256
Rainbow Selection in CSS (chr/fro)255
,
Scroll State Queries Are on the Way (and a Bunch More) (kev)254
, , , ,
How to Wait for the “sibling-count()” and “sibling-index()” Functions (mon/css)253
, ,
The “:empty” Pseudo-Class in CSS (cfe)252
CSS “::target-text” for Text Highlighting (tre)251
CSS Selectors Advent Calendar 2024250
,
CSS Selectors: Unlocking Advanced Selectors for Modern Web Design249
Making Content-Aware Components Using CSS “:has()”, Grid, and Quantity Queries (eri/pic)248
, ,
CSS “only-child” Instead of Conditional Logic247
,
I Wasted a Day on CSS Selector Performance to Make a Website Load 2 ms Faster (try)246
,
Selecting Previous Siblings (chr/fro)245
Time Travelling CSS With “:target” (css)244
The Undeniable Utility of CSS “:has” (jos)243
,
Double Your Specificity With This One Weird Trick (cir)242
, ,
The “of S” Syntax in “:nth-child()” (mat)241
Wait, What’s the Difference Between “:host”, “:host()”, and “:host-context()”?! (and)240
,
Thoughts on CSS in 2024 (j9t)239
, , ,
CSS Selectors (geo/css)238
,
Display the Specificity of a CSS Selector (pat/dev)237
, , , , , , , , , , ,
Analyze CSS Selector Performance During Recalculate Style Events (dev)236
, , , , ,
CSS Specificity for WordPress 6.6 (wor)235
, , ,
CSS “:has()”, the God Selector (bru)234
A Brief Note on Highlighted Text (aar)233
, , ,
Misconceptions About CSS Specificity (bra)232
,
Combining CSS “:has()” and HTML “<select>” for Greater Conditional Styling (ami/sma)231
, ,
Use “:has()” to Scope CSS230
,
A Primer on the Cascade and Specificity (bel/pic)229
, ,
Managing User Focus With “:focus-visible” (css)228
,
The Power of “:has()” in CSS (css)227
New CSS That Can Actually Be Used in 2024 (tho)226
, , , , , ,
Accessible Forms With Pseudo Classes (css)225
, ,
Some Little Ways I’m Using CSS “:has()” in the Real World (bel/pic)224
,
Simplify Your CSS Using “:is()” and “:where()” Pseudo-Classes (zor/css)223
,
CSS “:has()” Interactive Guide (sha)222
,
CSS “::backdrop” Now Inherits From Its Originating Element (bra)221
CSS “:is(.awesome)” (mar/cfe)220
, ,
Using Recursive CSS to Change Styles Based on Depth (cri)219
Big, Beautiful, Beefy Focus States With “:focus-visible” (dav)218
,
Difference Between “getElementByID” and “querySelector”217
,
Combining “:has” and “:only-child” to Change Tab Containers (cri)216
Locking Scroll With “:has()” (rob)215
,
We Can :has It All (hex)214
, ,
Quantity Queries Are Very Easy With CSS “:has()” (chr/fro)213
Browsers Only Update “:target” on Page Load and During Fragment Navigation (sim)212
Surprising Facts About New CSS Selectors (spa/clo)211
Use the CSS “:disabled” Pseudo-Class Instead of the “[disabled]” Attribute Selector to Match Disabled Form Controls (sim)210
,
“:fullscreen” Demo Without JavaScript (yoo)209
Prodding Firefox to Update “:has()” Selection (mey)208
, , ,
Styling External Links With Attribute Selectors (mic)207
, ,
Limit the Reach of Your Selectors With the CSS “@ scope” At-Rule (bra/dev)206
,
How to Escape CSS Selectors in JavaScript (ste)205
, , ,
CSS Lobotomized Owl Selector: A Modern Guide (log)204
, ,
Combining “:placeholder-shown” and “:has” (cri)203
,
CSS Selectors: A Visual Guide202
,
Faking a “:snapped” Selector With Scroll-Driven Animations (bra)201
, ,
Using Multiple Selectors With JavaScript Selector Methods (cfe)200
,
What Exactly Is [the] “:root” Pseudo-Element in CSS? (zor/css)199
,
Style Recalculation Secrets They Don’t Want You to Know (pat/css)198
, ,
How Blink Invalidates Styles When “:has()” [Is] in Use (iga)197
, , , ,
Stop Rewriting Your CSS! Use “:not()” Instead (zor/css)196
, ,
Conditional CSS With “:has” and “:nth-last-child” (sha)195
How “:not()” Chains Multiple Selectors (mdn)194
An Introduction to the “:has()” Selector in CSS (5t3)193
,
Exploring “:has()” Again (mic)192
CSS: Tricks for Targeting Elements With CSS191
,
A CSS Selector to Highlight Clickable Elements (seb)190
When Is “:focus-visible” Visible? (ire)189
,
DevTools: Faster Searching in DevTools With CSS Selectors188
, , , ,
Selecting Previous Siblings With CSS “:has()”187
“(255,255,255)” Is the Highest Specificity (bra)186
,
Use the Child-Element Count in CSS (kev)185
Create a Rainbow-Coloured List With “:nth-of-type()” (rac)184
, ,
More Control Over “:nth-child()” Selections With the “of S” Syntax (bra/dev)183
A “nth-child” CSS Trick (kev)182
,
Level Up Your CSS Skills With the “:has()” Selector (5t3/sma)181
More Real-World Uses for “:has()” (css)180
Solved With “:has()”: Vertical Spacing in Long-Form Text (css)179
Using “:is()” in Complex Selectors Selects More Than You Might Initially Think (bra)178
The Truth About CSS Selector Performance (pat/mic)177
,
Sibling Scopes in CSS, Thanks to “:has()” (bra)176
“:has” Is an Unforgiving Selector (geo/css)175
CSS “:readonly” Is Not for Select Fields (hel)174
CSS “:empty” Isn’t Applicable on Form Fields (hel)173
,
CSS “:has()” Feature Detection With “@ supports(selector(…))”: You Want “:has(+ *)”, Not “:has(*)” (bra)172
,
Styling a “pre” That Contains a “code” (mey)171
4 Ways CSS “:has()” Can Make Your HTML Forms Even Better (aus)170
, ,
A “:nth-child(An+B [of S]?)” Polyfill Thanks to CSS “:has()” (bra)169
,
Testing for the Support of a Selector (mat)168
,
“:has(:not())” vs. “:not(:has())” (mat)167
,
CSS “:is()”, “:where()”, “:has()”, and “:not()”166
Taming the Cascade With BEM and Modern CSS Selectors (css)165
, , ,
Style a Parent Element Based on Its Number of Children Using CSS “:has()” (bra)164
CSS “:where()” “:is()” the Difference? (hel)163
CSS Specificity for Beginners (nic)162
,
The Wasted Potential of CSS Attribute Selectors161
, ,
A Pure CSS Gallery Focus Effect With “:not” (css)160
:where :is CSS?159
“:has()” Opens Up New Possibilities With CSS (kev)158
,
CSS Selectors—Cheat Sheet for Class, Name, Child Selector List (fre)157
, ,
I Never Thought This Would Be Possible With CSS (kev)156
,
Detecting CSS Selector Support (mic)155
, ,
Is It “:modal”? (jhe/dev)154
,
How Is This Possible With CSS Only?! (kev)153
, , ,
Parents Counting Children in CSS (mat)152
Using “:has()” as a CSS Parent Selector and Much More (jen/web)151
How the CSS “:is”, “:where”, and “:has” Pseudo-Class Selectors Work (cra)150
Modern CSS Selectors (cra)149
“:has()”: The Family Selector (jhe/dev)148
The Advanced Guide to the CSS “:has()” Selector (log)147
,
Detecting CSS Selector Support With JavaScript146
, ,
Solving the “Dangler” Conundrum With Container Queries and “:has()” (dav)145
Understanding CSS “:has()” (mey/iga)144
,
With “:focus-visible”, You Can Have Focus Styles When It Makes Sense (hdv)143
, , ,
The Unlocked Possibilities of the “:has()” Selector (jim)142
A Previous Sibling Selector (jim)141
Managing Specificity With CSS Cascade Layers (zor/css)140
, ,
Style Scoping Versus Shadow DOM: Which Is Fastest? (nol)139
, , , , ,
How and When to Use the CSS “:has” Selector (log)138
Conditionally Styling Selected Elements in a Grid Container (pre/css)137
,
Complex vs. Compound Selectors (mia)136
,
Fun With CSS Combinators (alv)135
:where() :is() :has()? New CSS Selectors That Make Your Life Easier (kil/pol)134
Master the “:nth-child()” Pseudo-Class (zor/css)133
,
Practical Use Cases for “:has()” Pseudo-Class (zor/css)132
,
Intro to CSS Parent Selector—“:has()” (zor/css)131
, ,
CSS Parent Selector (sha)130
CSS “:has()” a Parent Selector Now129
Animated Grid Tracks With “:has()” (mic)128
, ,
How to Match HTML Elements With an Indeterminate State (ste)127
, ,
CSS “:has” (dav)126
Deep Dive Into the CSS “:where()” Function (log)125
,
The Focus-Indicated Pseudo-Class “:focus-visible” (web)124
,
Here’s What I Didn’t Know About “:where()” (mat)123
Comparing CSS Specificity Values (kil)122
,
The CSS “:has()” Pseudo-Class, aka Parent Selector121
The CSS “:has()” Selector Is Way More Than a “Parent Selector” (bra)120
“@ supports selector()” (chr/css)119
,
Native CSS Nesting: What You Need to Know (log)118
,
7 Practical Uses for the “::before” and “::after” Pseudo-Elements in CSS (css)117
,
Simpler Block Spacing in WordPress With “:is()” and “:where()” (mic)116
,
Reducing the Need for Pseudo-Elements (sma)115
Next-Level List Bullets With CSS “::marker”114
,
CSS Nesting, Specificity, and You (kil)113
, ,
Meet “:has”, a Native CSS Parent Selector (and More) (cod/sma)112
Can I “:has()” (bka)111
,
Custom Attributes Are Fast Good and Cheap110
,
A Guide to Newly Supported, Modern CSS Pseudo-Class Selectors (5t3/sma)109
, ,
You Want Enabling CSS Selectors, Not Disabling Ones (cit)108
Things You Can Do With CSS Today (bel/sma)107
, , , ,
Happier HTML5 Form Validation in Vue (chr/css)106
, , , ,
Responsive Styling Using Attribute Selectors (css)105
, ,
CSS Functions Guide (eri/css)104
, ,
Select an Element With a Non-Empty Attribute (chr/css)103
, ,
A Use Case for a Parent Selector (chr/css)102
CSS “:not()” With Multiple Classes (chr/css)101
CSS Selectors in Go100
, , ,
Styling Based on Scroll Position (chr/css)99
,
Splicing HTML’s DNA With CSS Attribute Selectors (sma)98
, ,
“::before” vs “:before” (chr/css)97
, ,
Solved With CSS! Logical Styling Based on the Number of Given Elements (una/css)96
BEM for Beginners: Why You Need BEM (sma)95
,
Selectors Level 4 (fan+/w3c)94
,
“Stop Using CSS Selectors for Non-CSS” (chr/css)93
, , ,
Performance of CSS Selectors Is Still Irrelevant (j9t)92
,
Upgrade Your Project With CSS Selector and Custom Attributes91
, ,
CSS: The Reason Why Selectors Should Be Ordered, Too (j9t)90
,
Some Extremely Handy “:nth-child” Recipes as Sass Mixins (css)89
, , ,
CSS Tip: Use “:not” to Save Time and Lines of Code (sas)88
,
CSS Selectors: Specificity (web)87
,
CSS Selectors: Pseudo-Elements (web)86
CSS Selectors: Attribute Selectors (web)85
,
CSS Selectors: Combinators (web)84
Style List Markers in CSS (chr/css)83
,
Spoooooky CSS Selectors (chr/css)82
,
Using CSS Mod Queries With Range Selectors (ali)81
You Can Kinda Invent Your Own Weird Design Language With Attributes and Attribute Selectors (chr/css)80
, , ,
Precedence in CSS (When Order of CSS Matters) (chr/css)79
,
An Ultimate Guide to CSS Pseudo Classes and Pseudo Elements (sma)78
, ,
On “:not” and Specificity (ire)77
,
CSS Specificity Is Base-Infinite (chr/css)76
,
Constructing CSS Quantity Queries on the Fly (rea/sma)75
Quantity Ordering With CSS (rea/sma)74
, ,
12 Little-Known CSS Facts (the Sequel) (lou)73
, , , , ,
The Future Generation of CSS Selectors: Level 4 (lou)72
,
Extending in Sass Without Creating a Mess (sma)71
, ,
Selector Specificity With CSS Preprocessors70
, , , ,
Strategies for Keeping CSS Specificity Low (chr/css)69
, ,
Specificity Graphs (jus)68
, ,
The Specificity Graph (css)67
, ,
Axiomatic CSS and Lobotomized Owls (hey/ali)66
HTML5 Forms: CSS (cra)65
, , ,
Universal Selector (CSS Selector)64
CSS Selectors Cheat Sheet63
, ,
“:first-child” (CSS Selector)62
The Current Generation of CSS3 Selectors (lou)61
,
Semantic CSS With Intelligent Selectors (hey/sma)60
, ,
How to Order CSS Selectors (j9t)59
, , ,
CSS Selectors Level 4: The Path to CSS458
Sneak Peek Into the Future: CSS Selectors, Level 4 (sma)57
Pseudo Element Animations/Transitions Bug Fixed in WebKit (chr/css)56
, , , , ,
Getting to Know CSS3 Selectors: Structural Pseudo-Classes55
,
Off Canvas Menu With CSS “:target” (chr/css)54
,
CSS “:target” for Off-Screen Designs (css)53
, , ,
Learning to Love the Boring Bits of CSS (sto/ali)52
, ,
Using the CSS “:target” Selector (chr/css)51
,
How to Put Your CSS3 on “:target” (cra)50
Multiple Attribute Values (chr/css)49
, ,
5 Tips for More Efficient jQuery Selectors (cra)48
,
Discover What’s New in CSS 4 (wir)47
“var” Selector46
,
Little CSS Stuff Newcomers Get Confused About (chr/css)45
, ,
Learning to Use the “:after” and “:before” Pseudo-Elements in CSS (lou/sma)44
, ,
Useful “:nth-child” Recipes (chr/css)43
,
Better Semantics With CSS Combinators and Selectors42
The Difference Between “:nth-child” and “:nth-of-type” (chr/css)41
,
How to Use CSS3 Pseudo-Classes (sma)40
, ,
Top 50 jQuery Selectors39
Styling Texty Inputs Only (chr/css)38
,
Why Use Classes or IDs on the HTML Element? (chr/css)37
, , , ,
Why We Don’t Have a Parent Selector (jus)36
,
Efficiently Rendering CSS (chr/css)35
, ,
Adding Content Using CSS3 (the)34
,
CSS Specificity and Inheritance (sma)33
,
Meet the Pseudo Class Selectors (chr/css)32
The Skinny on CSS Attribute Selectors (chr/css)31
, ,
How “nth-child” Works (chr/css)30
Zen Coding: Generating HTML From Selectors (dal/aja)29
, ,
Taming Advanced CSS Selectors (sma)28
,
Simplifying CSS Selectors27
,