Skip to content

Commit 2144029

Browse files
Josh-Cenaestelle
authored andcommitted
"Try it" section should not have unrelated content (1) (#41944)
* "Try it" section should not have unrelated content * Move to description
1 parent 4883a1b commit 2144029

File tree

65 files changed

+375
-327
lines changed

Some content is hidden

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

65 files changed

+375
-327
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ The **`@supports`** [CSS](/en-US/docs/Web/CSS) [at-rule](/en-US/docs/Web/CSS/Gui
1010
Using this at-rule is commonly called a _feature query_.
1111
The rule must be placed at the top level of your code or nested inside any other conditional group at-rule.
1212

13+
In JavaScript, `@supports` can be accessed via the CSS object model interface {{DOMxRef("CSSSupportsRule")}}.
14+
1315
{{InteractiveExample("CSS Demo: @supports", "tabbed-standard")}}
1416

1517
```css interactive-example
@@ -40,8 +42,6 @@ The rule must be placed at the top level of your code or nested inside any other
4042
</ul>
4143
```
4244

43-
In JavaScript, `@supports` can be accessed via the CSS object model interface {{DOMxRef("CSSSupportsRule")}}.
44-
4545
## Syntax
4646

4747
```css

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

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -52,18 +52,6 @@ accent-color: hsl(250 100% 34%);
5252
}
5353
```
5454

55-
Browsers that support `accent-color` currently apply it to the following HTML elements:
56-
57-
- [`<input type="checkbox">`](/en-US/docs/Web/HTML/Reference/Elements/input/checkbox)
58-
- [`<input type="radio">`](/en-US/docs/Web/HTML/Reference/Elements/input/radio)
59-
- [`<input type="range">`](/en-US/docs/Web/HTML/Reference/Elements/input/range)
60-
- [`<progress>`](/en-US/docs/Web/HTML/Reference/Elements/progress)
61-
62-
Each user agent has an accent color, with variations to ensure legibility and
63-
contrast. That accent color is not used by every user-interface control nor in
64-
every state of the control. The `accent-color` is only applied to user-interface
65-
controls that use an accent color in the states where it is applicable.
66-
6755
## Syntax
6856

6957
```css
@@ -91,6 +79,20 @@ accent-color: unset;
9179
- {{cssxref("&lt;color&gt;")}}
9280
- : Specifies the color to be used as the accent color.
9381

82+
## Description
83+
84+
Browsers that support `accent-color` currently apply it to the following HTML elements:
85+
86+
- [`<input type="checkbox">`](/en-US/docs/Web/HTML/Reference/Elements/input/checkbox)
87+
- [`<input type="radio">`](/en-US/docs/Web/HTML/Reference/Elements/input/radio)
88+
- [`<input type="range">`](/en-US/docs/Web/HTML/Reference/Elements/input/range)
89+
- [`<progress>`](/en-US/docs/Web/HTML/Reference/Elements/progress)
90+
91+
Each user agent has an accent color, with variations to ensure legibility and
92+
contrast. That accent color is not used by every user-interface control nor in
93+
every state of the control. The `accent-color` is only applied to user-interface
94+
controls that use an accent color in the states where it is applicable.
95+
9496
## Formal definition
9597

9698
{{cssinfo}}

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

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

99
The [CSS](/en-US/docs/Web/CSS) **`align-content`** property sets the distribution of space between and around content items along a [flexbox](/en-US/docs/Web/CSS/Guides/Flexible_box_layout)'s [cross axis](/en-US/docs/Glossary/Cross_Axis), or a [grid](/en-US/docs/Web/CSS/Guides/Grid_layout) or [block-level](/en-US/docs/Glossary/Block-level_content) element's block axis.
1010

11+
This property has no effect on single line flex containers (i.e., ones with `flex-wrap: nowrap`).
12+
1113
The interactive example below uses grid layout to demonstrate some of the values of this property.
1214

1315
{{InteractiveExample("CSS Demo: align-content")}}
@@ -56,8 +58,6 @@ align-content: space-around;
5658
}
5759
```
5860

59-
This property has no effect on single line flex containers (i.e., ones with `flex-wrap: nowrap`).
60-
6161
## Syntax
6262

6363
```css

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

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

99
The [CSS](/en-US/docs/Web/CSS) **`align-items`** property sets the {{cssxref("align-self")}} value on all direct children as a group. In flexbox, it controls the alignment of items on the {{glossary("cross axis")}}. In grid layout, it controls the alignment of items on the block axis within their {{glossary("grid areas")}}.
1010

11+
The interactive example below uses grid layout to demonstrate some of the values of this property.
12+
1113
{{InteractiveExample("CSS Demo: align-items")}}
1214

1315
```css interactive-example-choice
@@ -54,8 +56,6 @@ align-items: end;
5456
}
5557
```
5658

57-
The interactive example below demonstrates some of the values for `align-items` using grid and flex layout.
58-
5959
## Syntax
6060

6161
```css

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

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

99
The **`align-self`** [CSS](/en-US/docs/Web/CSS) property overrides a grid or flex item's {{cssxref("align-items")}} value. In grid, it aligns the item inside the {{glossary("Grid Areas", "grid area")}}. In flexbox, it aligns the item on the {{glossary("cross axis")}}.
1010

11+
The property doesn't apply to block-level boxes, or to table cells. If a flexbox item's cross-axis margin is `auto`, then `align-self` is ignored.
12+
1113
{{InteractiveExample("CSS Demo: align-self")}}
1214

1315
```css interactive-example-choice
@@ -52,8 +54,6 @@ align-self: end;
5254
}
5355
```
5456

55-
The property doesn't apply to block-level boxes, or to table cells. If a flexbox item's cross-axis margin is `auto`, then `align-self` is ignored.
56-
5757
## Syntax
5858

5959
```css

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

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

99
The **`animation-delay`** [CSS](/en-US/docs/Web/CSS) property specifies the amount of time to wait from applying the animation to an element before beginning to perform the animation. The animation can start later, immediately from its beginning, or immediately and partway through the animation.
1010

11+
It is often convenient to use the shorthand property {{cssxref("animation")}} to set all animation properties at once.
12+
1113
{{InteractiveExample("CSS Demo: animation-delay")}}
1214

1315
```css interactive-example-choice
@@ -105,8 +107,6 @@ observer.observe(el, {
105107
update();
106108
```
107109

108-
It is often convenient to use the shorthand property {{cssxref("animation")}} to set all animation properties at once.
109-
110110
## Syntax
111111

112112
```css

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

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

99
The **`animation-direction`** [CSS](/en-US/docs/Web/CSS) property sets whether an animation should play forward, backward, or alternate back and forth between playing the sequence forward and backward.
1010

11+
It is often convenient to use the shorthand property {{cssxref("animation")}} to set all animation properties at once.
12+
1113
{{InteractiveExample("CSS Demo: animation-direction")}}
1214

1315
```css interactive-example-choice
@@ -87,8 +89,6 @@ button.addEventListener("click", () => {
8789
});
8890
```
8991

90-
It is often convenient to use the shorthand property {{cssxref("animation")}} to set all animation properties at once.
91-
9292
## Syntax
9393

9494
```css

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
@@ -8,6 +8,8 @@ sidebar: cssref
88

99
The **`animation-duration`** [CSS](/en-US/docs/Web/CSS) property sets the length of time that an animation takes to complete one cycle.
1010

11+
It is often convenient to use the shorthand property {{ cssxref("animation") }} to set all animation properties at once.
12+
1113
{{InteractiveExample("CSS Demo: animation-duration")}}
1214

1315
```css interactive-example-choice
@@ -83,8 +85,6 @@ button.addEventListener("click", () => {
8385
});
8486
```
8587

86-
It is often convenient to use the shorthand property {{ cssxref("animation") }} to set all animation properties at once.
87-
8888
## Syntax
8989

9090
```css

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

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

99
The **`animation-fill-mode`** [CSS](/en-US/docs/Web/CSS) property sets how a CSS animation applies styles to its target before and after its execution.
1010

11+
It is often convenient to use the shorthand property {{cssxref("animation")}} to set all animation properties at once.
12+
1113
{{InteractiveExample("CSS Demo: animation-fill-mode")}}
1214

1315
```css interactive-example-choice
@@ -110,8 +112,6 @@ observer.observe(el, {
110112
update();
111113
```
112114

113-
It is often convenient to use the shorthand property {{cssxref("animation")}} to set all animation properties at once.
114-
115115
## Syntax
116116

117117
```css

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

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

99
The **`animation-iteration-count`** [CSS](/en-US/docs/Web/CSS) property sets the number of times an animation sequence should be played before stopping.
1010

11+
It is often convenient to use the shorthand property {{cssxref("animation")}} to set all animation properties at once.
12+
1113
{{InteractiveExample("CSS Demo: animation-iteration-count")}}
1214

1315
```css interactive-example-choice
@@ -103,8 +105,6 @@ observer.observe(el, {
103105
update();
104106
```
105107

106-
It is often convenient to use the shorthand property {{cssxref("animation")}} to set all animation properties at once.
107-
108108
## Syntax
109109

110110
```css

0 commit comments

Comments
 (0)