进行了一些小修复
This commit is contained in:
@@ -77,3 +77,14 @@ test('theme runtime never changes native listener passivity for third-party edit
|
||||
assert.doesNotMatch(publicRuntime, /EventTarget\.prototype\.addEventListener|__passiveSupported/);
|
||||
assert.equal(fs.existsSync(path.join(root, 'assets/js/passive-events.js')), false);
|
||||
});
|
||||
|
||||
test('public theme does not inject a global focus-visible ring', () => {
|
||||
const globalFocusRule = /(^|})\s*:focus-visible\s*\{/m;
|
||||
const reset = read('assets/css/core/reset.css');
|
||||
const publicCss = read('assets/css/build/public.css');
|
||||
const publicMinCss = read('assets/css/build/public.min.css');
|
||||
|
||||
assert.doesNotMatch(reset, globalFocusRule);
|
||||
assert.doesNotMatch(publicCss, globalFocusRule);
|
||||
assert.doesNotMatch(publicMinCss, globalFocusRule);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user