You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 439da85
Browse filesBrowse the repository at this point in the historyBrowse files
test(core): every quoted at-rule key a few characters off a reference spelling is that spelling
From the review of this pull request: a capital or a digit in the
at-rule name ('@media (pointer: coarse)') still passed every case, after
two earlier reviews found one more spelling class each. Rather than one
more case, the scan now reads every quoted string that starts with '@'
and applies two rules, so no drift depends on which character moved:
one that names the pointer, the touch callout or a compact size, in any
case, is a reference spelling or a query the presentation does not
decide; and one within three characters of any of those spellings, case
aside, is that spelling exactly, wherever the change sits.
Mutant evidence, each passing the scan before this change and failing
it after: '@media (pointer: coarse)', '@m3dia (pointer: coarse)',
'@media (POINTER: COARSE)' and '@media (pointr: corse)' in Switch. The
earlier drifts ('@meda', '-webkit-touch-calout', 'widht') still fail.
it('keeps every literal pointer, touch-callout and compact at-rule key in core one of the reference spellings',()=>{
232
-
// Any quoted at-rule key, whatever its at-rule is spelled: one that names
233
-
// the pointer or the touch callout, or the compact width and height, is
234
-
// one of the resolver's own, or a query the presentation does not
235
-
// decide (a second pointer, a fine pointer, Reduce Motion split by
236
-
// pointer). Any word of a pointer or callout query classes it, so a typo
237
-
// inside one word still counts.
257
+
it('keeps every quoted at-rule key in core that names the pointer, the touch callout or a compact size, or that is a few characters off a reference spelling, one of the reference spellings',()=>{
258
+
// Every quoted string that starts with `@` is read, whatever its at-rule
259
+
// is spelled. Two rules, so no drift depends on which character moved:
260
+
// - one that names the pointer or the touch callout (any word of either
261
+
// query, any case), or a compact size with its breakpoint, is one of
262
+
// the resolver's own spellings or a query the presentation does not
263
+
// decide (a second pointer, a fine pointer, Reduce Motion split by
264
+
// pointer);
265
+
// - one within three characters of any of those spellings, case aside,
266
+
// is that spelling exactly: a capital, a digit or a typo anywhere, in
0 commit comments