3 ms·
I love how simple the HTML/CSS is. Absolute positioning with really large left: values. #saturn { position: absolute; left: 412397px;
by amiga386 1y ago
I love how simple the HTML/CSS is. Absolute positioning with really large left: values.
#saturn {
position: absolute;
left: 412397px;
height: 34px;
width: 65px;
fill: #ffa043;
}
- neuroelectron 1y agoCaused Brave in iOS to crash. I have a newer iPad mini with 12GB ram too. But luckily It didn't crash until I tried to close the tab.
- pc86 1y agoThis seems like a browser issue more than anything else. Yes it's "weird" to have millions of pixels horizontally on a page that is only a few thousand pixels tall, but it seems like an absolutely reasonable edge case that the browser should support.
- zhengyi13 1y agoI feel there's a joke here about "edge" cases from scrolling ridiculously long horizontal distances, but I'm not smart enough to make it.
- wltr 1y agoAnd then it’s asking for Internet Explorer joke then, as an explorer something, not I’m not able to come up with it either.
- Sharlin 1y ago“Why not save space by storing dimensions as uint16 internally?”
- Dylan16807 1y agoFor the record, this HN page is already about halfway to overflowing uint16. The most popular HN page in the last day would overflow uint16.
- 2OEH8eoCRo0 1y agoWe have come full circle. I'd imagine that px uses a surprising amount of abstraction.
- cheschire 1y agoAnyone that has tried to absolutely position shapes on an Excel spreadsheet via code would probably agree. Who the hell decided to make EMU’s??
- Zardoz84 1y agoHuge values could rise problems on IE (if someone keep using it and supporting it)