Urara-Blog/node_modules/.pnpm-store/v3/files/b8/95b005df294411dc6a30944eec9a40637fa0711789a587df04163eec62d408b8ffb7282648613f3eaeeb2ee06541cd3307804965e895fa7453f4f8ecd45b06
2022-08-14 01:14:53 +08:00

27 lines
736 B
Text

'use strict';
const BasePlugin = require('../plugin');
const { IE_5_5, IE_6, IE_7, IE_8 } = require('../dictionary/browsers');
const { MEDIA_QUERY } = require('../dictionary/identifiers');
const { ATRULE } = require('../dictionary/postcss');
module.exports = class MediaSlash0Slash9 extends BasePlugin {
/** @param {import('postcss').Result} result */
constructor(result) {
super([IE_5_5, IE_6, IE_7, IE_8], [ATRULE], result);
}
/**
* @param {import('postcss').AtRule} rule
* @return {void}
*/
detect(rule) {
const params = rule.params.trim();
if (params.toLowerCase() === '\\0screen\\,screen\\9') {
this.push(rule, {
identifier: MEDIA_QUERY,
hack: params,
});
}
}
};