Recent submissions

Comment · 1 year ago
Accessibility is a key reason for this proposal. Today, canvas accessibility is quite limited. This proposal enables the browser to know how accessible dom elements map to canvas pixels.
Comment · 1 year ago
This proposal is a lot like an easier way to draw foreign object into canvas. This proposal supports new features too, such as updating the canvas when the content changes, and interactivity.
Comment · 3 years ago
Gecko is base-60 a.k.a. sexagesimal (https://en.wikipedia.org/wiki/Sexagesimal) which is highly divisible. In Firefox, a pixel is sort of a CSS minute :)

Blink and WebKit are less sexy and use tetrasexagesimal a.k.a. 1/64 (https://trac.webkit.org/wiki/LayoutUnit). 1/60 was tried originally, but it was switched to 1/64 for performance and to avoid precision loss. The reason it's faster is interesting: floating point values are also stored as number with a base-2 exponent, so to convert to/from floats, you can use shifts instead of needing division. The differences between 1/60 and 1/64 were important 10 years ago but are pretty minor now.

If you're interested, the code is at https://github.com/mozilla/gecko-dev/blob/d36cf98aa85f24ceef... and https://source.chromium.org/chromium/chromium/src/+/main:thi...

Comment · 4 years ago
Lego continues to be a favorite in our house. Duplo for 2-4, and Lego for 3+.
Comment · 4 years ago
Comment · 4 years ago
Comment · 4 years ago
There's a great children's history book titled "This Bridge Will Not Be Gray" by Dave Eggers that goes into the early days of the color choice. The bridge was shipped over from east coast metal works in orange, so it was not gray to begin with. The choice to keep it orange involved some public support so I think it is unlikely that it was ever painted gray, even temporarily.
Comment · 5 years ago
This article is just about acceleration and stacking is not introduced. WebKit's architecture ties together the concepts of stacking and acceleration. A positive effect is that it will be quite easy to support stacking in SVG with this work.

A negative of joining the concepts of stacking and acceleration is that it is difficult to get acceleration without introducing paint order bugs where the accelerated content starts painting above non-accelerated content.

Comment · 5 years ago
Comment · 6 years ago
Comment · 6 years ago
Comment · 6 years ago
See A Satellite Tonight (https://james.darpinian.com/satellites) is a nice tool for finding these. I have a young kid and it's been fun heading out at night and spotting these.
Comment · 6 years ago
Comment · 6 years ago
If https://www.myvisajobs.com/Reports/2019-H1B-Visa-Category.as... is accurate, the bay area was the top recipient of H1B recipients in 2019.
Comment · 6 years ago
This is for all years, but the numbers for 2019 seem to indicate SV will be affected: https://www.myvisajobs.com/Reports/2019-H1B-Visa-Sponsor.asp... Google is #8. Amazon, Facebook, Apple are in the top 20. I don't know how accurate this list is, but I am worried for my colleagues.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton