Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
chearon
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
1.
▲
by
chearon
4mo ago
That might actually be a bug in Firefox. The source text is correct and it works in Chrome. `text-overflow` shouldn't apply to text that fit on a line...
2.
▲
by
chearon
7mo ago
esbuild still doesn’t support top-level await. And live reloading is way, way slower than HMR.
3.
▲
by
chearon
2y ago
It matters a lot more if you use vim at a huge resolution, or anything that sends a lot of control sequences. Terminal.app and iTerm get sluggish.
4.
▲
by
chearon
2y ago
It probably looks very wrong to people who still think lots of "modularity" and small packages is a good thing. I'm all for it, and lots of Bun APIs are purely practical. Bun.stringWidth, for example, exposes code Bun already
5.
▲
by
chearon
2y ago
Automattic acquired LearnBoost who employed TJ Holowaychuk, the original creator of node-canvas (and also Express and tons else). Automattic has not been involved in any way since at least 2017 when I joined node-canvas.
6.
▲
by
chearon
2y ago
Interesting take on representing charts in an accessible way. I feel like, as web developers, we were fed a myth that lots of markup and attributes automatically makes your content accessible. But it takes more thinking than that. I've
7.
▲
by
chearon
2y ago
That's because Noto Sans Telugu (the font dropflow automatically downloaded based on the text; doesn't seem like a great pick but not wrong?) is returning ligatures. Not all fonts will be able to support styling individual charact
8.
▲
by
chearon
2y ago
Paste the following into https://chearon.github.io/dropflow/ to see that it _is_ possible to style individual Arabic characters in canvas: <div style="font-size: 10em;">ع<span style="color: blue
9.
▲
by
chearon
2y ago
The title made me think this could actually layout and paint HTML, but I couldn't find anything remotely layout-related in the source tree. Then I found this comment saying even block sizing isn't done: https://github.c
10.
▲
by
chearon
3y ago
> the amount of complexity associated with just stamping some glyphs onto a canvas has left me screaming at my laptop on an almost daily basis This made me laugh because I can relate so much. Inline backgrounds can start in LTR text and
11.
▲
by
chearon
3y ago
> Opera switched from Presto to Blink, too True. But I wonder if there are more special-purpose engines similar to Prince that have been abandoned. > Did you ever consider integrating with web-platform-tests? I've run some of the
12.
▲
by
chearon
3y ago
I do think complexity could be part of why we don't have many options here, but I don't agree that a layout engine is too difficult to maintain. More of the issue is that CSS layout (and maybe layout in general) is not widely well
13.
▲
by
chearon
3y ago
Yes, this is pretty high up on my list. I've already done a little bit of work on pagination/fragmentation, but it will take me some time.
14.
▲
by
chearon
3y ago
Google Docs uses canvas, yeah, and last I looked it used an empty contentEditable just to receive [rich text] input. I do think you could use this to write a document editor like Docs and side-step many of the problems with contentEditable,
15.
▲
by
chearon
3y ago
With this and node-canvas, you have everything you need to generate PDFs. I'll add an example to the examples/ directory for that. The spreadsheet library and PDFs I talked about in OP were examples of how we use this in our appli
16.
▲
by
chearon
3y ago
Yes, definitely. In the meantime, you can still use this to get the intrinsic sizes of cells to create rows and columns, and you can use an empty inline-block and paint the image where it's laid out. I'll put something in the exam
17.
▲
by
chearon
3y ago
Wow thanks! Seeing Ladybird progress kept me motivated!
18.
▲
by
chearon
3y ago
> wondering if css and svg could be used as abstraction over graphics and UI libraries There's another project called Sciter that uses CSS to target native graphics libraries: https://sciter.com > I wonder how hard it
19.
▲
Show HN: Dropflow, a CSS layout engine for node or <canvas>
(github.com)
404 points
by
chearon
3y ago
|
137 comments
20.
▲
by
chearon
3y ago
I had the same experience. Very often, I couldn't fall asleep until 6-7am. I felt like I was losing my mind. I got professional help from sleep psychologists but it didn't do much. They told me all the same stuff that comes up whe
21.
▲
by
chearon
4y ago
Igalia is funding it by providing 4 employees: https://people.igalia.com/mrego/servo/igalia-servo-tsc-2022/
22.
▲
by
chearon
4y ago
The browser doesn't know what the auto size is any more than you do until it performs a layout (reflow). Layouts are expensive and must be minimized. And what if content is changed in the middle of the transition? Should it recalculate
23.
▲
by
chearon
5y ago
You can still browse the source on GitHub though. I don't mind them trying to make more money so much. What I don't like is that we have 3 bugs open, one of them 3 years old, that aren't getting fixed. And paying for a licens
24.
▲
by
chearon
5y ago
It does but only after a layout. Interpolating from `height: 0;` to `height: 10px` is easy, but interpolating to `height: auto` takes an additional layout. I always assumed that you can't do this either for performance reasons or becau
25.
▲
by
chearon
5y ago
I often have to set `min-width: 0` if it's a flexbox inside another flexbox. `min-width` defaults to `auto` which means the smaller of the `width` on it and its content width. The content width of a flexbox (being checked here as a fle
26.
▲
by
chearon
8y ago
I'm not seeing Safari 12 in the App Store (macOS 10.13.6). I wonder if they pulled the update because of this? I have Safari 11 still but my colleague got Safari 12 through the App Store.