CSS - aspect-ratio

aspect-ratio is a CSS media feature whose value is the width-to-height aspect <ratio> of the viewport.

Description  

aspect-ratio is a CSS media feature whose value is the width-to-height aspect <ratio> of the viewport.

Browser Compatibility  

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support ? 3.5 (1.9.1) 9.0 ? ?
Feature Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support ? ? ? ? ?

 

Specifications  

Specification Status Comment
Media Queries
The definition of 'aspect-ratio' in that specification.
Recommendation Initial definition.

License

© 2016 Mozilla Contributors
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-us/docs/web/css/@media/aspect-ratio