The Style
class provides a way to evaluate CSS media queries from JavaScript. You do not need to, nor should you, create instances of this class. You access the shared Style
object using the window’s style
property.
SDKs
- Safari Desktop 10.0+
- Safari Mobile 4.2+
Framework
- Web
Kit JS
Declaration
interface StyleMedia
Overview
iOS Note
This class name changed from Media
in iOS 4.2 and later.