26,919 karma · joined September 13, 2012
I’m available for hire for consulting, training and mentoring in Rust, everything web, performance and more: https://chrismorgan.info/hire-me/
[ my public key: https://keybase.io/chrismorgan; my proof: https://keybase.io/chrismorgan/sigs/rEm41-0pghG3ITW8S5HeuFLA9TznvPSlg9NKgXXRXqQ ]
window.CSS&&CSS.supports&&CSS.supports('color','light-dark(#000, #fff)')&&CSS.supports('selector(:has(a))')
Are you sure your browser is fully functional and updated? Chromium shipped the last part of that incantation two and a half years ago.Still, I’ll take the opportunity to advocate for turning off fonts. Firefox: Settings → Fonts → Advanced settings → Allow pages to choose their own fonts, instead of your selections above. I’ve been using the web so for 6½ years and it makes it so much better.
Other than the weird 5×5 colourful tile image thing near the top, all the content is in the document, but they go out of their way to break it in various baffling ways: ① if JS is disabled, it hides all the content behind a “Please enable JavaScript to view this website” screen; ② if fonts fail to load (fonts? fonts!?) it hides all the content behind a “Fonts didn't load. Reload the website.” screen; ③ even if you get it all, keyboard navigation (Up/Down/PageUp/PageDown/Space/Shift+Space) is broken because they went out of their way to not use the perfectly good document scroll area and make their own fixed-positioned one within, and they didn’t even make that focusable, so pressing Tab to get the focus inside it will in some browsers jump you halfway down the page.
(I would not have commented any of this were it not for its first-time status.)
(I confess I’m getting frustrated at the ridiculously large fraction of messages in this thread that have somehow completely misunderstood things.)
The GTK 4 behaviour feels very much like a bug. I can reproduce it in gtk4-demo and in gtk3-demo. It leads to obviously-nonsensical behaviour, including messed up window focus. I’m tempted to file a bug report, but haven’t had such productive experiences with filing things on GNOME historically as with Firefox or even Chromium.
Why should Enter being a different key be a different discussion? They’re both used to activate buttons, and one is behaving like every single other keyboard interaction, while the other isn’t. (Related: if a link is focused, Enter activates it, Space doesn’t, just doing the normal scroll-down-one-page.)
I also subsequently made a dark variant of it for my website’s dark mode and for occasions I want to use an editor in a dark place.
The colours involved are all high-contrast, using the RGB channels provided rather than trying to be silly with low contrast: #fff, #000, #c00, #090, #00c to begin with.
But I have no particular interest in publishing this in a form others can consume in whatever editors they use. Plenty of small tweaks that I develop over time, half for my own Vim syntax files. I think the approach itself, of experimenting deliberately yourself, is worthwhile.
You’re only answering half of the inconsistency: because Enter activates buttons like any other key, on keydown.
Edit: I think people are misunderstanding me. I’m asking for an explanation of why, when you have a button focused, pressing Space activates on key up, rather than key down like literally everything else on the keyboard, including Enter on a focused button. (Mouse activates on release.)
This affects the functionality, too. It is in fact introducing latency by using keyup instead of keydown. Feels bad.
I’m pretty sure (though I have no record of it) that I asked ASUS Australia through their online channels before I bought my current laptop six years ago, and they said no. I never tried following it up more closely. In truth at that stage I didn’t mind having a Windows license, it was convenient for testing certain things occasionally. But I haven’t booted into it for at least three years now other than a couple of times to verify that the keyboard problems are hardware, not software.
“Before (Without the delay of 200ms)” shows obvious delay in appearance. I think this is because of the very inappropriate fade-in.
“After (With the delay of 200ms & instant tooltips)” doesn’t show the instant behaviour at all, only one tooltip.
I don’t know exact parallels in current law, but I presume there will be things like that.
The OpenAI/Hugging Face case sounded rather like OpenAI building a fence around their bull that was known to be a gorer, and then thumbing their nose at it and saying “nyaa! bet you can’t break the fence!” and walking away while listening to loud music.
In Australia, if you have a fire and leave it unattended and it escapes, it’s your fault, you were supposed to keep watching as long as it was burning.
In short: unless the native scroll bar will be wrong, do not under any circumstances hide it.
It’s not hard to be faster than React while exposing broadly similar functionality. If you’re making something for your own usage only, it’s even easier to beat it.
As for the copyright infringement angle, it’s well and truly too late for that to be a meaningful problem, socially and politically. It’s easily in “too big to fail” territory now—any striking down of the “fair use” exemption claim would kill the entire industry dead, because every one of them would have to throw away all their models and synthetic data and start again, and that’s geopolitically untenable. They moved too fast for judiciary to regulate them, and I think the window of opportunity for legislature to regulate them closed no later than 2024.
I’ve encountered “no results” on DuckDuckGo at least half a dozen times in the last couple of months when I know there should be relevant results, and Google gives me relevant results (sigh; I think I had gone for more than a year without using !g). Most of these have been exact keyword matches.
You could convert this into content blocker filters for the likes of uBlock Origin:
news.ycombinator.com##.submission:has([href^="https://example.com/"]),.submission:has([href^="https://example.com/"])+tr,.submission:has([href^="https://example.com/"])+tr+.spacer
(You can append `:style(color:orange)` or such to apply a different style instead of hiding, if you want to be able to hit the hide link in order to get a new thirtieth item—though you could automate that by writing a user script instead.)Or user stylesheets (I use Stylus in Firefox to manage such things):
.submission:has([href="from?site=example.com"]) {
&, & + tr, & + tr + .spacer {
display: none;
}
}
(I showed two different selectors: [href^="https://example.com/"] will match the complete origin, [href="from?site=example.com"] will match the domain as presented by HN, including any subdomains.)