Skip to content

Commit

Permalink
update tests to reflect changes in Lightning CSS
Browse files Browse the repository at this point in the history
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
  • Loading branch information
RobinMalfait authored and depfu[bot] committed Aug 28, 2023
1 parent 42e168b commit 696810f
Show file tree
Hide file tree
Showing 2 changed files with 187 additions and 176 deletions.
12 changes: 10 additions & 2 deletions tests/plugins/__snapshots__/preflight.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,11 @@ progress {
vertical-align: baseline;
}
:is(::-webkit-inner-spin-button, ::-webkit-outer-spin-button) {
::-webkit-inner-spin-button {
height: auto;
}
::-webkit-outer-spin-button {
height: auto;
}
Expand Down Expand Up @@ -308,7 +312,11 @@ progress {
vertical-align: baseline;
}
:is(::-webkit-inner-spin-button, ::-webkit-outer-spin-button) {
::-webkit-inner-spin-button {
height: auto;
}
::-webkit-outer-spin-button {
height: auto;
}
Expand Down

0 comments on commit 696810f

Please sign in to comment.