Skip to content

Commit 3d06d82

Browse files
authored
Lint: spaces around CSS comments, from/to keyframe selectors (#40608)
1 parent 9944f7b commit 3d06d82

File tree

11 files changed

+20
-17
lines changed

11 files changed

+20
-17
lines changed

files/en-us/learn_web_development/core/frameworks_libraries/svelte_todo_list_beginning/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ body {
465465
line-height: 1.31579;
466466
}
467467
}
468-
/*END RESETS*/
468+
/* END RESETS */
469469

470470
/* GLOBAL STYLES */
471471
.form-group > input[type="text"] {

files/en-us/learn_web_development/core/frameworks_libraries/vue_styling/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ While this tutorial will not be using such tools, it's good to know that when in
6161
Add the following contents to the `reset.css` file:
6262

6363
```css
64-
/*reset.css*/
64+
/* reset.css */
6565
/* RESETS */
6666
*,
6767
*::before,
@@ -137,7 +137,7 @@ body {
137137
line-height: 1.31579;
138138
}
139139
}
140-
/*END RESETS*/
140+
/* END RESETS */
141141
```
142142

143143
Next, in your `src/main.js` file, import the `reset.css` file like so:

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -563,9 +563,9 @@ div p + p {
563563
"Commenting out" code is also useful for temporarily disabling sections of code for testing. In the example below, the rules for `.special` are disabled by "commenting out" the code.
564564

565565
```css
566-
/*.special {
566+
/* .special {
567567
color: red;
568-
}*/
568+
} */
569569

570570
p {
571571
color: blue;

files/en-us/web/accessibility/guides/colors_and_luminance/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ color: hsl(300deg 100% 50% / 100%);
8282
color: hwb(300deg 0% 0%);
8383
color: hwb(300 0% 0% / 1);
8484

85-
/* by LAB representation of the sRGB value*/
85+
/* by LAB representation of the sRGB value */
8686
color: lab(60 93.56 -60.5);
8787
color: lab(60 93.56 -60.5 / 1);
8888

files/en-us/web/css/@keyframes/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,13 +113,13 @@ Declarations in a keyframe qualified with `!important` are ignored.
113113

114114
```css
115115
@keyframes important1 {
116-
from {
116+
0% {
117117
margin-top: 50px;
118118
}
119119
50% {
120120
margin-top: 150px !important; /* ignored */
121121
}
122-
to {
122+
100% {
123123
margin-top: 100px;
124124
}
125125
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ The **`all`** [shorthand](/en-US/docs/Web/CSS/CSS_cascade/Shorthand_properties)
1111
{{InteractiveExample("CSS Demo: all")}}
1212

1313
```css interactive-example-choice
14-
/*no all property*/
14+
/* no all property */
1515
```
1616

1717
```css interactive-example-choice

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ svg {
150150
height: 100%;
151151
}
152152

153-
/* This path is displayed on hover*/
153+
/* This path is displayed on hover */
154154
#svg_css_ex1:hover path {
155155
d: path("M20,80 L50,20 L80,80");
156156
}

files/en-us/web/css/font-style/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ Click "Play" in the code blocks below to edit the example in the MDN Playground.
110110
font:
111111
2rem "AmstelvarAlpha",
112112
sans-serif;
113-
/*font-variation-settings: "slnt" 12;*/
113+
/* font-variation-settings: "slnt" 12; */
114114
font-style: oblique 23deg;
115115
}
116116
```

files/en-us/web/css/transform-function/matrix3d/index.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ Another `transform3d()` example, which implements an animated combined translate
210210

211211
#### CSS
212212

213-
```css-nolint
213+
```css
214214
html {
215215
width: 100%;
216216
}
@@ -236,7 +236,7 @@ body {
236236
}
237237

238238
@keyframes MotionScale {
239-
from {
239+
0% {
240240
/*
241241
Identity matrix is used as basis here.
242242
The matrix below describes the
@@ -246,6 +246,7 @@ body {
246246
Translates every Z point by 0
247247
Scales down by 10%
248248
*/
249+
/* prettier-ignore */
249250
transform: matrix3d(
250251
1, 0, 0, 0,
251252
0, 1, 0, 0,
@@ -254,15 +255,17 @@ body {
254255
);
255256
}
256257
50% {
258+
/* prettier-ignore */
257259
transform: matrix3d(
258260
1, 0, 0, 0,
259261
0, 1, 0, 0,
260262
0, 0, 1, 0,
261263
0, 0, 0, 0.9
262264
);
263265
}
264-
to {
265-
transform: matrix3d(
266+
100% {
267+
/* prettier-ignore */
268+
transform: matrix3d(
266269
1, 0, 0, 0,
267270
0, 1, 0, 0,
268271
0, 0, 1, 0,

files/en-us/web/html/reference/elements/input/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -895,7 +895,7 @@ It is possible to target different types of form controls based on their [`type`
895895
input[type="password"] {
896896
}
897897

898-
/* matches a form control whose valid values are limited to a range of values*/
898+
/* matches a form control whose valid values are limited to a range of values */
899899
input[min][max] {
900900
}
901901

0 commit comments

Comments
 (0)