Skip to content

Commit 924fc2c

Browse files
Lightning00BladeDevtools-frontend LUCI CQ
authored andcommitted
[deps] Update StyleLint to v15.11
Info at https://stylelint.io/migration-guide/to-15 Our custom rule needed to be updated to reflect a small change. All changes are separated into patches for ease of review. More work is need for a v16 migration so separating it to reduce risks of breaking. Bug: none Change-Id: I616829fba25b06bf8febe8390074046ad582f531 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6126881 Commit-Queue: Nikolay Vitkov <[email protected]> Reviewed-by: Benedikt Meurer <[email protected]>
1 parent d141150 commit 924fc2c

File tree

1,384 files changed

+80597
-21863
lines changed

Some content is hidden

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

1,384 files changed

+80597
-21863
lines changed

.stylelintrc.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
"comment-empty-line-before": null,
1212
"declaration-no-important": true,
1313
"color-named": "never",
14-
"max-empty-lines": 1,
1514
"selector-type-no-unknown": [
1615
true,
1716
{
@@ -21,7 +20,6 @@
2120
]
2221
}
2322
],
24-
"max-line-length": null,
2523
"selector-class-pattern": null,
2624
"keyframes-name-pattern": null,
2725
"selector-no-vendor-prefix": null,

front_end/entrypoints/inspector_main/nodeIcon.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
.node-icon {
88
width: 28px;
99
height: 26px;
10+
/* stylelint-disable-next-line custom-property-pattern */
1011
background-image: var(--image-file-nodeIcon);
1112
background-size: 17px 17px;
1213
background-repeat: no-repeat;

front_end/panels/accessibility/axBreadcrumbs.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
display: inline-block;
5555
}
5656

