Menu

#Selector

29 posts

Feed·
20 of 29 posts
CSS Selectors for Beginners: Target Any Element on the Page
📰
0Read More

CSS Selectors for Beginners: Target Any Element on the Page

DEV Community: css·Arhan Khan·about 18 hours ago
#A0fyhH4Z
#devtocss#devto#dev#header#ddd

CSS selectors are how you tell the browser which elements to style. Every layout you have ever...

15s
Which buttons have your UI tests never tapped? Measuring UI element coverage in XCUITest
🖼️
0Read More

Which buttons have your UI tests never tapped? Measuring UI element coverage in XCUITest

DEV Community: swift·Sergey Yakimov·6 days ago
#RHVQbNQv
#devtoswift#devto#dev#selector#test

We have about 570 UI tests written in XCUITest. One day someone on the team asked: how much of the...

15s
1,818 selectors ship in our stylesheet, not one of them has an id, and nine !important of which five we wrote
📰
0Read More

1,818 selectors ship in our stylesheet, not one of them has an id, and nine !important of which five we wrote

DEV Community: css·Daniel Pertu·14 days ago
#DwHvRMRt
#devtocss#devto#dev#class#file

Reading the CSS a Tailwind 4 build actually serves. The specificity distribution, 900 escaped selectors, 436 attribute selectors that are all data-*, 87 @property registrations we did not write, and where the nine !important declarations came from.

15s
How I Tamed a Bloated CSS File with a Small Refactor
📰
0Read More

How I Tamed a Bloated CSS File with a Small Refactor

DEV Community: css·Ntty·21 days ago
#HaCunMxd
#devtocss#devto#dev#maincontent#sidebar

A step‑by‑step look at reducing CSS specificity and making styles easier to maintain without rewriting the whole stylesheet.

15s
Use @layer + low-specificity selectors so site overrides don’t turn into selector wars
📰
0Read More

Use @layer + low-specificity selectors so site overrides don’t turn into selector wars

DEV Community: css·Chris Rodriguez·25 days ago
#DIs316TT
#devtocss#devto#dev#id#ids

Use cascade layers to keep a component library in one named layer and site overrides in a later layer, then keep selectors low-specificity with :where() so normal overrides stay simple and testable.

15s
I asked a chat app for a CSS specificity cheat sheet, then checked every row against MDN
📰
0Read More

I asked a chat app for a CSS specificity cheat sheet, then checked every row against MDN

DEV Community: beginners·Kai Mercer·27 days ago
#rGyRUZPU
#devtobeginners#devto#dev#header#selector

I do marketing for HelloAI (https://tryhello.app), the app in this test. Insider test, not a neutral...

15s
Rebuilding :nth-child() out of sibling-index(), if() and mod()
📰
0Read More

Rebuilding :nth-child() out of sibling-index(), if() and mod()

DEV Community: css·Leo·30 days ago
#725W8kFI
#devtocss#devto#dev#selector#child

Temani Afif rebuilds the :nth-child() patterns on CSS-Tricks with sibling-index(), if() style queries and mod(), so the step and offset can come from custom properties. The features are still drafts with limited browser support.

15s
Modern CSS Might Make Your Front-End More Complex — Smashing Magazine
🖼️
0Read More

Replacing JavaScript with a modern CSS feature can simplify a piece of code while making the wider application harder to reason about. Gabriel Shoyombo explores what happens when logic is split between CSS and JavaScript, sharing practical guidance to…

15s
Unlag Neo: Macbook Neo Cursor lag "fix"
📰
229Read More

Unlag Neo: Macbook Neo Cursor lag "fix"

Hacker News·6 months ago
#f6dxnkhS
#gist#selector#return#func#else

Unlag Neo: Macbook Neo Cursor lag "fix". GitHub Gist: instantly share code, notes, and snippets.

15s
Architecting a Conversion Engine in Swift
📰
33Read More

Architecting a Conversion Engine in Swift

Hacker News·6 months ago
#3DMn1p2z
#selector#string#case#file#format

Minimal now supports importing and exporting across Markdown, Rich Text, HTML, PDF, plain text, and our proprietary format MNML. The following essay describes how we accomplished this system in the Swift programming language.…

15s
What’s !important #11: 3D Voxel Scenes, Flying Focus, CSS Syntaxes, and More | CSS-Tricks
📰
0Read More

What’s !important #11: 3D Voxel Scenes, Flying Focus, CSS Syntaxes, and More | CSS-Tricks

CSS-Tricks·Daniel Schwarz·6 months ago
#giD03zO1
#css-tricks#css#syntax#selector#queries

If 3D voxel scenes (that you can style), flying focus animations, or new CSS syntaxes sound like your kinda thing, then this issue of What’s !important is definitely for you.

15s
The Sandbox Oracle: Decompiling EVM Reverts to Architect Self-Healing Web3 Agents
📰
0Read More

The Sandbox Oracle: Decompiling EVM Reverts to Architect Self-Healing Web3 Agents

DEV Community·lokii·7 months ago
#NH8cMnbV
#web3#ai#security#lirix#execution

From Dev.to - security: The Sandbox Oracle: Decompiling EVM Reverts to Architect Self-Healing Web3 Agents

15s