Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
bkardell
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
26 ms
·
121.
▲
by
bkardell
14y ago
I disagree that it is preferable, but that is debatable. I say that in part for the reasons you mention, but also because it seems to me that quite a lot of people think that "$header-color" means "substitute the value of the header-color v
122.
▲
by
bkardell
14y ago
To be very clear rhe one on the left defines, the one on the right uses.
123.
▲
by
bkardell
14y ago
Yes, I agree, but too late for that change probably. Plus I'm sure someone will point out that they are not actually necessarily constant by strict definition either. An easier way to think about it is that they are essentially clever com
124.
▲
by
bkardell
14y ago
CSS variables do something fundamentally different than SASS/LESS approaches. Moreover, it is something which those approaches are incapable of doing. Conversely, SASS and LESS do something that CSS can never do - be processed only once.
125.
▲
(Really) Classy CSS | Hitch Helps
(briankardell.wordpress.com)
1 points
by
bkardell
14y ago
|
0 comments
126.
▲
by
bkardell
14y ago
Since it has changed so many times and there still isn't agreement it wouldn't be prudent to even pretend that this is shimming something that is planned for CSS. Indeed, this is merely one new selector that Hitch provides - there are lots
127.
▲
by
bkardell
14y ago
Yes there has been lots of bike shedding. A lot of people, myself included, have lobbied that ! in CSS is already an abomination (because in normal programming it generally means 'not'). Currently the discussions/draft/etc don't match or a
128.
▲
by
bkardell
14y ago
:has has been a part of jquery for forever. XPath has axis which allows similar expressive powers. As noted elsewhere in the comments, this has been long (a decade plus) planned for "some future CSS" by editors and contributors. It didn't
129.
▲
by
bkardell
14y ago
Yes, Simon, yes it does :) In certain cases you have to check the whole DOM, in others not. We make our best effort to not if we don't have to, or at least to only do it once from up high in the tree if DOM changes are hot and heavy. Is it
130.
▲
by
bkardell
14y ago
(the other author) It is definitely worth noting too that this was first proposed and seriously discussed well over a decade ago now. The subject selector is inherently less powerful than the original (has) proposal, but even that got push