Skip to content

Commit 696810f

Browse files
RobinMalfaitdepfu[bot]
authored andcommitted
update tests to reflect changes in Lightning CSS
This commit (parcel-bundler/lightningcss@284debf) introduced: "Don't put unknown pseudo elements in an `:is()`" I thought this was a bug at first, but looking at MDN, these pseudo elements are non-standard: - https://developer.mozilla.org/en-US/docs/Web/CSS/::-webkit-inner-spin-button - https://developer.mozilla.org/en-US/docs/Web/CSS/::-webkit-outer-spin-button
1 parent 42e168b commit 696810f

File tree

2 files changed

+187
-176
lines changed

2 files changed

+187
-176
lines changed

tests/plugins/__snapshots__/preflight.test.js.snap

+10-2
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,11 @@ progress {
115115
vertical-align: baseline;
116116
}
117117
118-
:is(::-webkit-inner-spin-button, ::-webkit-outer-spin-button) {
118+
::-webkit-inner-spin-button {
119+
height: auto;
120+
}
121+
122+
::-webkit-outer-spin-button {
119123
height: auto;
120124
}
121125
@@ -308,7 +312,11 @@ progress {
308312
vertical-align: baseline;
309313
}
310314
311-
:is(::-webkit-inner-spin-button, ::-webkit-outer-spin-button) {
315+
::-webkit-inner-spin-button {
316+
height: auto;
317+
}
318+
319+
::-webkit-outer-spin-button {
312320
height: auto;
313321
}
314322

0 commit comments

Comments
 (0)