Skip to content

Commit 6fe409b

Browse files
committed
[mediaqueries] Reformat and fix markup. Zero text changes.
1 parent e4814ac commit 6fe409b

1 file changed

Lines changed: 37 additions & 20 deletions

File tree

mediaqueries/Overview.bs

Lines changed: 37 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1457,34 +1457,51 @@ color-gamut</h3>
14571457
Type: range
14581458
</pre>
14591459

1460-
The 'color-gamut' media feature describes the approximate range of colors that are
1461-
supported by the browser and display device. That is, if the browser receives content
1462-
with colors in the specified space it can cause the display to render the appropriate
1463-
color, or something appropriately close enough.
1464-
1465-
The query uses approximate ranges for a few reasons. Firstly, there are a lot of differences in
1466-
display hardware. For example, a device might claim to support "Rec 2020", but actually
1467-
renders a significantly lower range of the full gamut. Secondly, there are a lot of different
1468-
color ranges that different devices support, and enumerating them all would be tedious.
1469-
In most cases the author does not need to know the exact capabilities of the display, just
1470-
whether it is better than sRGB, or significantly better than sRGB. That way they can serve
1471-
appropriate images, tagged with color profiles, to the user.
1460+
The 'color-gamut' media feature describes the approximate range of colors
1461+
that are supported by the browser and display device.
1462+
That is, if the browser receives content with colors in the specified space
1463+
it can cause the display to render the appropriate color,
1464+
or something appropriately close enough.
1465+
1466+
Note: The query uses approximate ranges for a few reasons.
1467+
Firstly, there are a lot of differences in display hardware.
1468+
For example, a device might claim to support "Rec 2020",
1469+
but actually renders a significantly lower range of the full gamut.
1470+
Secondly, there are a lot of different color ranges that different devices support,
1471+
and enumerating them all would be tedious.
1472+
In most cases the author does not need to know the exact capabilities of the display,
1473+
just whether it is better than sRGB,
1474+
or significantly better than sRGB.
1475+
That way they can serve appropriate images,
1476+
tagged with color profiles,
1477+
to the user.
1478+
1479+
Values are defined as:
1480+
1481+
<dl dfn-type=value dfn-for="@media/color-gamut">
1482+
<dt><dfn>srgb</dfn>
1483+
<dd>
1484+
The value ''srgb'' represents a display that corresponds to the sRGB Color Space [[!SRGB]].
14721485

1473-
The value 'srgb' represents a display that corresponds to the sRGB Color Space [[!SRGB]].
1474-
It is expected that the vast majority of color displays will be able to return true
1475-
to a query of this type.
1486+
It is expected that the vast majority of color displays
1487+
will be able to return true to a query of this type.
14761488

1477-
The value 'p3' represents a display that can handle colors in approximately the gamut
1478-
specified by the DCI P3 Color Space.
1489+
<dt><dfn>p3</dfn>
1490+
<dd>
1491+
The value ''p3'' represents a display that can handle colors in approximately the gamut
1492+
specified by the DCI P3 Color Space.
14791493

1480-
The value 'rec2020' represents a display that can handle colors in approximately the gamut
1481-
specified by the ITU-R Recommendation BT.2020 Color Space.
1494+
<dt><dfn>rec2020</dfn>
1495+
<dd>
1496+
The value ''rec2020'' represents a display that can handle colors in approximately the gamut
1497+
specified by the ITU-R Recommendation BT.2020 Color Space.
1498+
</dl>
14821499

14831500
<div class="example">
14841501
For example, this media query applies when the display supports colors
14851502
in the range of DCI P3:
14861503

1487-
<pre>
1504+
<pre class="lang-css">
14881505
@media (color-gamut: p3) { … }
14891506
</pre>
14901507
</div>

0 commit comments

Comments
 (0)