Skip to content

Commit ae672c6

Browse files
[mediaqueries-4] Merge pull request #4678 from w3c/gwhit-issue-4471
Adding of video-* properties and dynamic-range to handle bi-plane scenarios
2 parents dc639f8 + 0bf17c2 commit ae672c6

1 file changed

Lines changed: 141 additions & 0 deletions

File tree

mediaqueries-4/Overview.bs

Lines changed: 141 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1695,6 +1695,147 @@ 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+
'@media/dynamic-range' represents the combination of max brightness,
1710+
color depth, and contrast ratio that are supported by the UA and output device.
1711+
1712+
<dl dfn-type=value dfn-for="@media/dynamic-range">
1713+
<dt><dfn>high</dfn>
1714+
<dd>
1715+
If the following are true for the UA and the output device:
1716+
* max brightness is considered high
1717+
* color depth is greater than 24 bit
1718+
* has a <a>high contrast ratio</a>
1719+
<dt><dfn>standard</dfn>
1720+
<dd>
1721+
If the following are true for the UA and the output device:
1722+
* max brightness is considered standard
1723+
* color depth is 24 bit or 8 bit per color component of RGB
1724+
* has a <a>low contrast ratio</a>
1725+
</dl>
1726+
1727+
<h3 id="contrast-brightness-of-display">
1728+
Determining contrast and brightness of display</h3>
1729+
1730+
This text is non-normative. There currently is no agreed upon standardization of
1731+
<dfn export>high contrast ratio</dfn>, <dfn export>low contrast ratio</dfn>,
1732+
max brightness or low brightness as it relates to displays. As such, the
1733+
determination for '@media/dynamic-range' and '@media/video-dynamic-range' will
1734+
be defined by the user agent.
1735+
1736+
<h3 id="video-prefixed-features">Video Prefixed Features</h3>
1737+
1738+
Some user agents, including many TVs, render video and graphics in two
1739+
separate "planes" (bi-plane) with distinct screen characteristics. A set of
1740+
video-prefixed features is provided to describe the video plane.
1741+
1742+
Any bi-plane implementation must return values based on the video plane
1743+
for the following features: '@media/video-color-gamut'; '@media/video-width';
1744+
'@media/video-height'; '@media/video-resolution'; '@media/video-dynamic-range'.
1745+
All other features must return values based on the graphics plane.
1746+
1747+
Non bi-plane implementations must return the same values for
1748+
video-prefixed features and their non-prefixed counterparts.
1749+
1750+
<h3 id="video-color-gamut">
1751+
Video Color Display Quality: the 'video-color-gamut' feature</h3>
1752+
1753+
<pre class='descdef mq'>
1754+
Name: video-color-gamut
1755+
Value: srgb | p3 | rec2020
1756+
For: @media
1757+
Type: discrete
1758+
</pre>
1759+
</h3>
1760+
1761+
The '@media/video-color-gamut' media feature describes the approximate range of colors
1762+
that are supported by the UA and output device's video plane.
1763+
That is, if the UA receives content with colors in the specified space
1764+
it can cause the output device to render the appropriate color,
1765+
or something appropriately close enough.
1766+
1767+
Value and color space definitions are the same as <a href="#color-gamut">color-gamut</a>
1768+
1769+
<h3 id="video-dynamic-range">
1770+
Video Dynamic Range: the 'video-dynamic-range' feature</h3>
1771+
1772+
<pre class='descdef mq'>
1773+
Name: video-dynamic-range
1774+
Value: standard | high
1775+
For: @media
1776+
Type: discrete
1777+
</pre>
1778+
</h3>
1779+
1780+
'@media/video-dynamic-range' represents the combination of max brightness,
1781+
color depth, and contrast ratio that are supported by the UA and output device's
1782+
video plane.
1783+
1784+
Supported values are the same as <a href="#dynamic-range">dynamic-range</a>.
1785+
1786+
<h3 id="video-width">
1787+
Video-Width: the '@media/video-width' feature</h3>
1788+
1789+
<pre class='descdef mq'>
1790+
Name: video-width
1791+
Value: <<length>>
1792+
For: @media
1793+
Type: range
1794+
</pre>
1795+
1796+
The '@media/video-width' media feature describes the width of the targeted display's video plane area
1797+
of the output device. For continuous media, this is the width of the viewport
1798+
(as described by CSS2, section 9.1.1 [[!CSS21]]) including the size of a rendered scroll bar (if any).
1799+
For paged media, this is the width of the page box (as described by CSS2, section 13.2 [[!CSS21]]).
1800+
1801+
<<length>>s are interpreted according to [[#units]].
1802+
1803+
'@media/video-width' is <a>false in the negative range</a>.
1804+
1805+
<h3 id="video-height">
1806+
Video-Height: the '@media/video-height' feature</h3>
1807+
1808+
<pre class='descdef mq'>
1809+
Name: video-height
1810+
Value: <<length>>
1811+
For: @media
1812+
Type: range
1813+
</pre>
1814+
1815+
The '@media/video-height' media feature describes the height of the targeted display's video plane area of the output device.
1816+
For continuous media, this is the height of the viewport including the size of a rendered scroll bar (if any).
1817+
For paged media, this is the height of the page box.
1818+
1819+
<<length>>s are interpreted according to [[#units]].
1820+
1821+
'@media/video-height' is <a>false in the negative range</a>.
1822+
1823+
<h3 id="video-resolution">
1824+
Video Display Resolution: the 'video-resolution' feature</h3>
1825+
1826+
<pre class='descdef mq'>
1827+
Name: video-resolution
1828+
Value: <<resolution>> | infinite
1829+
For: @media
1830+
Type: range
1831+
</pre>
1832+
1833+
The '@media/video-resolution' media feature describes the resolution of the output
1834+
device's video plane, i.e. the density of the pixels, taking into account the <a spec=cssom-view>page zoom</a>
1835+
but assuming a <a spec=cssom-view>pinch zoom</a> of 1.0.
1836+
1837+
The 'video-resolution' media feature is <a>false in the negative range</a>
1838+
16981839
<!--
16991840
████ ██ ██ ████████ ████████ ████████ ███ ██████ ████████ ████ ███████ ██ ██
17001841
██ ███ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ███ ██

0 commit comments

Comments
 (0)