57-
.ax-breadcrumbs .ax-node:not(.parent):not(.children-unloaded)::before {
57+
.ax-breadcrumbs .ax-node:not(.parent, .children-unloaded)::before {
5858
background-color: transparent;
5959
}
6060

front_end/panels/ai_assistance/components/chatView.css

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -512,8 +512,7 @@ button.link {
512512
}
513513

514514
main {
515-
overflow-x: hidden;
516-
overflow-y: auto;
515+
overflow: hidden auto;
517516
display: flex;
518517
flex-direction: column;
519518
align-items: center;

front_end/panels/animation/animationTimeline.css

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,12 @@
4040
}
4141

4242
path.animation-keyframe {
43-
fill-opacity: 0.2;
43+
fill-opacity: 20%;
4444
}
4545

4646
.animation-node-selected path.animation-keyframe,
4747
svg.animation-ui g:first-child:hover path.animation-keyframe {
48-
fill-opacity: 0.4;
48+
fill-opacity: 40%;
4949
}
5050

5151
line.animation-line {
@@ -228,10 +228,7 @@ circle.animation-keyframe-point:active {
228228

229229
svg.animation-timeline-grid {
230230
position: absolute;
231-
left: 0;
232-
top: 0;
233-
right: 0;
234-
bottom: 0;
231+
inset: 0;
235232
width: 100%;
236233
height: 100%;
237234
}
@@ -282,7 +279,7 @@ svg.animation-ui path:focus-visible {
282279

283280
.animation-keyframe-step line {
284281
stroke-width: 2;
285-
stroke-opacity: 0.3;
282+
stroke-opacity: 30%;
286283
}
287284

288285
text.animation-timeline-grid-label {
@@ -305,6 +302,7 @@ text.animation-timeline-grid-label {
305302
position: relative;
306303

307304
& .screenshot-arrow {
305+
/* stylelint-disable-next-line custom-property-pattern */
308306
background-image: var(--image-file-popoverArrows);
309307
background-position: 0 76px;
310308
width: 19px;
@@ -360,9 +358,8 @@ text.animation-timeline-grid-label {
360358
.animation-timeline-rows,
361359
.animation-timeline-rows-hint {
362360
flex-grow: 1;
363-
overflow-y: auto;
361+
overflow: hidden auto;
364362
z-index: 1;
365-
overflow-x: hidden;
366363
}
367364

368365
.animation-timeline-rows-hint {
@@ -537,7 +534,7 @@ text.animation-timeline-grid-label {
537534
outline-offset: 2px;
538535
}
539536

540-
.animation-playback-rate-button:not(.selected):not([disabled]):hover {
537+
.animation-playback-rate-button:not(.selected, [disabled]):hover {
541538
background: var(--sys-color-state-hover-on-subtle);
542539
}
543540

front_end/panels/application/resourcesPanel.css

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,7 @@
6767

6868
.storage-view.query {
6969
padding: 2px 0;
70-
overflow-y: overlay;
71-
overflow-x: hidden;
70+
overflow: hidden overlay;
7271
}
7372

7473
.storage-view .filter-bar {

front_end/panels/console/consolePinPane.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,6 @@
6969
}
7070

7171
.console-pin:focus-within .console-pin-preview,
72-
.console-pin-name:not(:focus-within):not(:hover) {
72+
.console-pin-name:not(:focus-within, :hover) {
7373
opacity: 60%;
7474
}

front_end/panels/console/consoleView.css

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@
246246
}
247247
}
248248

249-
.console-message-wrapper:not(.console-error-level):not(.console-warning-level) {
249+
.console-message-wrapper:not(.console-error-level, .console-warning-level) {
250250
& .console-message::before,
251251
& .console-user-command::before {
252252
width: calc(100% - 25px);
@@ -263,24 +263,24 @@
263263
}
264264
}
265265

266-
.console-message-wrapper.console-adjacent-user-command-result:not(.console-error-level):not(.console-warning-level) {
266+
.console-message-wrapper.console-adjacent-user-command-result:not(.console-error-level, .console-warning-level) {
267267
border-top-width: 0;
268268
}
269269

270270
.console-message-wrapper:focus + .console-message-wrapper {
271271
border-top-color: transparent;
272272
}
273273

274-
.console-message-wrapper.console-adjacent-user-command-result:not(.console-error-level):not(.console-warning-level):focus {
274+
.console-message-wrapper.console-adjacent-user-command-result:not(.console-error-level, .console-warning-level):focus {
275275
border-top-width: 1px;
276276
}
277277

278-
.console-message-wrapper.console-adjacent-user-command-result:not(.console-error-level):not(.console-warning-level):focus .console-message {
278+
.console-message-wrapper.console-adjacent-user-command-result:not(.console-error-level, .console-warning-level):focus .console-message {
279279
padding-top: 2px;
280280
min-height: 16px;
281281
}
282282

283-
.console-message-wrapper.console-adjacent-user-command-result:not(.console-error-level):not(.console-warning-level):focus .command-result-icon {
283+
.console-message-wrapper.console-adjacent-user-command-result:not(.console-error-level, .console-warning-level):focus .command-result-icon {
284284
top: 3px;
285285
}
286286

front_end/panels/css_overview/cssOverviewCompletedView.css

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@
135135
top: 0;
136136
width: 26px;
137137
height: 26px;
138+
/* stylelint-disable-next-line custom-property-pattern */
138139
background-image: var(--image-file-cssoverview_icons_2x);
139140
background-size: 104px 26px;
140141
}
@@ -247,12 +248,12 @@
247248

248249
&:hover .details,
249250
&:focus .details {
250-
color: color-mix(in sRGB, var(--sys-color-primary), var(--sys-color-state-hover-on-prominent) 6%);
251+
color: color-mix(in srgb, var(--sys-color-primary), var(--sys-color-state-hover-on-prominent) 6%);
251252
}
252253

253254
&:hover .bar,
254255
&:focus .bar {
255-
background-color: color-mix(in sRGB, var(--sys-color-primary-bright), var(--sys-color-state-hover-on-prominent) 6%);
256+
background-color: color-mix(in srgb, var(--sys-color-primary-bright), var(--sys-color-state-hover-on-prominent) 6%);
256257
color: var(--sys-color-on-primary);
257258
}
258259
}

front_end/panels/elements/elementsTreeOutline.css

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ select {
248248
}
249249
/* DOM update highlight */
250250
@keyframes dom-update-highlight-animation {
251-
from {
251+
0% {
252252
background-color: var(--sys-color-token-tag);
253253
color: var(--sys-color-cdt-base-container);
254254
}
@@ -257,13 +257,13 @@ select {
257257
background-color: var(--sys-color-token-meta);
258258
}
259259

260-
to {
260+
100% {
261261
background-color: inherit;
262262
}
263263
}
264264

265265
@keyframes dom-update-highlight-animation-dark {
266-
from {
266+
0% {
267267
background-color: var(--sys-color-token-tag);
268268
color: var(--sys-color-cdt-base-container);
269269
}
@@ -273,7 +273,7 @@ select {
273273
color: inherit;
274274
}
275275

276-
to {
276+
100% {
277277
background-color: inherit;
278278
}
279279
}
@@ -335,7 +335,7 @@ li.selected:not(.always-parent) + ol.children {
335335
}
336336

337337
li.hovered:not(.always-parent) + ol.children:not(.shadow-root) {
338-
--override-indentation-level-border-color: color-mix(in sRGB, var(--ref-palette-neutral0) 10%, transparent);
338+
--override-indentation-level-border-color: color-mix(in srgb, var(--ref-palette-neutral0) 10%, transparent);
339339
}
340340

341341
.elements-tree-outline ol.shadow-root {
@@ -366,6 +366,7 @@ li.hovered:not(.always-parent) + ol.children:not(.shadow-root) {
366366
}
367367

368368
.violating-element {
369+
/* stylelint-disable-next-line custom-property-pattern */
369370
background-image: var(--image-file-errorWave);
370371
background-repeat: repeat-x;
371372
background-position: bottom;

0 commit comments

Comments
 (0)