Skip to content

Commit efe90c4

Browse files
committed
Fix some cssxref macro flaws
1 parent 60394a8 commit efe90c4

11 files changed

Lines changed: 20 additions & 20 deletions

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ The CSS conditional rules module also introduces a `media()` CSS function. Curre
120120

121121
- [CSS syntax](/en-US/docs/Web/CSS/Guides/Syntax) module
122122
- {{cssxref("@charset")}} declaration
123-
- {{cssxref("at-rule")}} term
123+
- [at-rule](/en-US/docs/Web/CSS/Guides/Syntax/At-rules) term
124124
- [`invalid`](/en-US/docs/Web/CSS/Guides/Syntax/Error_handling) term
125125
- {{glossary("parse")}} term
126126
- [style rule](/en-US/docs/Web/API/CSSStyleRule) term

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ This module doesn't define any properties, [data types](/en-US/docs/Web/CSS/Refe
2222
2323
### Key concepts
2424

25-
- {{cssxref("at-rule")}}
25+
- [At-rules](/en-US/docs/Web/CSS/Guides/Syntax/At-rules)
2626
- [character escaping](/en-US/docs/Web/CSS/Reference/Values/custom-ident#escaping_characters)
2727
- [CSS comments](/en-US/docs/Web/CSS/Guides/Syntax/Comments)
2828
- [CSS declaration](/en-US/docs/Web/API/CSS_Object_Model/CSS_Declaration)

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Most modern computers and smartphones have bitmap-based screens. Examples of gri
1313

1414
## Syntax
1515

16-
The `grid` feature is specified as a {{cssxref("CSS_media_queries/Using_media_queries", "<mq-boolean>")}} value (`0` or `1`) representing whether or not the output device is grid-based.
16+
The `grid` feature is specified as a [`<mq-boolean>`](/en-US/docs/Web/CSS/Guides/Media_queries/Using) value (`0` or `1`) representing whether or not the output device is grid-based.
1717

1818
## Examples
1919

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,11 +111,11 @@ The keywords and data types mentioned above are described in more detail below:
111111
- : An {{cssxref("image")}}, representing an image to display. This can be equal to a {{cssxref("url_value", "&lt;url&gt;")}}, {{cssxref("image/image-set", "image-set()")}}, or {{cssxref("gradient")}} data type, or a part of the webpage itself, defined by the {{cssxref("element()")}} function.
112112

113113
- `<counter>`
114-
- : The `<counter>` value is a [CSS counter](/en-US/docs/Web/CSS/Guides/Counter_styles/Using_counters), generally a number produced by computations defined by {{cssxref("&lt;counter-reset&gt;")}} and {{cssxref("&lt;counter-increment&gt;")}} properties. It can be displayed using either the {{cssxref("counter()")}} or {{cssxref("counters()")}} function.
114+
- : The `<counter>` value is a [CSS counter](/en-US/docs/Web/CSS/Guides/Counter_styles/Using_counters), generally a number produced by computations defined by {{cssxref("counter-reset")}} and {{cssxref("counter-increment")}} properties. It can be displayed using either the {{cssxref("counter()")}} or {{cssxref("counters()")}} function.
115115
- {{cssxref("counter()")}}
116-
- : The {{cssxref("counter()")}} function has two forms: 'counter(_name_)' or 'counter(_name_, style)'. The generated text is the value of the innermost counter of the given name in scope at the given pseudo-element. It is formatted in the specified {{cssxref("&lt;list-style-type&gt;")}} (`decimal` by default).
116+
- : The {{cssxref("counter()")}} function has two forms: 'counter(_name_)' or 'counter(_name_, style)'. The generated text is the value of the innermost counter of the given name in scope at the given pseudo-element. It is formatted in the specified {{cssxref("list-style-type")}} (`decimal` by default).
117117
- {{cssxref("counters()")}}
118-
- : The {{cssxref("counters()")}} function also has two forms: 'counters(_name_, _string_)' or 'counters(_name_, _string_, _style_)'. The generated text is the value of all counters with the given name in scope at the given pseudo-element, from outermost to innermost, separated by the specified string. The counters are rendered in the indicated {{cssxref("&lt;list-style-type&gt;")}} (`decimal` by default).
118+
- : The {{cssxref("counters()")}} function also has two forms: 'counters(_name_, _string_)' or 'counters(_name_, _string_, _style_)'. The generated text is the value of all counters with the given name in scope at the given pseudo-element, from outermost to innermost, separated by the specified string. The counters are rendered in the indicated {{cssxref("list-style-type")}} (`decimal` by default).
119119

120120
- `<quote>`
121121
- : The `<quote>` data type includes language- and position-dependent keywords:

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,8 @@ flex: unset;
102102
The `flex` property may be specified using one, two, or three values.
103103

104104
- **One-value syntax:** the value must be one of:
105-
- a valid value for {{cssxref("&lt;flex-grow&gt;")}}: then, in all the browsers, the shorthand expands to `flex: <flex-grow> 1 0%`. However the specification says it should expand to `flex: <flex-grow> 1 0`.
106-
- a valid value for {{cssxref("&lt;flex-basis&gt;")}}: then the shorthand expands to `flex: 1 1 <flex-basis>`.
105+
- a valid value for {{cssxref("flex-grow")}}: then, in all the browsers, the shorthand expands to `flex: <flex-grow> 1 0%`. However the specification says it should expand to `flex: <flex-grow> 1 0`.
106+
- a valid value for {{cssxref("flex-basis")}}: then the shorthand expands to `flex: 1 1 <flex-basis>`.
107107
- the keyword `none` or one of the global keywords.
108108

109109
- **Two-value syntax:**

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -112,15 +112,15 @@ If `font` is specified as a system keyword, it must be one of: `caption`, `icon`
112112
If `font` is specified as a shorthand for several font-related properties, then:
113113

114114
- it must include values for:
115-
- {{cssxref("&lt;font-size&gt;")}}
116-
- {{cssxref("&lt;font-family&gt;")}}
115+
- {{cssxref("font-size")}}
116+
- {{cssxref("font-family")}}
117117

118118
- it may optionally include values for:
119-
- {{cssxref("&lt;font-style&gt;")}}
120-
- {{cssxref("&lt;font-variant&gt;")}}
121-
- {{cssxref("&lt;font-weight&gt;")}}
122-
- {{cssxref("&lt;font-stretch&gt;")}}
123-
- {{cssxref("&lt;line-height&gt;")}}
119+
- {{cssxref("font-style")}}
120+
- {{cssxref("font-variant")}}
121+
- {{cssxref("font-weight")}}
122+
- {{cssxref("font-stretch")}}
123+
- {{cssxref("line-height")}}
124124

125125
- `font-style`, `font-variant` and `font-weight` must precede `font-size`.
126126
- `font-variant` may only specify the values defined in CSS 2.1, that is `normal` and `small-caps`.

files/en-us/web/css/reference/selectors/_doublecolon_view-transition-group/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ In addition, the element's transform is animated from the "old" view state's scr
5252
- `<pt-class-selector>`
5353
- : The {{cssxref("custom-ident")}} set as the value of the {{cssxref("view-transition-class")}} property, preceded by a period (`.`).
5454

55-
The {{cssxref("specificity")}} of the named view transition pseudo-element is equal to the [specificity of the type selector](/en-US/docs/Web/CSS/Guides/Cascade/Specificity#type_column), unless the parameter used is the universal selector is used, in which case the specificity is zero.
55+
The [specificity](/en-US/docs/Web/CSS/Guides/Cascade/Specificity) of the named view transition pseudo-element is equal to the [specificity of the type selector](/en-US/docs/Web/CSS/Guides/Cascade/Specificity#type_column), unless the parameter used is the universal selector is used, in which case the specificity is zero.
5656

5757
## Examples
5858

files/en-us/web/css/reference/values/basic-shape/path/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ svg {
179179

180180
## See also
181181

182-
- {{cssxref("&lt;shape-outside&gt;")}}
182+
- {{cssxref("shape-outside")}}
183183
- [CSS shapes](/en-US/docs/Web/CSS/Guides/Shapes) module
184184
- [Overview of CSS shapes](/en-US/docs/Web/CSS/Guides/Shapes/Overview)
185185
- [The SVG `path` syntax: an illustrated guide](https://css-tricks.com/svg-path-syntax-illustrated-guide/) via CSS-tricks (2021)

files/en-us/web/css/reference/values/calc/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ When an {{cssxref("&lt;integer&gt;")}} is expected, the `calc()` expression can
102102

103103
### Input considerations
104104

105-
- `calc()` cannot perform calculations on [intrinsic size values](/en-US/docs/Glossary/Intrinsic_Size) such as {{cssxref("auto")}} and {{cssxref("fit-content")}}. Use the {{cssxref("calc-size()")}} function instead.
105+
- `calc()` cannot perform calculations on [intrinsic size values](/en-US/docs/Glossary/Intrinsic_Size) such as {{cssxref("width#auto", "`auto`"}} and {{cssxref("fit-content")}}. Use the {{cssxref("calc-size()")}} function instead.
106106
- The `*` and `/` operators do not require whitespace, but adding it for consistency is recommended.
107107
- It is permitted to nest `calc()` functions, in which case, the inner ones are treated as simple parentheses.
108108
- Math expressions involving percentages for widths and heights on table columns, table column groups, table rows, table row groups, and table cells in both auto and fixed layout tables _may_ be treated as if `auto` is specified.

files/en-us/web/css/reference/values/counter/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ The `counter()` function accepts up to two parameters. The first parameter is th
5858
- `<counter-name>`
5959
- : A {{cssxref("&lt;custom-ident&gt;")}} identifying the counter, which is the same case-sensitive name used with the {{cssxref("counter-reset")}} and {{cssxref("counter-increment")}} property values. The counter name cannot start with two dashes and can't be `none`, `unset`, `initial`, or `inherit`.
6060
- `<counter-style>`
61-
- : A {{cssxref("&lt;list-style-type&gt;")}} name, {{cssxref("&lt;@counter-style&gt;")}} name or {{cssxref("symbols()")}} function, where a counter style name is a `numeric`, `alphabetic`, or `symbolic` predefined counter style, a complex longhand east Asian or Ethiopic predefined counter style, or other [predefined counter style](/en-US/docs/Web/CSS/Guides/Counter_styles). If omitted, the counter-style defaults to `decimal`.
61+
- : A {{cssxref("list-style-type")}} name, {{cssxref("&lt;counter-style-name&gt;")}} or {{cssxref("symbols()")}} function, where a counter style name is a `numeric`, `alphabetic`, or `symbolic` predefined counter style, a complex longhand east Asian or Ethiopic predefined counter style, or other [predefined counter style](/en-US/docs/Web/CSS/Guides/Counter_styles). If omitted, the counter-style defaults to `decimal`.
6262

6363
> [!NOTE]
6464
> To join the counter values when nesting counters, use the {{cssxref("counters()")}} function, which provides an additional {{cssxref("string")}} parameter.

0 commit comments

Comments
 (0)