wishthis/node_modules/autoprefixer/lib/hacks/text-emphasis-position.js

15 lines
357 B
JavaScript
Raw Normal View History

2023-08-17 09:47:40 +00:00
let Declaration = require('../declaration')
2022-01-21 08:28:41 +00:00
2023-08-17 09:47:40 +00:00
class TextEmphasisPosition extends Declaration {
set(decl, prefix) {
2022-01-21 08:28:41 +00:00
if (prefix === '-webkit-') {
2023-08-17 09:47:40 +00:00
decl.value = decl.value.replace(/\s*(right|left)\s*/i, '')
2022-01-21 08:28:41 +00:00
}
2023-08-17 09:47:40 +00:00
return super.set(decl, prefix)
}
}
2022-01-21 08:28:41 +00:00
2023-08-17 09:47:40 +00:00
TextEmphasisPosition.names = ['text-emphasis-position']
2022-01-21 08:28:41 +00:00
2023-08-17 09:47:40 +00:00
module.exports = TextEmphasisPosition