example.com/path/to/article
000 points · username · 0 hours ago
example.com269 points · 50 comments · 5 years ago · pavpanchekha
helsinkiandrew
londons_explore
This is a good starting point:
https://source.chromium.org/chromium/chromium/src/+/master:t...
chakspak
chris_wot
https://raphlinus.github.io/text/2020/10/26/text-layout.html
Inityx
The page's ToC uses 60% of the body font, which is ~10pt.
jasim
Finally, functional languages tend to fight against large, mutually-linked, mutable data structures, yet the layout engine of a browser is all about that.
Is the DOM (and LayoutObject et al.) truly a case where imperative object-oriented programming shines? In pure FP operations like insertion, bidirectional traversal, and moving objects between parents can be cumbersome because there is no implicit identity for the objects.
Curious whether this is true, or is there a way to implement a DOM-like API with mostly immutable values?
[deleted]
divan
(It should probably be called "VM for UI apps that run directly from URL and written in UI stack that has never been intended for UI apps, and has weird tabbed window manager")
ksec
Elements like <body> and <header> contain blocks stacked vertically. But elements like <p> and <h1> contain text and lay that text out horizontally in lines. ( In European languages, at least! )
Another day, another features despite PDF not being perfect, is still miles ahead of HTML. I am not even sure if there are any intention to bring vertical Japanese subtext feature to HTML.
Are there any other good references that give a good underlying understanding of HTML/CSS without just giving examples of the various elements?