/
lostSun
/
project-client-server-apps
Обзор
Документация
Войти
/
lostSun
/
project-client-server-apps
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
node_modules/cssstyle/lib/properties/fontWeight.js
33 строки
505 B
1lostsun
initial commit
05 май 2025, 11:35
05 май 2025, 11:35
fe8f535
Код
Авторство
О чём код?
'use strict'; var valid_weights = [ 'normal', 'bold', 'bolder', 'lighter', '100', '200', '300', '400', '500', '600', '700', '800', '900', 'inherit', ]; module.exports.isValid = function isValid(v) { return valid_weights.indexOf(v.toLowerCase()) !== -1; }; module.exports.definition = { set: function(v) { this._setProperty('font-weight', v); }, get: function() { return this.getPropertyValue('font-weight'); }, enumerable: true, configurable: true, };