/
lostSun
/
project-client-server-apps
Обзор
Документация
Войти
/
lostSun
/
project-client-server-apps
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
node_modules/cssstyle/lib/properties/backgroundAttachment.js
24 строки
568 B
1lostsun
initial commit
05 май 2025, 11:35
05 май 2025, 11:35
fe8f535
Код
Авторство
О чём код?
'use strict'; var parsers = require('../parsers'); var isValid = (module.exports.isValid = function isValid(v) { return ( parsers.valueType(v) === parsers.TYPES.KEYWORD && (v.toLowerCase() === 'scroll' || v.toLowerCase() === 'fixed' || v.toLowerCase() === 'inherit') ); }); module.exports.definition = { set: function(v) { if (!isValid(v)) { return; } this._setProperty('background-attachment', v); }, get: function() { return this.getPropertyValue('background-attachment'); }, enumerable: true, configurable: true, };