You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: files/en-us/web/css/reference/values/basic-shape/index.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -88,7 +88,7 @@ The parameters common across the syntax of some basic shape functions include:
88
88
89
89
The `<basic-shape-rect>` type, a subset of the `<basic-shape>` type, represents the basic-shape functions limited to creating rectangles, including {{cssxref("basic-shape/inset","inset()")}}, {{cssxref("basic-shape/rect","rect()")}}, and {{cssxref("basic-shape/xywh","xywh()")}}.
90
90
91
-
The [`polygon()`](/en-US/docs/Web/CSS/Reference/Values/basic-shape/polygon), [`path()`](/en-US/docs/Web/CSS/Reference/Values/basic-shape/path), and {{cssxref("shape()")}} functions can also be used to create rectangles, but are not limited to only four-sided, right-angled shapes.
91
+
The {{cssxref("polygon()")}}, {{cssxref("path()")}}, and {{cssxref("shape()")}} functions can also be used to create rectangles, but are not limited to only four-sided, right-angled shapes.
Copy file name to clipboardExpand all lines: files/en-us/web/css/reference/values/calc-size/index.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,9 +10,9 @@ sidebar: cssref
10
10
11
11
{{seecompattable}}
12
12
13
-
The **`calc-size()`**[CSS](/en-US/docs/Web/CSS)[function](/en-US/docs/Web/CSS/Reference/Values/Functions) allows you to perform calculations on [intrinsic size](/en-US/docs/Glossary/Intrinsic_Size) values such as `auto`, {{cssxref("fit-content")}}, and {{cssxref("max-content")}}; this is not supported by the regular {{cssxref("calc()")}} function.
13
+
The **`calc-size()`**[CSS](/en-US/docs/Web/CSS)[function](/en-US/docs/Web/CSS/Reference/Values/Functions) allows you to perform calculations on {{glossary("intrinsic size")}} values such as `auto`, {{cssxref("fit-content")}}, and {{cssxref("max-content")}}; this is not supported by the regular {{cssxref("calc()")}} function.
14
14
15
-
`calc-size()` return values can also be [interpolated](/en-US/docs/Glossary/Interpolation), enabling size keyword values to be used in [animations](/en-US/docs/Web/CSS/Guides/Animations) and [transitions](/en-US/docs/Web/CSS/Guides/Transitions). In effect, including `calc-size()` in a property value automatically applies [`interpolate-size: allow-keywords`](/en-US/docs/Web/CSS/Reference/Properties/interpolate-size) to the selection.
15
+
`calc-size()` return values can also be {{glossary("interpolated")}}, enabling size keyword values to be used in [animations](/en-US/docs/Web/CSS/Guides/Animations) and [transitions](/en-US/docs/Web/CSS/Guides/Transitions). In effect, including `calc-size()` in a property value automatically applies [`interpolate-size: allow-keywords`](/en-US/docs/Web/CSS/Reference/Properties/interpolate-size) to the selection.
16
16
17
17
Note however that `interpolate-size` is inherited, therefore applying it to an element enables interpolation of intrinsic size keywords for every property applied to that element and its children. As a result, `interpolate-size` is the preferred solution for enabling intrinsic size animations. You should only use `calc-size()` to enable intrinsic size animations if they also require calculations.
Copy file name to clipboardExpand all lines: files/en-us/web/css/reference/values/calc/index.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -119,7 +119,7 @@ For a full explanation of typed arithmetic in CSS, along with examples, see [Usi
119
119
120
120
### Support for computing color channels in relative colors
121
121
122
-
The `calc()` function can be used to manipulate color channels directly within the context of [relative colors](/en-US/docs/Web/CSS/Guides/Colors/Using_relative_colors). This allows for dynamic adjustments of color channels in color models such as {{cssxref("rgb()")}}, {{cssxref("hsl()")}}, and [`lch()`](/en-US/docs/Web/CSS/Reference/Values/color_value/lch).
122
+
The `calc()` function can be used to manipulate color channels directly within the context of [relative colors](/en-US/docs/Web/CSS/Guides/Colors/Using_relative_colors). This allows for dynamic adjustments of color channels in color models such as {{cssxref("rgb()")}}, {{cssxref("hsl()")}}, and {{cssxref("lch()")}}.
123
123
124
124
The relative color syntax defines several color-channel keywords, each of which represents the value of the color channel as a {{cssxref("<number>")}} (see [Channel values resolve to `<number>` values](/en-US/docs/Web/CSS/Guides/Colors/Using_relative_colors#channel_values_resolve_to_number_values) for more information). The `calc()` function can use these color-channel keywords to perform dynamic adjustments on the color channels, for example, `calc(r + 10)`.
The **`<color-interpolation-method>`**[CSS](/en-US/docs/Web/CSS)[data type](/en-US/docs/Web/CSS/Reference/Values/Data_types) represents the [color space](/en-US/docs/Glossary/Color_space) used for interpolation between {{CSSXref("<color>")}} values. It can be used to override the default interpolation color space for color-related functional notations such as {{CSSXref("color_value/color-mix", "color-mix()")}} and {{cssxref("linear-gradient()")}}.
10
+
The **`<color-interpolation-method>`**[CSS](/en-US/docs/Web/CSS)[data type](/en-US/docs/Web/CSS/Reference/Values/Data_types) represents the {{glossary("color space")}} used for interpolation between {{CSSXref("<color>")}} values. It can be used to override the default interpolation color space for color-related functional notations such as {{CSSXref("color_value/color-mix", "color-mix()")}} and {{cssxref("linear-gradient()")}}.
11
11
12
12
When interpolating `<color>` values, the interpolation color space defaults to Oklab.
Copy file name to clipboardExpand all lines: files/en-us/web/css/reference/values/dashed-function/index.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,7 +38,7 @@ The markup features a {{htmlelement("p")}} containing some text content:
38
38
39
39
#### CSS
40
40
41
-
In our styles, we first define the CSS custom function. The function is called `--transparent` and accepts two parameters: a color and a numeric alpha channel value. Inside the function body, we use [relative color syntax](/en-US/docs/Web/CSS/Guides/Colors/Using_relative_colors) to transform the passed color into an [`oklch()`](/en-US/docs/Web/CSS/Reference/Values/color_value/oklch) color with an alpha channel equal to the passed alpha value; this becomes the function's `result`:
41
+
In our styles, we first define the CSS custom function. The function is called `--transparent` and accepts two parameters: a color and a numeric alpha channel value. Inside the function body, we use [relative color syntax](/en-US/docs/Web/CSS/Guides/Colors/Using_relative_colors) to transform the passed color into an {{cssxref("oklch()")}} color with an alpha channel equal to the passed alpha value; this becomes the function's `result`:
Copy file name to clipboardExpand all lines: files/en-us/web/css/reference/values/hue/index.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ sidebar: cssref
12
12
---
13
13
14
14
The **`<hue>`**[CSS](/en-US/docs/Web/CSS)[data type](/en-US/docs/Web/CSS/Reference/Values/Data_types) represents the hue angle of a color.
15
-
It is used in the color functions that accept hue expressed as a single value, specifically {{cssxref("hsl()")}}, [`hwb()`](/en-US/docs/Web/CSS/Reference/Values/color_value/hwb), [`lch()`](/en-US/docs/Web/CSS/Reference/Values/color_value/lch), and [`oklch()`](/en-US/docs/Web/CSS/Reference/Values/color_value/oklch) functional notations.
15
+
It is used in the color functions that accept hue expressed as a single value, specifically {{cssxref("hsl()")}}, {{cssxref("hwb()")}}, {{cssxref("lch()")}}, and {{cssxref("oklch()")}} functional notations.
Copy file name to clipboardExpand all lines: files/en-us/web/css/reference/values/revert-layer/index.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ sidebar: cssref
8
8
9
9
The **`revert-layer`**[CSS-wide keyword](/en-US/docs/Web/CSS/Reference/Values/Data_types#css-wide_keywords) rolls back the value of a property in a {{cssxref("@layer", "cascade layer")}} to the value of the property in a CSS rule matching the element in a previous cascade layer. The value of a property with this keyword is recalculated as if no rules were specified on the target element in the current cascade layer.
10
10
11
-
If there is no other cascade layer to revert to for the matching CSS rule, the property value rolls back to the [computed value](/en-US/docs/Web/CSS/Guides/Cascade/Property_value_processing#computed_value) derived from the current layer. Furthermore, if there is no matching CSS rule in the current layer, the property value for the element rolls back to the style defined in a previous [style origin](/en-US/docs/Glossary/Style_origin).
11
+
If there is no other cascade layer to revert to for the matching CSS rule, the property value rolls back to the [computed value](/en-US/docs/Web/CSS/Guides/Cascade/Property_value_processing#computed_value) derived from the current layer. Furthermore, if there is no matching CSS rule in the current layer, the property value for the element rolls back to the style defined in a previous {{glossary("style origin")}}.
12
12
13
13
This keyword can be applied to any CSS property, including the CSS shorthand property {{cssxref("all")}}.
0 commit comments