3 ms·
JS is often used to change the position of elements based on the window size. If you give it wrong info, it will break the layout.
by icebraining 8y ago
JS is often used to change the position of elements based on the window size. If you give it wrong info, it will break the layout.
- beagle3 8y agoTrue, but if you round it down to the closest multiple of (say) 32, you significantly reduce the information content while leaving JS/CSS layout essentially the same. Indeed, it will surely make resize look less sexy (jumping by 32s instead of pixels), and you might waste a few pixels of screen real estate on some sites at some times -- but it's the kind of tradeoff that some people happily do for more privacy. Related, does anyone know if privacy badger include "screen size determination" in its heuristics?
- deleted 8y ago[deleted]
- oneeyedpigeon 8y agoI can't imagine that's 'usual'; most sites will do absolute positioning in css, if at all. As you suggest, trying to layout pixel-by-pixel designs is notoriously awkward and best avoided.
- michaelmior 8y agoYou could still do fingerprinting for resolution based on media queries in CSS.
- icebraining 8y agoI'm not talking about absolute positioning, but calculating positions and width/length based on rules (like the browser does with CSS, but for stuff the browser can't do). For example: https://css-tricks.com/scaled-proportional-blocks-with-css-and-javascript/ https://css-tricks.com/scaled-proportional-blocks-with-css-a...
- oneeyedpigeon 8y agoSure, I just don't think that kind of thing is 'usual'.