3 ms·
Immediately I thought “isn’t this just an overflow issue?” Amazing how far these models still have to go and also how many people don’t know basic CSS.
by swingboy 4mo ago
Immediately I thought “isn’t this just an overflow issue?” Amazing how far these models still have to go and also how many people don’t know basic CSS.
- nonethewiser 4mo agoLearn to center a div Copy and paste code from stack overflow until the div is centered Ask AI to center it
- ukuina 4mo ago$12 and 200k tokens!
- rdedev 4mo agoThis is why I really like karapathy's idea of llms having spiky intelligence. We would assume that if tasks A and B are closely related. Mastery in A would mean mastery in B but that doesn't always work with an LLM
- IshKebab 4mo agoYeah pretty crazy capability from the AI but also sad that we're at the point where web developers don't know right click->inspect element, and scrolling overflow properties (one of the most basic and common parts of CSS).
- simonw 4mo agoWhat's your theory on why the bug was present in Safari on macOS but absent in Chrome, Firefox, and WebKit for Playwright?
- IshKebab 4mo agoBrowsers tend to not lay out things totally identically in my experience. Especially when it comes to scrollbars. So the bug probably was present on the other browsers but it just happened to not be hit. I'd have to play around with the dev tools to know for sure. Also I'm not sure the fix is even correct. overflow-x: hidden means it just chops off any overflowing content which means you don't get a scroll bar, but if the user types to much it just goes into an invisible void they can't see. See https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Properties/overflow-x https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/P... So this could be a case of the AI doing its classic "the symptom is gone!" thing.
- simonw 4mo ago> Also I'm not sure the fix is even correct. overflow-x: hidden means it just chops off any overflowing content which means you don't get a scroll bar, but if the user types to much it just goes into an invisible void they can't see. That's what I figured would happen too, but I tested it and it doesn't.