Skip to content

Instantly share code, notes, and snippets.

@OliverBrotchie
Last active June 18, 2021 23:00
Show Gist options
  • Save OliverBrotchie/9283af47058cc085bb02370dcf30685c to your computer and use it in GitHub Desktop.
Save OliverBrotchie/9283af47058cc085bb02370dcf30685c to your computer and use it in GitHub Desktop.
CSS exfiltration example
.pointer {
background-image: url('/some/url/pointer=none')
}
// Coarse (touchscreen)
@media (any-pointer: coarse){
.pointer {
background-image: url('/some/url/pointer=coarse')
}
}
// Fine (mouse)
@media (any-pointer: fine){
.pointer {
background-image: url('/some/url/pointer=fine')
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment