---
title: StyleMedia
framework: webkitjs
role: symbol
role_heading: Class
path: webkitjs/stylemedia
---

# StyleMedia

The StyleMedia 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 StyleMedia object using the window’s styleMedia property.

## Declaration

```data
interface StyleMedia
```

## Overview

Overview note: This class name changed from Media in iOS 4.2 and later.

## Topics

### Get Properties

- [type](webkitjs/stylemedia/1634102-type.md)

### Make Media Queries

- [matchMedium](webkitjs/stylemedia/1634038-matchmedium.md)
