⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.1
Server IP:
185.238.29.86
Server:
Linux server2 6.8.12-6-pve #1 SMP PREEMPT_DYNAMIC PMX 6.8.12-6 (2024-12-19T19:05Z) x86_64
Server Software:
nginx/1.18.0
PHP Version:
8.1.31
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
var
/
www
/
invoice
/
node_modules
/
csso
/
lib
/
replace
/
Edit File: Percentage.js
var lexer = require('css-tree').lexer; var packNumber = require('./Number').pack; var blacklist = new Set([ // see https://github.com/jakubpawlowicz/clean-css/issues/957 'width', 'min-width', 'max-width', 'height', 'min-height', 'max-height', // issue #410: Don’t remove units in flex-basis value for (-ms-)flex shorthand // issue #362: shouldn't remove unit in -ms-flex since it breaks flex in IE10/11 // issue #200: shouldn't remove unit in flex since it breaks flex in IE10/11 'flex', '-ms-flex' ]); module.exports = function compressPercentage(node, item) { node.value = packNumber(node.value, item); if (node.value === '0' && this.declaration && !blacklist.has(this.declaration.property)) { // try to convert a number item.data = { type: 'Number', loc: node.loc, value: node.value }; // that's ok only when new value matches on length if (!lexer.matchDeclaration(this.declaration).isType(item.data, 'length')) { // otherwise rollback changes item.data = node; } } };
Simpan