Skip to content

Commit 20b6715

Browse files
committed
[css-color-5][editorial] fix bs indentation
1 parent 1577505 commit 20b6715

File tree

1 file changed

+74
-74
lines changed

1 file changed

+74
-74
lines changed

css-color-5/Overview.bs

Lines changed: 74 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -1559,84 +1559,84 @@ using either <<predefined-rgb-params>> or
15591559

15601560
The parameters have the following form:
15611561

1562-
* An <<ident>> or <<dashed-ident>> denoting the color space.
1563-
If this is an <<ident>> it denotes one of the
1564-
predefined color spaces
1565-
[[css-color-4#predefined]]
1566-
(such as ''display-p3'');
1567-
if it is a <<dashed-ident>> it denotes a custom
1568-
color space, defined by a ''@color-profile'' rule.
1569-
Individual predefined color spaces
1570-
may further restrict whether <<number>>s or <<percentage>>s
1571-
or both, may be used.
1572-
1573-
If the <<ident>> names a non-existent color space
1574-
(a name that does not match one of the
1575-
predefined color spaces),
1576-
or a predefined but unsupported color space,
1577-
this argument represents an <a>invalid color</a>.
1578-
1579-
If the <<dashed-ident>> names a non-existent color space
1580-
( a name that does not match an <a>color profile's</a> name,
1581-
or which matches but the corresponding profile has not loaded,
1582-
or does not represent a valid profile),
1583-
this argument represents an <a>invalid color</a>.
1584-
1585-
1586-
* One or more <<number>>s or <<percentage>>s providing the parameter values that the color space takes.
1587-
1588-
For custom color spaces,
1589-
specified component values
1590-
less than 0 or 0%, or greater than 1 or 100%
1591-
are not invalid;
1592-
they are clamped to the valid range at computed value time.
1593-
This is because ICC profiles typically do not accept
1594-
out of range input values.
1595-
1596-
For custom color spaces, if more <<number>>s or <<percentage>>s are provided than parameters that the color space takes,
1597-
the excess <<number>>s at the end are ignored.
1598-
The color is still a [=valid color=].
1599-
1600-
For custom color spaces, if more <<number>>s or <<percentage>>s are provided than components listed in the optional components descriptor,
1601-
the additional values at the end are still valid,
1602-
but cannot be used in Relative Color Syntax.
1603-
The color is still a [=valid color=].
1604-
1605-
For custom color spaces, if fewer <<number>>s or <<percentage>>s are provided than parameters that the color space takes,
1606-
the missing parameters default to ''0''.
1607-
(This is particularly convenient for multichannel printers
1608-
where the additional inks are spot colors or varnishes
1609-
that most colors on the page won't use.)
1610-
The color is still a [=valid color=].
1611-
1612-
For predefined color spaces,
1613-
specified component values
1614-
less than 0 or 0%, or greater than 1 or 100%
1615-
are not invalid;
1616-
these out of gamut colors
1617-
are gamut mapped to the valid range at computed value time,
1618-
with a relative colorimetric intent.
1562+
* An <<ident>> or <<dashed-ident>> denoting the color space.
1563+
If this is an <<ident>> it denotes one of the
1564+
predefined color spaces
1565+
[[css-color-4#predefined]]
1566+
(such as ''display-p3'');
1567+
if it is a <<dashed-ident>> it denotes a custom
1568+
color space, defined by a ''@color-profile'' rule.
1569+
Individual predefined color spaces
1570+
may further restrict whether <<number>>s or <<percentage>>s
1571+
or both, may be used.
1572+
1573+
If the <<ident>> names a non-existent color space
1574+
(a name that does not match one of the
1575+
predefined color spaces),
1576+
or a predefined but unsupported color space,
1577+
this argument represents an <a>invalid color</a>.
1578+
1579+
If the <<dashed-ident>> names a non-existent color space
1580+
( a name that does not match an <a>color profile's</a> name,
1581+
or which matches but the corresponding profile has not loaded,
1582+
or does not represent a valid profile),
1583+
this argument represents an <a>invalid color</a>.
1584+
1585+
1586+
* One or more <<number>>s or <<percentage>>s providing the parameter values that the color space takes.
1587+
1588+
For custom color spaces,
1589+
specified component values
1590+
less than 0 or 0%, or greater than 1 or 100%
1591+
are not invalid;
1592+
they are clamped to the valid range at computed value time.
1593+
This is because ICC profiles typically do not accept
1594+
out of range input values.
1595+
1596+
For custom color spaces, if more <<number>>s or <<percentage>>s are provided than parameters that the color space takes,
1597+
the excess <<number>>s at the end are ignored.
1598+
The color is still a [=valid color=].
1599+
1600+
For custom color spaces, if more <<number>>s or <<percentage>>s are provided than components listed in the optional components descriptor,
1601+
the additional values at the end are still valid,
1602+
but cannot be used in Relative Color Syntax.
1603+
The color is still a [=valid color=].
1604+
1605+
For custom color spaces, if fewer <<number>>s or <<percentage>>s are provided than parameters that the color space takes,
1606+
the missing parameters default to ''0''.
1607+
(This is particularly convenient for multichannel printers
1608+
where the additional inks are spot colors or varnishes
1609+
that most colors on the page won't use.)
1610+
The color is still a [=valid color=].
1611+
1612+
For predefined color spaces,
1613+
specified component values
1614+
less than 0 or 0%, or greater than 1 or 100%
1615+
are not invalid;
1616+
these out of gamut colors
1617+
are gamut mapped to the valid range at computed value time,
1618+
with a relative colorimetric intent.
1619+
1620+
* An optional slash-separated <<alpha-value>>.If omitted, it defaults to ''100%''.
16191621

1620-
* An optional slash-separated <<alpha-value>>.If omitted, it defaults to ''100%''.
1621-
1622-
<wpt>
1623-
parsing/color-computed-relative-color.html
1624-
</wpt>
1622+
<wpt>
1623+
parsing/color-computed-relative-color.html
1624+
</wpt>
16251625

1626-
<div class="example" id="ex-RCS-XYZ">
1627-
For example, Relative Color Syntax in the CIE XYZ D65 colorspace
1628-
is used to generate a color which has
1629-
the same chromaticity but exactly half the luminance
1630-
of the base color:
1626+
<div class="example" id="ex-RCS-XYZ">
1627+
For example, Relative Color Syntax in the CIE XYZ D65 colorspace
1628+
is used to generate a color which has
1629+
the same chromaticity but exactly half the luminance
1630+
of the base color:
16311631

1632-
<pre class="lang-css">
1633-
--base: <span class="swatch" style="--color: rgb(73.58% 48.92% 10.45%)"></span> color(display-p3 0.7 0.5 0.1);
1634-
--dark: <span class="swatch" style="--color: rgb(53.617% 35.186% 6.4237%)"></span> color(from var(--base) xyz-d65 calc(x/2) calc(y/2) calc(z/2));
1635-
</pre>
1632+
<pre class="lang-css">
1633+
--base: <span class="swatch" style="--color: rgb(73.58% 48.92% 10.45%)"></span> color(display-p3 0.7 0.5 0.1);
1634+
--dark: <span class="swatch" style="--color: rgb(53.617% 35.186% 6.4237%)"></span> color(from var(--base) xyz-d65 calc(x/2) calc(y/2) calc(z/2));
1635+
</pre>
16361636

1637-
The origin color is color(xyz-d65 0.281 0.253 0.044)
1638-
and so the relative color is color(xyz-d65 0.14 0.126 0.022).
1639-
</div>
1637+
The origin color is color(xyz-d65 0.281 0.253 0.044)
1638+
and so the relative color is color(xyz-d65 0.14 0.126 0.022).
1639+
</div>
16401640

16411641
<h3 id="custom-color">
16421642
Custom Color Spaces

0 commit comments

Comments
 (0)