diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2026-05-18 23:10:59 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2026-05-18 23:41:44 +0800 |
| commit | fc87c009806dcc98867f6b58efe29b042aa01dee (patch) | |
| tree | 8f59b3f4a5b66e9dfef2d40c8d318e258a521228 /node_modules/autoprefixer/lib/hacks/border-radius.js | |
| parent | 3336b2356ee6152d9c6ae59bd9b87ccbc0958407 (diff) | |
node: updatemain
Diffstat (limited to 'node_modules/autoprefixer/lib/hacks/border-radius.js')
| -rw-r--r-- | node_modules/autoprefixer/lib/hacks/border-radius.js | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/node_modules/autoprefixer/lib/hacks/border-radius.js b/node_modules/autoprefixer/lib/hacks/border-radius.js deleted file mode 100644 index 47ea835f..00000000 --- a/node_modules/autoprefixer/lib/hacks/border-radius.js +++ /dev/null @@ -1,40 +0,0 @@ -let Declaration = require('../declaration') - -class BorderRadius extends Declaration { - /** - * Return unprefixed version of property - */ - normalize(prop) { - return BorderRadius.toNormal[prop] || prop - } - - /** - * Change syntax, when add Mozilla prefix - */ - prefixed(prop, prefix) { - if (prefix === '-moz-') { - return prefix + (BorderRadius.toMozilla[prop] || prop) - } - return super.prefixed(prop, prefix) - } -} - -BorderRadius.names = ['border-radius'] - -BorderRadius.toMozilla = {} -BorderRadius.toNormal = {} - -for (let ver of ['top', 'bottom']) { - for (let hor of ['left', 'right']) { - let normal = `border-${ver}-${hor}-radius` - let mozilla = `border-radius-${ver}${hor}` - - BorderRadius.names.push(normal) - BorderRadius.names.push(mozilla) - - BorderRadius.toMozilla[normal] = mozilla - BorderRadius.toNormal[mozilla] = normal - } -} - -module.exports = BorderRadius |
