Skip to content

Commit 326c73c

Browse files
author
Greg Whitworth
committed
[mediaqueries-4] Added dynamic-range
1 parent bb31f77 commit 326c73c

1 file changed

Lines changed: 64 additions & 7 deletions

File tree

mediaqueries-4/Overview.bs

Lines changed: 64 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1695,22 +1695,51 @@ Color Display Quality: the 'color-gamut' feature</h3>
16951695
you can use this feature in a negated boolean-context fashion:
16961696
''not (color-gamut)''.
16971697

1698+
<h3 id="dynamic-range">
1699+
Dynamic Range: the 'dynamic-range' feature</h3>
1700+
1701+
<pre class='descdef mq'>
1702+
Name: dynamic-range
1703+
Value: standard | high
1704+
For: @media
1705+
Type: discrete
1706+
</pre>
1707+
</h3>
1708+
1709+
High dynamic range (HDR) represents the combination of brightness, color depth, transfer function, and color gamut.
1710+
1711+
<dl dfn-type=value dfn-for="dynamic-range">
1712+
<dt><dfn>high</dfn>
1713+
<dd>
1714+
If the following are true for the UA and the output device:
1715+
* color gamut is <a>p3</a>, <a>rec2020</a>
1716+
* color depth is greater than 24 bit
1717+
* has a high contrast ratio
1718+
<dt><dfn>standard</dfn>
1719+
<dd>
1720+
If the following are true for the UA and the output device:
1721+
* color gamut is <a>sRGB</a>
1722+
* color depth is 24 bit or 8 bit per color component of RGB
1723+
* has a low contrast ratio
1724+
</dl>
1725+
16981726
<h3 id="video-prefixed-properties">
1699-
Handling bi-plane displays</h3>
1727+
Handling bi-plane scenarios</h3>
17001728

17011729
In some scenarios, such as TVs, they have a graphics plane dedicated
17021730
to video that has its own discrete hardware. In order to allow UAs in
17031731
environments that have more than one plane for graphics rendering the
17041732
following properties should be used to correctly answer video specific
17051733
queries.
17061734

1707-
For any useragent on a bi-plane device you **MUST** return the values for:
1708-
<a>video-color-gamut</a>; <a>video-width</a>; <a>video-height</a>; <a>video-resolution</a>;
1709-
based on the plane that renders video. If the useragent is not in a bi-plane scenario then
1710-
you **MUST** return the values of the single plane (they're effectively aliases to their non-video counterparts).
1735+
For any UA on a bi-plane device you **MUST** return the values for:
1736+
<a>video-color-gamut</a>; <a>video-width</a>; <a>video-height</a>; <a>video-resolution</a>;
1737+
<a>video-dynamic-range</a>; based on the plane that renders video. If the UA is not in a bi-plane
1738+
scenario then it **MUST** return the values of the single plane
1739+
(they're effectively aliases to their non-video counterparts).
17111740

17121741
<h3 id="video-color-gamut">
1713-
Color Display Quality: the 'video-color-gamut' feature</h3>
1742+
Video Color Display Quality: the 'video-color-gamut' feature</h3>
17141743

17151744
<pre class='descdef mq'>
17161745
Name: video-color-gamut
@@ -1728,6 +1757,34 @@ The 'video-color-gamut' media feature describes the approximate range of colors
17281757

17291758
Value and color space definitions are the same as <a href="#color-gamut">color-gamut</a>
17301759

1760+
<h3 id="video-dynamic-range">
1761+
Video Dynamic Range: the 'video-dynamic-range' feature</h3>
1762+
1763+
<pre class='descdef mq'>
1764+
Name: video-dynamic-range
1765+
Value: standard | high
1766+
For: @media
1767+
Type: discrete
1768+
</pre>
1769+
</h3>
1770+
1771+
High dynamic range (HDR) represents the combination of brightness, color depth, transfer function, and color gamut.
1772+
1773+
<dl dfn-type=value dfn-for="video-dynamic-range">
1774+
<dt><dfn>high</dfn>
1775+
<dd>
1776+
If the following are true for the UA and the output device's video plane:
1777+
* color gamut is <a>p3</a>, <a>rec2020</a>
1778+
* color depth is greater than 24 bit
1779+
* has a high contrast ratio
1780+
<dt><dfn>standard</dfn>
1781+
<dd>
1782+
If the following are true for the UA and the output device's video plane:
1783+
* color gamut is <a>sRGB</a>
1784+
* color depth is 24 bit or 8 bit per color component of RGB
1785+
* has a low contrast ratio
1786+
</dl>
1787+
17311788
<h3 id="video-width">
17321789
Video-Width: the '@media/video-width' feature</h3>
17331790

@@ -1765,7 +1822,7 @@ Video-Height: the '@media/video-height' feature</h3>
17651822

17661823
'@media/video-height' is <a>false in the negative range</a>.
17671824

1768-
<h3 id="video-resolution" caniuse="css-media-video-resolution">
1825+
<h3 id="video-resolution">
17691826
Video Display Resolution: the 'video-resolution' feature</h3>
17701827

17711828
<pre class='descdef mq'>

0 commit comments

Comments
 (0)