mirror of
https://github.com/Sevichecc/Urara-Blog.git
synced 2025-05-03 13:09:29 +08:00
19 lines
386 B
Text
19 lines
386 B
Text
let Declaration = require('../declaration')
|
|
|
|
class Filter extends Declaration {
|
|
/**
|
|
* Check is it Internet Explorer filter
|
|
*/
|
|
check(decl) {
|
|
let v = decl.value
|
|
return (
|
|
!v.toLowerCase().includes('alpha(') &&
|
|
!v.includes('DXImageTransform.Microsoft') &&
|
|
!v.includes('data:image/svg+xml')
|
|
)
|
|
}
|
|
}
|
|
|
|
Filter.names = ['filter']
|
|
|
|
module.exports = Filter
|