---
title: mediaStyle
framework: webkit
role: symbol
role_heading: Instance Property
path: webkit/webview-swift.class/mediastyle
---

# mediaStyle

The receiver’s CSS media property.

## Declaration

```swift
var mediaStyle: String! { get set }
```

## See Also

### Getting and Setting CSS Properties

- [computedStyle(for:pseudoElement:)](webkit/webview-swift.class/computedstyle(for:pseudoelement:).md)
- [typingStyle](webkit/webview-swift.class/typingstyle.md)
- [styleDeclaration(withText:)](webkit/webview-swift.class/styledeclaration(withtext:).md)
- [applyStyle(_:)](webkit/webview-swift.class/applystyle(_:).md)
