Maybe it's time to meet css on its terms.
Maybe it's time to meet css on its terms.
With child selectors you often end up with spaghetti selectors.
`ul.cards>li>a,ul.cards>li>span>a{}` instead of
`ul.cards a{}`
With child selectors you often end up with spaghetti selectors.
`ul.cards>li>a,ul.cards>li>span>a{}` instead of
`ul.cards a{}`
Still wondering how this code example is supposed not to break separation of concerns.
This "content" actually makes layout decisions. Which is supposed to be part of #CSS.
And breaks on paged and static media.
dbushell.com/2025/05/23/p...
Still wondering how this code example is supposed not to break separation of concerns.
This "content" actually makes layout decisions. Which is supposed to be part of #CSS.
And breaks on paged and static media.
dbushell.com/2025/05/23/p...
In your hierarchy these are on the same level as semantic html tags.
In your hierarchy these are on the same level as semantic html tags.
But when I use them I mentally have to make a gear shift because I am tempted to use --custom-properties similar to the way I use class names.
@una.im used a card-container element in the dom.
😅 This really bugs me a little.
developer.chrome.com/docs/css-ui/...
But when I use them I mentally have to make a gear shift because I am tempted to use --custom-properties similar to the way I use class names.
@una.im used a card-container element in the dom.
😅 This really bugs me a little.
developer.chrome.com/docs/css-ui/...
I see the point. But often the contents of a social media teaser and the ones on the DOM of the site have different ways to talk.
I see the point. But often the contents of a social media teaser and the ones on the DOM of the site have different ways to talk.
In #CSS Devs use way to often class names. Patterns like BEM have encouraged an explosion of class names, that often rely on Javascript to be updated.
Using pseudo classes, and semantic attributes helps us to work closer with the DOM.
In #CSS Devs use way to often class names. Patterns like BEM have encouraged an explosion of class names, that often rely on Javascript to be updated.
Using pseudo classes, and semantic attributes helps us to work closer with the DOM.
#customElements #webcomponents
#customElements #webcomponents
There isn’t any reason to not treat them consistently. Including their focus behaviors, keyboard and voice controls.
There isn’t any reason to not treat them consistently. Including their focus behaviors, keyboard and voice controls.