Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

There are a few things here with `width: 100vw`. This is annoying on platforms that don’t use overlay scrollbars because 100vw is wider than the page and so forces a horizontal scrollbar, and I don’t think it was done deliberately. All should be changed to `width: 100%`.

(The viewport units are fundamentally stupidly broken by design, including scrollbar areas, so that if your website has scrollbars they will give you a wrong answer, that the actual viewport width will be things like 17px less than 100vw. There used to be a convoluted way of unbreaking the units with the mild side-effect of forcing the presence of a scrollbar—it involved `overflow: scroll` on the body element, from memory—but Firefox was the only one that implemented it and after some years they collectively gave up and removed it from the spec. So now I say there are literally zero completely legitimate and reasonable uses of viewport units, though there are a few uses where the amount of error is tolerable, though still not a good idea.)



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: