Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
samweinig
· 1y ago · 0 comments
For those curious, in WebKit, this stems from the use of the LayoutUnit (
https://github.com/WebKit/webkit/blob/main/Source/WebCore/pl...
) for most computed length values. LayoutUnits use a fixed point representation where the smallest unit is 1/64 of a pixel.
https://trac.webkit.org/wiki/LayoutUnit
is a bit old, but has some good information on the topic.
Comments
[–]
ethan_smith
1y ago
This 2^25-1 pixel limit makes perfect sense - with 1/64 pixel precision, that's exactly 2^31-1 layout units (the max value of a signed 32-bit integer).
[–]
internetter
1y ago
its the same in chrome I think
[–]
chrismorgan
1y ago
Blink only forked from WebKit after layout units settled at 1⁄64.