cvrebert / cvrebert/cvrebert.github.io

Why CSS selectors suck

Open
#1 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
HTML
Stars
3
Forks
0
PR merge metrics
No merged PRs in 30d

Description

- Child selector: but what about wrapper elements
- Descendant selector: but what about recursion or inter-component hacks?
- Sibling selector, `:first-child`/`:last-child`: tooltips & hidden inputs break this (see https://github.com/twbs/bootstrap/issues/16515 & https://github.com/twbs/bootstrap/issues/15684, https://github.com/twbs/bootstrap/issues/13825, https://github.com/twbs/bootstrap/issues/16693, https://github.com/twbs/bootstrap/issues/16540)
- Element selector
- `ul` and `li`, vs `div`s
- `a` vs. `button`
- `:hover`/`:focus` stickiness
- `:valid`/`:invalid` don't account for user interaction
- "Semantic" markup

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.