by shakna · 6y ago · 0 comments
The only place that needs it, are those JS apps that manually position items.
Measuring text overflow is only possible by the APIs exposed by the CSSOM set [0], which also happens to include the window sizing elements. If we only allowed a subset of that group, all those problems might evaporate or become extremely difficult to successfully use.
@media (min-width: 600px) { .pixel { background-image: url("/pixel?width=600"); } }
@media (min-width: 700px) { .pixel { background-image: url("/pixel?width=700"); } }
You could add as many of these media queries as you like to increase the resolution of your tracking. Combine this with the min-height media query and you can get the absolute size of the view port.Whilst it's better-than-nothing fingerprinting, it is still far less effective than JS having access to the window and height properties directly.
So if a browser changes the prefetching algo, the method is immediately broken. (For example enabling network.predictor.enable-prefetch in Firefox).
It isn't an inherent weakness of CSS itself.