w3c.github.io
w3c.github.io copied to clipboard
Fix quirk with horizontal margins when resizing
Left- and right- margins are fixed at 20px
when width ≤ 840px
. If the window becomes slightly wider (and especially if vertical scroll bars are visible), margins actually shrink and snap down to ≃ 13px
(depends on the UA). That is not the intended behaviour.
cf https://github.com/w3c/w3c.github.io/pull/17#issuecomment-225139899
Note to self: “Detect scrollbar width with JavaScript”.