Declarative JavaScript event listening using media queries
Capture part of a DOM structure, along with styling information