Skip to content

Commit 91f664c

Browse files
chrisdavidmillsestelle
authored andcommitted
Revert "At-rule pages: change css links to macros" (#41997)
Revert "At-rule pages: change css links to macros (#41960)" This reverts commit bab17c3.
1 parent 0682826 commit 91f664c

File tree

13 files changed

+20
-20
lines changed

13 files changed

+20
-20
lines changed

files/en-us/web/css/reference/at-rules/@container/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ The `<container-condition>` queries include [size](#size_container_descriptors)
127127

128128
#### Size container descriptors
129129

130-
The `<container-condition>` can include one or more boolean size queries, each within a set of parentheses. A size query includes a size descriptor, a value, and — depending on the descriptor — a comparison operator. The queries always measures the [content box](/en-US/docs/Web/CSS/Reference/Values/box-edge#content-box) as the comparison. The syntax for including multiple conditions is the same as for {{cssxref("@media")}} size feature queries.
130+
The `<container-condition>` can include one or more boolean size queries, each within a set of parentheses. A size query includes a size descriptor, a value, and — depending on the descriptor — a comparison operator. The queries always measures the [content box](/en-US/docs/Web/CSS/Reference/Values/box-edge#content-box) as the comparison. The syntax for including multiple conditions is the same as for [`@media`](/en-US/docs/Web/CSS/Reference/At-rules/@media) size feature queries.
131131

132132
```css
133133
@container (min-width: 400px) {

files/en-us/web/css/reference/at-rules/@font-face/font-display/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ browser-compat: css.at-rules.font-face.font-display
66
sidebar: cssref
77
---
88

9-
The **`font-display`** descriptor for the {{cssxref("@font-face")}} at-rule determines how a font face is displayed based on whether and when it is downloaded and ready to use.
9+
The **`font-display`** descriptor for the [`@font-face`](/en-US/docs/Web/CSS/Reference/At-rules/@font-face) at-rule determines how a font face is displayed based on whether and when it is downloaded and ready to use.
1010

1111
## Syntax
1212

files/en-us/web/css/reference/at-rules/@font-face/font-family/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ sidebar: cssref
88

99
The **`font-family`** [CSS](/en-US/docs/Web/CSS) descriptor sets the font family for a font specified in an {{cssxref("@font-face")}} at-rule.
1010

11-
The value is used for name matching against a particular `@font-face` when styling elements using the {{cssxref("font-family")}} property.
11+
The value is used for name matching against a particular `@font-face` when styling elements using the [`font-family`](/en-US/docs/Web/CSS/Reference/Properties/font-family) property.
1212
Any name may be used, and this overrides any name specified in the underlying font data.
1313

1414
## Syntax

files/en-us/web/css/reference/at-rules/@function/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ The **`@function`** [CSS](/en-US/docs/Web/CSS) [at-rule](/en-US/docs/Web/CSS/Gui
2525
The different parts of the `@function` syntax are as follows:
2626

2727
- `--function-name`
28-
- : The identifying name of the function, a {{cssxref("&lt;dashed-ident&gt;")}} that starts with `--` and is followed by a valid, user-defined identifier. It is case-sensitive.
28+
- : The identifying name of the function, a [`<dashed-ident>`](/en-US/docs/Web/CSS/Reference/Values/dashed-ident) that starts with `--` and is followed by a valid, user-defined identifier. It is case-sensitive.
2929
- `<function-parameter>#?` {{optional_inline}}
3030
- : Zero or more function parameter definitions. Multiple parameter definitions are separated by commas. Each parameter consists of:
3131
- `--param-name`
32-
- : A [CSS custom property](/en-US/docs/Web/CSS/Reference/Properties/--*) name to identify the parameter, a {{cssxref("&lt;dashed-ident&gt;")}} that starts with `--` and is followed by a valid, user-defined identifier. It is case-sensitive. Function parameters can be considered custom properties that are locally scoped to the function body.
32+
- : A [CSS custom property](/en-US/docs/Web/CSS/Reference/Properties/--*) name to identify the parameter, a [`<dashed-ident>`](/en-US/docs/Web/CSS/Reference/Values/dashed-ident) that starts with `--` and is followed by a valid, user-defined identifier. It is case-sensitive. Function parameters can be considered custom properties that are locally scoped to the function body.
3333
- `<css-type>` {{optional_inline}}
3434
- : A CSS data type or a {{cssxref("type()")}} function that defines the accepted data type(s) for the parameter. If this is not specified, any data type will be valid for the parameter (the same as specifying `type(*)`).
3535
- `<default-value>` {{optional_inline}}

files/en-us/web/css/reference/at-rules/@import/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ where:
3030
- _list-of-media-queries_
3131
- : Is a comma-separated list of [media queries](/en-US/docs/Web/CSS/Guides/Media_queries/Using), which specify the media-dependent conditions for applying the CSS rules defined in the linked URL. If the browser does not support any of these queries, it does not load the linked resource.
3232
- _layer-name_
33-
- : Is the name of a {{cssxref("@layer", "cascade layer")}} into which the contents of the linked resource are imported. See [`layer()`](/en-US/docs/Web/CSS/Reference/At-rules/@import/layer_function) for more information.
33+
- : Is the name of a [cascade layer](/en-US/docs/Web/CSS/Reference/At-rules/@layer) into which the contents of the linked resource are imported. See [`layer()`](/en-US/docs/Web/CSS/Reference/At-rules/@import/layer_function) for more information.
3434
- _supports-condition_
3535
- : Indicates the feature(s) that the browser must support in order for the stylesheet to be imported.
3636
If the browser does not conform to the conditions specified in the _supports-condition_, it may not fetch the linked stylesheet, and even if downloaded through some other path, will not load it.
@@ -40,7 +40,7 @@ Use `@import` together with the `layer` keyword or `layer()` function to import
4040

4141
## Description
4242

43-
Imported rules must come before all other types of rules, except {{CSSxRef("@charset")}} rules and layer creating {{cssxref("@layer")}} statements.
43+
Imported rules must come before all other types of rules, except {{CSSxRef("@charset")}} rules and layer creating [`@layer`](/en-US/docs/Web/CSS/Reference/At-rules/@layer) statements.
4444

4545
```css example-bad
4646
* {
@@ -70,7 +70,7 @@ Similarly, user agents can use the `supports()` function in an `@import` at-rule
7070
This allows authors to take advantage of recently introduced CSS features, while providing graceful fallbacks for older browser versions.
7171
Note that the conditions in the `supports()` function of an `@import` at-rule can be obtained in JavaScript using {{domxref("CSSImportRule.supportsText")}}.
7272

73-
The `@import` rule can also be used to create a {{cssxref("@layer", "cascade layer")}} by importing rules from a linked resource. Rules can also be imported into an existing cascade layer. The `layer` keyword or the `layer()` function is used with `@import` for this purpose. Declarations in style rules from imported stylesheets interact with the cascade as if they were written literally into the stylesheet at the point of the import.
73+
The `@import` rule can also be used to create a [cascade layer](/en-US/docs/Web/CSS/Reference/At-rules/@layer) by importing rules from a linked resource. Rules can also be imported into an existing cascade layer. The `layer` keyword or the `layer()` function is used with `@import` for this purpose. Declarations in style rules from imported stylesheets interact with the cascade as if they were written literally into the stylesheet at the point of the import.
7474

7575
## Formal syntax
7676

files/en-us/web/css/reference/at-rules/@import/layer_function/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ browser-compat: css.at-rules.import.layer
66
sidebar: cssref
77
---
88

9-
The **`layer()`** [CSS](/en-US/docs/Web/CSS) [function](/en-US/docs/Web/CSS/Reference/Values/Functions) is used along with the {{cssxref("@import")}} [at-rule](/en-US/docs/Web/CSS/Guides/Syntax/At-rules) to put the imported resource in a separate named {{cssxref("@layer", "cascade layer")}}.
9+
The **`layer()`** [CSS](/en-US/docs/Web/CSS) [function](/en-US/docs/Web/CSS/Reference/Values/Functions) is used along with the [`@import`](/en-US/docs/Web/CSS/Reference/At-rules/@import) [at-rule](/en-US/docs/Web/CSS/Guides/Syntax/At-rules) to put the imported resource in a separate named [cascade layer](/en-US/docs/Web/CSS/Reference/At-rules/@layer).
1010

1111
## Syntax
1212

files/en-us/web/css/reference/at-rules/@layer/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,11 +232,11 @@ In the following example, two layers are created with no rules applied, then CSS
232232

233233
## See also
234234

235-
- {{cssxref("@import")}}
235+
- [`@import`](/en-US/docs/Web/CSS/Reference/At-rules/@import)
236236
- {{domxref("CSSLayerBlockRule")}}
237237
- {{domxref("CSSLayerStatementRule")}}
238238
- [`!important`](/en-US/docs/Web/CSS/Reference/Values/important)
239-
- {{cssxref("revert-layer")}}
239+
- [`revert-layer`](/en-US/docs/Web/CSS/Reference/Values/revert-layer)
240240
- [Introducing the CSS cascade](/en-US/docs/Web/CSS/Guides/Cascade/Introduction)
241241
- [Learn: Handling conflicts](/en-US/docs/Learn_web_development/Core/Styling_basics/Handling_conflicts)
242242
- [Learn: Cascade layers](/en-US/docs/Learn_web_development/Core/Styling_basics/Cascade_layers)

files/en-us/web/css/reference/at-rules/@media/-webkit-transform-2d/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Apple has [a description in Safari CSS Reference](https://developer.apple.com/li
4040
}
4141
```
4242

43-
This media feature is only supported by WebKit. The unprefixed {{cssxref("transform")}} property is supported in all modern browsers. If possible, use an {{cssxref("@supports")}} feature query instead:
43+
This media feature is only supported by WebKit. The unprefixed [`transform`](/en-US/docs/Web/CSS/Reference/Properties/transform) property is supported in all modern browsers. If possible, use an {{cssxref("@supports")}} feature query instead:
4444

4545
```css
4646
@supports (-webkit-transform: translate(100px, 100px)) {

files/en-us/web/css/reference/at-rules/@media/color-gamut/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ p {
5858

5959
- [`color()`](/en-US/docs/Web/CSS/Reference/Values/color_value/color) function to specify colors in a defined colorspace.
6060
- [CSS colors](/en-US/docs/Web/CSS/Guides/Colors) module
61-
- {{cssxref("@media")}} at-rule that is used to specify the color-gamut expression.
61+
- [`@media`](/en-US/docs/Web/CSS/Reference/At-rules/@media) at-rule that is used to specify the color-gamut expression.
6262
- [Using media queries](/en-US/docs/Web/CSS/Guides/Media_queries/Using) to understand when and how to use a media query.
6363
- [CSS media queries](/en-US/docs/Web/CSS/Guides/Media_queries) module
6464
- [sRGB](https://en.wikipedia.org/wiki/SRGB) on Wikipedia

files/en-us/web/css/reference/at-rules/@media/prefers-color-scheme/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ A user indicates their preference through an operating system setting (e.g., lig
1111

1212
## Embedded elements
1313

14-
For SVG and iframes, `prefers-color-scheme` lets you set a CSS style for the SVG or iframe based on the {{cssxref("color-scheme")}} of the parent element in the web page.
14+
For SVG and iframes, `prefers-color-scheme` lets you set a CSS style for the SVG or iframe based on the [`color-scheme`](/en-US/docs/Web/CSS/Reference/Properties/color-scheme) of the parent element in the web page.
1515
SVGs must be used embedded (i.e., `<img src="circle.svg" alt="circle" />`) as opposed to [inlined in HTML](/en-US/docs/Web/SVG/Guides/SVG_in_HTML#basic_example).
1616
An example of using `prefers-color-scheme` in SVGs can be found in the ["Inherited color scheme in embedded elements"](#inherited_color_scheme_in_embedded_elements) section.
1717

0 commit comments

Comments
 (0)