Skip to content

Commit b5a6d8b

Browse files
mdn-botJosh-Cena
andauthored
fix: auto-cleanup by bot (#41571)
* chore: auto-fix Markdownlint, Prettier, and front-matter issues * More fixes --------- Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
1 parent 50a1895 commit b5a6d8b

File tree

13 files changed

+26
-27
lines changed

13 files changed

+26
-27
lines changed

files/en-us/learn_web_development/core/styling_basics/home_color_scheme_search/index.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ To begin, click the **Play** button in one of the code panels below to open the
110110
}
111111

112112
html {
113-
font-family: Arial, Helvetica, sans-serif;
113+
font-family: "Helvetica", "Arial", sans-serif;
114114
}
115115

116116
body {
@@ -240,7 +240,7 @@ A possible solution could be:
240240
}
241241

242242
html {
243-
font-family: Arial, Helvetica, sans-serif;
243+
font-family: "Helvetica", "Arial", sans-serif;
244244
}
245245

246246
body {
@@ -356,19 +356,19 @@ tr :nth-of-type(4) {
356356
/* Solution: Provide background colors for the "Raw color" cells */
357357

358358
tr:nth-of-type(1) td:nth-of-type(2) {
359-
background-color: rgb(255 192 203);
359+
background-color: pink;
360360
}
361361

362362
tr:nth-of-type(2) td:nth-of-type(2) {
363363
background-color: rgb(255 145 175);
364364
}
365365

366366
tr:nth-of-type(3) td:nth-of-type(2) {
367-
background-color: rgb(255 105 180);
367+
background-color: hotpink;
368368
}
369369

370370
tr:nth-of-type(4) td:nth-of-type(2) {
371-
background-color: rgb(255 0 255);
371+
background-color: magenta;
372372
}
373373

374374
tbody tr:nth-child(odd) {

files/en-us/learn_web_development/getting_started/your_first_website/adding_interactivity/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ Try clicking the list items a few times and note how the "done" styles are toggl
9292
To start you off with writing some JavaScript, we'll walk you through adding a _Hello world!_ example to your sample website. ([_Hello world!_](https://en.wikipedia.org/wiki/%22Hello,_World!%22_program) is the standard introductory programming example.)
9393

9494
> [!WARNING]
95-
> If you haven't been following along with the rest of our course, [download this example code](https://github.com/mdn/beginner-html-site-styled/archive/refs/heads/main.zip) and use it as a starting point.
95+
> If you haven't been following along with the rest of our course, [download this example code](https://codeload.github.com/mdn/beginner-html-site-styled/zip/refs/heads/main) and use it as a starting point.
9696
9797
1. Inside your `first-website` folder or the example folder you have just downloaded, create a new folder named `scripts`.
9898
2. Within the `scripts` folder, create a new text document called `main.js`, and save it.

files/en-us/web/api/commandevent/index.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,22 +75,22 @@ In this example three buttons have been created with [`commands` with custom val
7575
}
7676
```
7777

78-
An event listener is attached to the image using the [`command` event](/en-US/docs/Web/API/CommandEvent).
78+
An event listener is attached to the image using the [`command` event](/en-US/docs/Web/API/HTMLElement/command_event).
7979
When one of the buttons is clicked, the listener runs code based on the custom `command` value assigned to the button, rotating the image and also updating it's `alt` text to indicate the new angle of the image.
8080

8181
```js
8282
const image = document.getElementById("the-image");
8383

8484
image.addEventListener("command", (event) => {
85-
let rotate = parseInt(event.target.style.rotate || "0");
86-
if (event.command == "--reset") {
85+
let rotate = parseInt(event.target.style.rotate || "0", 10);
86+
if (event.command === "--reset") {
8787
rotate = 0;
8888
event.target.style.rotate = `${rotate}deg`;
8989
} else if (event.command === "--rotate-left") {
90-
rotate === -270 ? (rotate = 0) : (rotate = rotate - 90);
90+
rotate = rotate === -270 ? 0 : rotate - 90;
9191
event.target.style.rotate = `${rotate}deg`;
9292
} else if (event.command === "--rotate-right") {
93-
rotate === 270 ? (rotate = 0) : (rotate = rotate + 90);
93+
rotate = rotate === 270 ? 0 : rotate + 90;
9494
event.target.style.rotate = `${rotate}deg`;
9595
}
9696
event.target.alt = `dinosaur head rotated ${rotate} degrees`;

files/en-us/web/api/htmlbuttonelement/command/index.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,15 +68,15 @@ When one of the buttons is clicked, the listener runs code based on the custom `
6868
const image = document.getElementById("the-image");
6969

7070
image.addEventListener("command", (event) => {
71-
let rotate = parseInt(event.target.style.rotate || "0");
72-
if (event.command == "--reset") {
71+
let rotate = parseInt(event.target.style.rotate || "0", 10);
72+
if (event.command === "--reset") {
7373
rotate = 0;
7474
event.target.style.rotate = `${rotate}deg`;
7575
} else if (event.command === "--rotate-left") {
76-
rotate === -270 ? (rotate = 0) : (rotate = rotate - 90);
76+
rotate = rotate === -270 ? 0 : rotate - 90;
7777
event.target.style.rotate = `${rotate}deg`;
7878
} else if (event.command === "--rotate-right") {
79-
rotate === 270 ? (rotate = 0) : (rotate = rotate + 90);
79+
rotate = rotate === 270 ? 0 : rotate + 90;
8080
event.target.style.rotate = `${rotate}deg`;
8181
}
8282
event.target.alt = `dinosaur head rotated ${rotate} degrees`;

files/en-us/web/api/htmlmetaelement/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ meta.content = "width=device-width, initial-scale=1";
6464
document.head.appendChild(meta);
6565
```
6666

67-
For more information on setting the viewport, see [`<meta name="viewport">`](/en-US/docs/Reference/Elements/meta/name/viewport).
67+
For more information on setting the viewport, see [`<meta name="viewport">`](/en-US/docs/Web/HTML/Reference/Elements/meta/name/viewport).
6868

6969
## Specifications
7070

files/en-us/web/css/color_value/color-mix/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ The color space must be one of the available color spaces listed in the [formal
6565

6666
The [`<rectangular-color-space>`](/en-US/docs/Web/CSS/color-interpolation-method#rectangular-color-space) category includes [`srgb`](/en-US/docs/Glossary/Color_space#srgb), [`srgb-linear`](/en-US/docs/Glossary/Color_space#srgb-linear), [`display-p3`](/en-US/docs/Glossary/Color_space#display-p3), [`a98-rgb`](/en-US/docs/Glossary/Color_space#a98-rgb), [`prophoto-rgb`](/en-US/docs/Glossary/Color_space#prophoto-rgb), [`rec2020`](/en-US/docs/Glossary/Color_space#rec2020), [`lab`](/en-US/docs/Glossary/Color_space#cielab_color_spaces), [`oklab`](/en-US/docs/Glossary/Color_space#oklab), [`xyz`](/en-US/docs/Glossary/Color_space#xyz_color_spaces), [`xyz-d50`](/en-US/docs/Glossary/Color_space#xyz), and [`xyz-d65`](/en-US/docs/Glossary/Color_space#xyz-d50).
6767

68-
The`<polar-color-space>` category includes [`hsl`](/en-US/docs/Web/CSS/color_value/hsl), [`hwb`](/en-US/docs/Web/CSS/color_value/hwb), [`lch`](/en-US/docs/Web/CSS/color_value/lch), and [`oklch`](/en-US/docs/Web/CSS/color_value/oklch). With these you can optionally follow the color space name with a {{CSSXref("&lt;hue-interpolation-method&gt;")}}. This value defaults to `shorter hue`, but can also be set to `longer hue`, `increasing hue`, or `decreasing hue`.
68+
The `<polar-color-space>` category includes [`hsl`](/en-US/docs/Web/CSS/color_value/hsl), [`hwb`](/en-US/docs/Web/CSS/color_value/hwb), [`lch`](/en-US/docs/Web/CSS/color_value/lch), and [`oklch`](/en-US/docs/Web/CSS/color_value/oklch). With these you can optionally follow the color space name with a {{CSSXref("&lt;hue-interpolation-method&gt;")}}. This value defaults to `shorter hue`, but can also be set to `longer hue`, `increasing hue`, or `decreasing hue`.
6969

7070
### Color percentages
7171

files/en-us/web/css/css_images/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ The CSS images module also defines the {{CSSxRef("image/image", "image()")}} fun
6363

6464
- {{cssxref("url_value", "&lt;url&gt;")}}
6565
- {{cssxref("url_function", "url()")}}
66-
- [`<basic-shape-rect>`](/en-US/docs/Web/CSS/basic-shape#basic-shape-rect)
66+
- [`<basic-shape-rect>`](/en-US/docs/Web/CSS/basic-shape#syntax_for_rectangles_basic-shape-rect)
6767

6868
## Specifications
6969

files/en-us/web/css/css_images/using_object-view-box/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ This example demonstrates using the `object-view-box` property to zoom a section
3939

4040
### HTML
4141

42-
We include an {{htmlelement("img")}} element and a [`range`](Web/HTML/Reference/Elements/input/range) {{htmlelement("input")}} element, with an associated {{htmlelement("label")}}. The natural dimensions, or intrinsic size, of the original leopard image are `1244px` wide by `416px` tall, with an {{glossary("aspect ratio")}} of `3:1`.
42+
We include an {{htmlelement("img")}} element and a [`range`](/en-US/docs/Web/HTML/Reference/Elements/input/range) {{htmlelement("input")}} element, with an associated {{htmlelement("label")}}. The natural dimensions, or intrinsic size, of the original leopard image are `1244px` wide by `416px` tall, with an {{glossary("aspect ratio")}} of `3:1`.
4343

4444
```html
4545
<img
@@ -128,8 +128,8 @@ We can create a panning effect by changing the coordinates of the view box windo
128128
<p>
129129
<label for="position">Left offset: </label>
130130
<input type="range" id="position" min="0" max="900" value="450" />
131-
<output>
132131
</p>
132+
<output></output>
133133
```
134134

135135
```css hidden

files/en-us/web/css/dashed-function/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ browser-compat: css.types.dashed-function
66
sidebar: cssref
77
---
88

9-
The **`<dashed-function>`** [CSS](/en-US/docs/Web/CSS) [data type](/en-US/docs/Web/CSS/CSS_Values_and_Units/CSS_data_types) represents the syntax used to call [CSS custom functions](/en-US/docs/Web/CSS/CSS_custom_functions_and_mixins/Using_custom_functions), which are defined using the {{cssxref("@function")}} at-rule.
9+
The **`<dashed-function>`** [CSS](/en-US/docs/Web/CSS) [data type](/en-US/docs/Web/CSS/CSS_values_and_units/CSS_data_types) represents the syntax used to call [CSS custom functions](/en-US/docs/Web/CSS/CSS_custom_functions_and_mixins/Using_custom_functions), which are defined using the {{cssxref("@function")}} at-rule.
1010

1111
## Syntax
1212

files/en-us/web/css/object-view-box/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ object-view-box: none;
4747
#example-element {
4848
height: 100%;
4949
width: 100%;
50-
border: 2px dotted #888;
50+
border: 2px dotted #888888;
5151
}
5252

5353
@supports not (object-view-box: none) {
@@ -88,7 +88,7 @@ object-view-box: unset;
8888
- `none`
8989
- : The element does not have a view box. This is the default.
9090

91-
- [`<basic-shape-rect>`](/en-US/docs/Web/CSS/basic-shape#basic-shape-rect)
91+
- [`<basic-shape-rect>`](/en-US/docs/Web/CSS/basic-shape#syntax_for_rectangles_basic-shape-rect)
9292
- : A {{cssxref("basic-shape/inset","inset()")}}, {{cssxref("basic-shape/xywh","xywh()")}}, or {{cssxref("basic-shape/rect","rect()")}} function specifying a view box for an element with natural dimensions (replaced elements). Resolves to `none` otherwise.
9393

9494
## Description
@@ -219,7 +219,7 @@ This example demonstrates using the `object-view-box` property to zoom a section
219219

220220
#### HTML
221221

222-
We include an {{htmlelement("img")}} element and a [`range`](Web/HTML/Reference/Elements/input/range) {{htmlelement("input")}} element, with an associated {{htmlelement("label")}}. The natural dimensions, or intrinsic size, of the original leopard image are `1244px` wide by `416px` tall, with an {{glossary("aspect ratio")}} of `3:1`.
222+
We include an {{htmlelement("img")}} element and a [`range`](/en-US/docs/Web/HTML/Reference/Elements/input/range) {{htmlelement("input")}} element, with an associated {{htmlelement("label")}}. The natural dimensions, or intrinsic size, of the original leopard image are `1244px` wide by `416px` tall, with an {{glossary("aspect ratio")}} of `3:1`.
223223

224224
```html
225225
<img

0 commit comments

Comments
 (0)