详细说明: - 添加了V2版本的工作流页面和结果页面 - 更新了Serena记忆文件 - 添加了详细实施计划文档 - 优化了Vite配置 - 更新了项目文档CLAUDE.md - 构建了演示系统的dist版本 - 包含了exhibition-demo的完整依赖
35 lines
819 B
JavaScript
35 lines
819 B
JavaScript
let OldValue = require('../old-value')
|
|
let Value = require('../value')
|
|
|
|
class Pixelated extends Value {
|
|
/**
|
|
* Different name for WebKit and Firefox
|
|
*/
|
|
old(prefix) {
|
|
if (prefix === '-webkit-') {
|
|
return new OldValue(this.name, '-webkit-optimize-contrast')
|
|
}
|
|
if (prefix === '-moz-') {
|
|
return new OldValue(this.name, '-moz-crisp-edges')
|
|
}
|
|
return super.old(prefix)
|
|
}
|
|
|
|
/**
|
|
* Use non-standard name for WebKit and Firefox
|
|
*/
|
|
replace(string, prefix) {
|
|
if (prefix === '-webkit-') {
|
|
return string.replace(this.regexp(), '$1-webkit-optimize-contrast')
|
|
}
|
|
if (prefix === '-moz-') {
|
|
return string.replace(this.regexp(), '$1-moz-crisp-edges')
|
|
}
|
|
return super.replace(string, prefix)
|
|
}
|
|
}
|
|
|
|
Pixelated.names = ['pixelated']
|
|
|
|
module.exports = Pixelated
|