Skip to content

Commit f82a776

Browse files
committed
CSS guides: change css links to macros (#41922)
* CSS guides: change css links to macros * svg macros * error checking * example height * example height
1 parent 2b0fbe8 commit f82a776

File tree

51 files changed

+141
-142
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+141
-142
lines changed

files/en-us/web/css/guides/anchor_positioning/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ The CSS anchor positioning module also introduces the `anchor-scope` property. C
4242
- [`anchor-center`](/en-US/docs/Web/CSS/Guides/Anchor_positioning/Using#centering_on_the_anchor_using_anchor-center)
4343
- [`<anchor-side>`](/en-US/docs/Web/CSS/Reference/Values/anchor#anchor-side)
4444
- [`<anchor-size>`](/en-US/docs/Web/CSS/Reference/Values/anchor-size#anchor-size)
45-
- [`<position-area>`](/en-US/docs/Web/CSS/Reference/Values/position-area_value)
45+
- {{cssxref("&lt;position-area&gt;")}}
4646
- [`<try-size>`](/en-US/docs/Web/CSS/Reference/Properties/position-try-order#try-size)
4747
- [`<try-tactic>`](/en-US/docs/Web/CSS/Reference/Properties/position-try-fallbacks#try-tactic)
4848

@@ -86,7 +86,7 @@ The CSS anchor positioning module also introduces the `anchor-scope` property. C
8686
- {{cssxref("margin-inline")}}
8787
- {{cssxref("margin-inline-end")}}
8888
- {{cssxref("margin-inline-start")}}
89-
- [Inset properties](/en-US/docs/Glossary/Inset_properties) glossary term
89+
- {{glossary("Inset properties")}} glossary term
9090
- [CSS positioned layout](/en-US/docs/Web/CSS/Guides/Positioned_layout) module:
9191
- {{cssxref("top")}}
9292
- {{cssxref("left")}}

files/en-us/web/css/guides/anchor_positioning/try_options_hiding/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ The `--try-fallback-name` is a developer-defined name for the position try fallb
264264
The `descriptor-list` defines the property values for that individual custom try fallback option, including how the positioned element should be placed and sized, and any margins. The limited list of property descriptors allowed includes:
265265

266266
- {{cssxref("position-area")}}
267-
- [Inset properties](/en-US/docs/Glossary/Inset_properties)
267+
- {{glossary("Inset properties")}}
268268
- Margin properties (e.g., {{cssxref("margin-left")}}, {{cssxref("margin-block-start")}})
269269
- [self-alignment](/en-US/docs/Web/CSS/Guides/Anchor_positioning/Using#centering_on_the_anchor_using_anchor-center) properties
270270
- Sizing properties ({{cssxref("width")}}, {{cssxref("block-size")}}, etc.)

files/en-us/web/css/guides/anchor_positioning/using/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ anchor(<anchor-name> <anchor-side>, <fallback>)
142142
```
143143

144144
- `<anchor-name>`
145-
- : The [`anchor-name`](/en-US/docs/Web/CSS/Reference/Properties/anchor-name) property value of the anchor element you want to position the element's side relative to. This is a `<dashed-ident>` value. If omitted, the element's **default anchor** is used. This is the anchor referenced in its [`position-anchor`](/en-US/docs/Web/CSS/Reference/Properties/position-anchor) property, or associated with the element via the non-standard [`anchor`](/en-US/docs/Web/HTML/Reference/Global_attributes/anchor) HTML attribute.
145+
- : The {{cssxref("anchor-name")}} property value of the anchor element you want to position the element's side relative to. This is a `<dashed-ident>` value. If omitted, the element's **default anchor** is used. This is the anchor referenced in its {{cssxref("position-anchor")}} property, or associated with the element via the non-standard [`anchor`](/en-US/docs/Web/HTML/Reference/Global_attributes/anchor) HTML attribute.
146146
> [!NOTE]
147147
> Specifying an `<anchor-name>` positions the element relative to that anchor, but does not provide element association. While you can position an element's sides relative to multiple anchors by specifying [different `<anchor-name>` values](/en-US/docs/Web/CSS/Reference/Values/anchor#positioning_an_element_relative_to_multiple_anchors) inside different `anchor()` functions on the same element, the positioned element is only associated with a single anchor.
148148
@@ -306,7 +306,7 @@ If you only specify one value, the effect is different depending on which value
306306
- A value of `center` acts as if both values are set to `center` (so, `center center`).
307307

308308
> [!NOTE]
309-
> See the [`<position-area>`](/en-US/docs/Web/CSS/Reference/Values/position-area_value) value reference page for a detailed description of all the available values. Mixing a logical value with a physical value will invalidate the declaration.
309+
> See the {{cssxref("&lt;position-area&gt;")}} value reference page for a detailed description of all the available values. Mixing a logical value with a physical value will invalidate the declaration.
310310
311311
Let's demonstrate some of these values; this example uses the same HTML and base CSS styes as the previous example, except that we've included a {{htmlelement("select")}} element to enable changing the positioned element's `position-area` value.
312312

@@ -553,7 +553,7 @@ anchor-size(<anchor-name> <anchor-size>, <length-percentage>)
553553
```
554554

555555
- `<anchor-name>`
556-
- : The `<dashed-ident>` name set as the value of the [`anchor-name`](/en-US/docs/Web/CSS/Reference/Properties/anchor-name) property of the anchor element you want to size the element relative to. If omitted, the element's **default anchor**, which is the anchor referenced in the [`position-anchor`](/en-US/docs/Web/CSS/Reference/Properties/position-anchor) property, is used.
556+
- : The `<dashed-ident>` name set as the value of the {{cssxref("anchor-name")}} property of the anchor element you want to size the element relative to. If omitted, the element's **default anchor**, which is the anchor referenced in the {{cssxref("position-anchor")}} property, is used.
557557
- [`<anchor-size>`](/en-US/docs/Web/CSS/Reference/Values/anchor-size#anchor-size)
558558
- : Specifies the dimension of the anchor element that the positioned element will be sized relative to. This can be expressed using physical (`width` or `height`) or logical (`inline`, `block`, `self-inline`, or `self-block`) values.
559559
- {{cssxref("length-percentage")}}

files/en-us/web/css/guides/animations/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ All animations, even those with 0 seconds duration, throw animation events.
280280
## Related concepts
281281

282282
- {{cssxref("will-change")}} CSS property
283-
- [`<easing-function>`](/en-US/docs/Web/CSS/Reference/Values/easing-function) data type
283+
- {{cssxref("&lt;easing-function&gt;")}} data type
284284
- [`prefers-reduced-motion`](/en-US/docs/Web/CSS/Reference/At-rules/@media/prefers-reduced-motion) media query
285285
- {{glossary("Bezier curve")}} glossary term
286286

files/en-us/web/css/guides/animations/using/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ The sub-properties of the {{cssxref("animation")}} property are:
3131
- {{cssxref("animation-fill-mode")}}
3232
- : Specifies how an animation applies styles to its target before and after it runs.
3333
> [!NOTE]
34-
> In the case of animation [forwards](/en-US/docs/Web/CSS/Reference/Properties/animation-fill-mode#forwards) fill mode, 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.
34+
> In the case of animation [forwards](/en-US/docs/Web/CSS/Reference/Properties/animation-fill-mode#forwards) fill mode, 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.
3535
- {{cssxref("animation-iteration-count")}}
3636
- : Specifies the number of times an animation should repeat.
3737
- {{cssxref("animation-name")}}
@@ -399,7 +399,7 @@ And here's the live output.
399399

400400
### Animating display and content-visibility
401401

402-
This example demonstrates how [`display`](/en-US/docs/Web/CSS/Reference/Properties/display) and [`content-visibility`](/en-US/docs/Web/CSS/Reference/Properties/content-visibility) can be animated. This behavior is useful for creating entry/exit animations where you want to for example remove a container from the DOM with `display: none`, but have it fade out smoothly with [`opacity`](/en-US/docs/Web/CSS/Reference/Properties/opacity) rather than disappearing immediately.
402+
This example demonstrates how {{cssxref("display")}} and {{cssxref("content-visibility")}} can be animated. This behavior is useful for creating entry/exit animations where you want to for example remove a container from the DOM with `display: none`, but have it fade out smoothly with {{cssxref("opacity")}} rather than disappearing immediately.
403403

404404
Supporting browsers animate `display` and `content-visibility` with a variation on the [discrete animation type](/en-US/docs/Web/CSS/Guides/Animations/Animatable_properties#discrete). This generally means that properties will flip between two values 50% of the way through animating between the two.
405405

files/en-us/web/css/guides/basic_user_interface/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@ The CSS basic user interface module also defines the {{CSSxRef("caret")}}, `nav-
109109

110110
## Related concepts
111111

112-
- CSS [`cursor`](/en-US/docs/Web/CSS/Reference/Properties/cursor) property
113-
- SVG [`cursor`](/en-US/docs/Web/SVG/Reference/Attribute/cursor) attribute
112+
- CSS {{cssxref("cursor")}} property
113+
- SVG {{svgattr("cursor")}} attribute
114114
- CSS {{CSSxRef(":focus")}}, {{CSSxRef(":focus-within")}}, and {{CSSxRef(":focus-visible")}} pseudoclasses
115115
- {{DOMXref("CaretPosition")}} Interface
116116

files/en-us/web/css/guides/borders_and_box_decorations/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ The CSS borders and box decorations module level 4 also introduces the `border-s
221221
- {{cssxref("text-shadow")}} property
222222
- {{cssxref("url_value", "&lt;url&gt;")}} CSS type
223223
- [`<color>`](/en-US/docs/Web/CSS/Reference/Properties/color) data type
224-
- [`<image>`](/en-US/docs/Web/CSS/Reference/Values/image) data type
224+
- {{cssxref("&lt;image&gt;")}} data type
225225
- [`<position>`](/en-US/docs/Web/CSS/Reference/Properties/position) data type
226226
- [`currentColor`](/en-US/docs/Web/CSS/Reference/Values/color_value#currentcolor_keyword) keyword
227227

files/en-us/web/css/guides/box_alignment/in_block_abspos_tables/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ The [CSS box alignment](/en-US/docs/Web/CSS/Guides/Box_alignment) module details
1212

1313
The {{cssxref("justify-content")}} property does not apply to block containers or table cells.
1414

15-
The {{cssxref("align-content")}} property applies to the block axis in order to align the contents of the box within its container. If a content distribution method such as `space-between`, `space-around` or `space-evenly` is requested then the fallback alignment will be used, as the content is treated as a single [alignment subject](/en-US/docs/Glossary/Alignment_Subject).
15+
The {{cssxref("align-content")}} property applies to the block axis in order to align the contents of the box within its container. If a content distribution method such as `space-between`, `space-around` or `space-evenly` is requested then the fallback alignment will be used, as the content is treated as a single {{glossary("alignment subject")}}.
1616

1717
## justify-self
1818

files/en-us/web/css/guides/box_model/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ The CSS box model module defines physical (or "page relative") properties such a
3535

3636
### Data types
3737

38-
- [`<box-edge>`](/en-US/docs/Web/CSS/Reference/Values/box-edge)
38+
- {{cssxref("&lt;box-edge&gt;")}}
3939
- [`<visual-box>`](/en-US/docs/Web/CSS/Reference/Values/box-edge#visual-box)
4040
- [`<layout-box>`](/en-US/docs/Web/CSS/Reference/Values/box-edge#layout-box)
4141
- [`<paint-box>`](/en-US/docs/Web/CSS/Reference/Values/box-edge#paint-box)

files/en-us/web/css/guides/cascade/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ The opposite also occurs. Sometimes there are no declarations defining the value
7676
- : The most fundamental concepts of CSS — the cascade, specificity, and inheritance — which control how CSS is applied to HTML and how conflicts are resolved.
7777

7878
- [Learn: Cascade layers](/en-US/docs/Learn_web_development/Core/Styling_basics/Cascade_layers)
79-
- : Introduction to [cascade layers](/en-US/docs/Web/CSS/Reference/At-rules/@layer), a more advanced feature that builds on the fundamental concepts of the [CSS cascade](/en-US/docs/Web/CSS/Guides/Cascade/Introduction) and [CSS specificity](/en-US/docs/Web/CSS/Guides/Cascade/Specificity).
79+
- : Introduction to {{cssxref("@layer", "cascade layers")}}, a more advanced feature that builds on the fundamental concepts of the [CSS cascade](/en-US/docs/Web/CSS/Guides/Cascade/Introduction) and [CSS specificity](/en-US/docs/Web/CSS/Guides/Cascade/Specificity).
8080

8181
## Related concepts
8282

0 commit comments

Comments
 (0)