Skip to content

Commit 4883a1b

Browse files
committed
CSS properties: convert links to macros (part 1) (#41969)
Properties part 1: convert links to macros
1 parent d5f6c07 commit 4883a1b

File tree

31 files changed

+99
-99
lines changed

31 files changed

+99
-99
lines changed

files/en-us/web/css/reference/properties/-webkit-mask-box-image/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ The non-standard prefixed **`-webkit-mask-box-image`** [shorthand](/en-US/docs/W
1919

2020
This property is a shorthand for the following CSS properties:
2121

22-
- [`-webkit-mask-box-image-source`](/en-US/docs/Web/CSS/Reference/Properties/mask-border-source)
23-
- [`-webkit-mask-box-image-outset`](/en-US/docs/Web/CSS/Reference/Properties/mask-border-outset)
24-
- [`-webkit-mask-box-image-repeat`](/en-US/docs/Web/CSS/Reference/Properties/mask-border-repeat)
22+
- {{cssxref("-webkit-mask-box-image-source")}}
23+
- {{cssxref("-webkit-mask-box-image-outset")}}
24+
- {{cssxref("-webkit-mask-box-image-repeat")}}
2525

2626
The values includes the `<image>` to be used as the mask border, and optionally four border outset values and up to two border repeat styles.
2727

files/en-us/web/css/reference/properties/-webkit-text-stroke/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ The **`-webkit-text-stroke`** [CSS](/en-US/docs/Web/CSS) property specifies the
1212

1313
This property is a shorthand for the following CSS properties:
1414

15-
- [`-webkit-text-stroke-color`](/en-US/docs/Web/CSS/Reference/Properties/-webkit-text-stroke-color)
16-
- [`-webkit-text-stroke-width`](/en-US/docs/Web/CSS/Reference/Properties/-webkit-text-stroke-width)
15+
- {{cssxref("-webkit-text-stroke-color")}}
16+
- {{cssxref("-webkit-text-stroke-width")}}
1717

1818
## Syntax
1919

files/en-us/web/css/reference/properties/all/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ The `all` property is specified as one of the CSS global keyword values. Note th
9494
- If the rule belongs to the [user origin](/en-US/docs/Web/CSS/Guides/Cascade/Introduction#user_stylesheets), the `revert` value rolls back the [cascade](/en-US/docs/Web/CSS/Guides/Cascade/Introduction) to the user-agent level, so that the [specified values](/en-US/docs/Web/CSS/Guides/Cascade/Property_value_processing#specified_value) are calculated as if no author-level or user-level rules were specified for the element.
9595
- If the rule belongs to the [user-agent origin](/en-US/docs/Web/CSS/Guides/Cascade/Introduction#user-agent_stylesheets), the `revert` value acts like `unset`.
9696
- {{cssxref("revert-layer")}}
97-
- : Specifies that all the element's properties should roll back the cascade to a previous [cascade layer](/en-US/docs/Web/CSS/Reference/At-rules/@layer), if one exists. If no other cascade layer exists, the element's properties will roll back to the matching rule, if one exists, in the current layer or to a previous [style origin](/en-US/docs/Glossary/Style_origin).
97+
- : Specifies that all the element's properties should roll back the cascade to a previous {{cssxref("@layer", "cascade layer")}}, if one exists. If no other cascade layer exists, the element's properties will roll back to the matching rule, if one exists, in the current layer or to a previous {{glossary("style origin")}}.
9898

9999
## Formal definition
100100

files/en-us/web/css/reference/properties/animation-duration/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,8 @@ animation-duration: unset;
113113
- {{cssxref("&lt;time&gt;")}}
114114
- : The time that an animation takes to complete one cycle. This may be specified in either seconds (`s`) or milliseconds (`ms`). The value must be positive or zero and the unit is required.
115115

116-
If no value is provided, the default value of `0s` is used, in which case the animation still executes (the [`animationStart`](/en-US/docs/Web/API/Element/animationstart_event) and [`animationEnd`](/en-US/docs/Web/API/Element/animationend_event) events are fired). Whether or not the animation will be visible when the duration is `0s` will depend on the value of [`animation-fill-mode`](/en-US/docs/Web/CSS/Reference/Properties/animation-fill-mode), as explained below:
117-
- If `animation-fill-mode` is set to `backwards` or `both`, the first frame of the animation as defined by `animation-direction` will be displayed during [`animation-delay`](/en-US/docs/Web/CSS/Reference/Properties/animation-delay) countdown.
116+
If no value is provided, the default value of `0s` is used, in which case the animation still executes (the [`animationStart`](/en-US/docs/Web/API/Element/animationstart_event) and [`animationEnd`](/en-US/docs/Web/API/Element/animationend_event) events are fired). Whether or not the animation will be visible when the duration is `0s` will depend on the value of {{cssxref("animation-fill-mode")}}, as explained below:
117+
- If `animation-fill-mode` is set to `backwards` or `both`, the first frame of the animation as defined by `animation-direction` will be displayed during {{cssxref("animation-delay")}} countdown.
118118
- If `animation-fill-mode` is set to `forwards` or `both`, the last frame of the animation will be displayed, as defined by `animation-direction`, after the `animation-delay` expires.
119119
- If `animation-fill-mode` is set to `none`, the animation will have no visible effect.
120120

files/en-us/web/css/reference/properties/animation-fill-mode/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ animation-fill-mode: unset;
149149
| `alternate-reverse` | even | `100%` or `to` |
150150
| `alternate-reverse` | odd | `0%` or `from` |
151151

152-
Animated properties behave as if included in a set [`will-change`](/en-US/docs/Web/CSS/Reference/Properties/will-change) property value. If a new stacking context was created during the animation, the target element retains the stacking context after the animation has finished.
152+
Animated properties behave as if included in a set {{cssxref("will-change")}} property value. If a new stacking context was created during the animation, the target element retains the stacking context after the animation has finished.
153153

154154
- `backwards`
155155
- : The animation will apply the values defined in the first relevant [keyframe](/en-US/docs/Web/CSS/Reference/At-rules/@keyframes) as soon as it is applied to the target, and retain this during the {{cssxref("animation-delay")}} period. The first relevant keyframe depends on the value of {{cssxref("animation-direction")}}:

files/en-us/web/css/reference/properties/animation-range-end/index.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ sidebar: cssref
88

99
The **`animation-range-end`** [CSS](/en-US/docs/Web/CSS) property is used to set the end of an animation's attachment range along its timeline, i.e., where along the timeline an animation will end.
1010

11-
The `animation-range-end` and {{cssxref("animation-range-start")}} properties can also be set using the [`animation-range`](/en-US/docs/Web/CSS/Reference/Properties/animation-range) shorthand property.
11+
The `animation-range-end` and {{cssxref("animation-range-start")}} properties can also be set using the {{cssxref("animation-range")}} shorthand property.
1212

1313
> [!NOTE]
1414
> `animation-range-end` is included in the {{cssxref("animation")}} shorthand as a reset-only value. This means that including `animation` resets a previously-declared `animation-range-end` value to `normal`, but a specific value cannot be set via `animation`. When creating [CSS scroll-driven animations](/en-US/docs/Web/CSS/Guides/Scroll-driven_animations), you need to declare `animation-range-end` after declaring any `animation` shorthand for it to take effect.
@@ -30,7 +30,7 @@ animation-range-end: contain 700px;
3030

3131
### Values
3232

33-
Allowed values for `animation-range-end` are `normal`, a {{cssxref("length-percentage")}}, a `<timeline-range-name>`, or a `<timeline-range-name>` with a `<length-percentage>` following it. See [`animation-range`](/en-US/docs/Web/CSS/Reference/Properties/animation-range) for a detailed description of the available values.
33+
Allowed values for `animation-range-end` are `normal`, a {{cssxref("length-percentage")}}, a `<timeline-range-name>`, or a `<timeline-range-name>` with a `<length-percentage>` following it. See {{cssxref("animation-range")}} for a detailed description of the available values.
3434

3535
Also check out the [View Timeline Ranges Visualizer](https://scroll-driven-animations.style/tools/view-timeline/ranges/), which shows exactly what the different values mean in an easy visual format.
3636

@@ -167,10 +167,10 @@ Scroll to see the subject element being animated.
167167

168168
## See also
169169

170-
- [`animation-timeline`](/en-US/docs/Web/CSS/Reference/Properties/animation-timeline)
171-
- [`animation-range`](/en-US/docs/Web/CSS/Reference/Properties/animation-range), [`animation-range-start`](/en-US/docs/Web/CSS/Reference/Properties/animation-range-start)
172-
- [`scroll-timeline`](/en-US/docs/Web/CSS/Reference/Properties/scroll-timeline), [`scroll-timeline-axis`](/en-US/docs/Web/CSS/Reference/Properties/scroll-timeline-axis), [`scroll-timeline-name`](/en-US/docs/Web/CSS/Reference/Properties/scroll-timeline-name)
170+
- {{cssxref("animation-timeline")}}
171+
- {{cssxref("animation-range")}}, {{cssxref("animation-range-start")}}
172+
- {{cssxref("scroll-timeline")}}, {{cssxref("scroll-timeline-axis")}}, {{cssxref("scroll-timeline-name")}}
173173
- {{cssxref("timeline-scope")}}
174-
- [`view-timeline-inset`](/en-US/docs/Web/CSS/Reference/Properties/view-timeline-inset)
174+
- {{cssxref("view-timeline-inset")}}
175175
- The JavaScript equivalent: The `rangeEnd` property available in {{domxref("Element.animate()")}} calls
176176
- [CSS scroll-driven animations](/en-US/docs/Web/CSS/Guides/Scroll-driven_animations)

files/en-us/web/css/reference/properties/animation-range-start/index.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ sidebar: cssref
88

99
The **`animation-range-start`** [CSS](/en-US/docs/Web/CSS) property is used to set the start of an animation's attachment range along its timeline, i.e., where along the timeline an animation will start.
1010

11-
The `animation-range-start` and {{cssxref("animation-range-end")}} properties can also be set using the [`animation-range`](/en-US/docs/Web/CSS/Reference/Properties/animation-range) shorthand property.
11+
The `animation-range-start` and {{cssxref("animation-range-end")}} properties can also be set using the {{cssxref("animation-range")}} shorthand property.
1212

1313
> [!NOTE]
1414
> `animation-range-start` is included in the {{cssxref("animation")}} shorthand as a reset-only value. This means that including `animation` resets a previously-declared `animation-range-start` value to `normal`, but a specific value cannot be set via `animation`. When creating [CSS scroll-driven animations](/en-US/docs/Web/CSS/Guides/Scroll-driven_animations), you need to declare `animation-range-start` after declaring any `animation` shorthand for it to take effect.
@@ -30,7 +30,7 @@ animation-range-start: contain 100px;
3030

3131
### Values
3232

33-
Allowed values for `animation-range-start` are `normal`, a {{cssxref("length-percentage")}}, a `<timeline-range-name>`, or a `<timeline-range-name>` with a `<length-percentage>` following it. See [`animation-range`](/en-US/docs/Web/CSS/Reference/Properties/animation-range) for a detailed description of the available values.
33+
Allowed values for `animation-range-start` are `normal`, a {{cssxref("length-percentage")}}, a `<timeline-range-name>`, or a `<timeline-range-name>` with a `<length-percentage>` following it. See {{cssxref("animation-range")}} for a detailed description of the available values.
3434

3535
Also check out the [View Timeline Ranges Visualizer](https://scroll-driven-animations.style/tools/view-timeline/ranges/), which shows exactly what the different values mean in an easy visual format.
3636

@@ -167,10 +167,10 @@ Scroll to see the subject element being animated.
167167

168168
## See also
169169

170-
- [`animation-timeline`](/en-US/docs/Web/CSS/Reference/Properties/animation-timeline)
171-
- [`animation-range`](/en-US/docs/Web/CSS/Reference/Properties/animation-range), [`animation-range-end`](/en-US/docs/Web/CSS/Reference/Properties/animation-range-end)
172-
- [`scroll-timeline`](/en-US/docs/Web/CSS/Reference/Properties/scroll-timeline), [`scroll-timeline-axis`](/en-US/docs/Web/CSS/Reference/Properties/scroll-timeline-axis), [`scroll-timeline-name`](/en-US/docs/Web/CSS/Reference/Properties/scroll-timeline-name)
170+
- {{cssxref("animation-timeline")}}
171+
- {{cssxref("animation-range")}}, {{cssxref("animation-range-end")}}
172+
- {{cssxref("scroll-timeline")}}, {{cssxref("scroll-timeline-axis")}}, {{cssxref("scroll-timeline-name")}}
173173
- {{cssxref("timeline-scope")}}
174-
- [`view-timeline-inset`](/en-US/docs/Web/CSS/Reference/Properties/view-timeline-inset)
174+
- {{cssxref("view-timeline-inset")}}
175175
- The JavaScript equivalent: The `rangeStart` property available in {{domxref("Element.animate()")}} calls
176176
- [CSS scroll-driven animations](/en-US/docs/Web/CSS/Guides/Scroll-driven_animations)

files/en-us/web/css/reference/properties/animation-range/index.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ The **`animation-range`** [CSS](/en-US/docs/Web/CSS) [shorthand property](/en-US
1212

1313
This property is a shorthand for the following CSS properties:
1414

15-
- [`animation-range-start`](/en-US/docs/Web/CSS/Reference/Properties/animation-range-start)
16-
- [`animation-range-end`](/en-US/docs/Web/CSS/Reference/Properties/animation-range-end)
15+
- {{cssxref("animation-range-start")}}
16+
- {{cssxref("animation-range-end")}}
1717

1818
## Syntax
1919

@@ -50,7 +50,7 @@ As shown by the comments in the syntax block above, if only a single value is pr
5050

5151
### Values
5252

53-
One or two values representing the [`animation-range-start`](/en-US/docs/Web/CSS/Reference/Properties/animation-range-start) and/or [`animation-range-end`](/en-US/docs/Web/CSS/Reference/Properties/animation-range-end). These values can be one of the following:
53+
One or two values representing the {{cssxref("animation-range-start")}} and/or {{cssxref("animation-range-end")}}. These values can be one of the following:
5454

5555
- `normal`
5656
- : Represents the start of the timeline in the case of `animation-range-start` and the end of the timeline in the case of `animation-range-end`. This is the default value.
@@ -221,9 +221,9 @@ Scroll to see the subject element being animated.
221221

222222
## See also
223223

224-
- [`animation-timeline`](/en-US/docs/Web/CSS/Reference/Properties/animation-timeline)
225-
- [`animation-range-end`](/en-US/docs/Web/CSS/Reference/Properties/animation-range-end), [`animation-range-start`](/en-US/docs/Web/CSS/Reference/Properties/animation-range-start)
226-
- [`scroll-timeline`](/en-US/docs/Web/CSS/Reference/Properties/scroll-timeline), [`scroll-timeline-axis`](/en-US/docs/Web/CSS/Reference/Properties/scroll-timeline-axis), [`scroll-timeline-name`](/en-US/docs/Web/CSS/Reference/Properties/scroll-timeline-name)
224+
- {{cssxref("animation-timeline")}}
225+
- {{cssxref("animation-range-end")}}, {{cssxref("animation-range-start")}}
226+
- {{cssxref("scroll-timeline")}}, {{cssxref("scroll-timeline-axis")}}, {{cssxref("scroll-timeline-name")}}
227227
- {{cssxref("timeline-scope")}}
228-
- [`view-timeline-inset`](/en-US/docs/Web/CSS/Reference/Properties/view-timeline-inset)
228+
- {{cssxref("view-timeline-inset")}}
229229
- [CSS scroll-driven animations](/en-US/docs/Web/CSS/Guides/Scroll-driven_animations)

files/en-us/web/css/reference/properties/animation-timeline/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ animation-timeline: unset;
7777
> If two or more timelines share the same name, the last declared within the cascade will be used. Also, if no timeline is found that matches the given name, the animation is not associated with a timeline.
7878

7979
> [!NOTE]
80-
> The [`<dashed-ident>`](/en-US/docs/Web/CSS/Reference/Values/dashed-ident) values must start with `--`. This helps avoid name clashes with standard CSS keywords.
80+
> The {{cssxref("&lt;dashed-ident&gt;")}} values must start with `--`. This helps avoid name clashes with standard CSS keywords.
8181

8282
## Formal definition
8383

files/en-us/web/css/reference/properties/animation-timeline/scroll/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,4 +151,4 @@ Scroll to see the square element being animated.
151151

152152
- [CSS scroll-driven animations](/en-US/docs/Web/CSS/Guides/Scroll-driven_animations)
153153
- [Using CSS animations](/en-US/docs/Web/CSS/Guides/Animations/Using)
154-
- [`animation-timeline`](/en-US/docs/Web/CSS/Reference/Properties/animation-timeline)
154+
- {{cssxref("animation-timeline")}}

0 commit comments

Comments
 (0)