Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

postcss-reduce-initial

Package Overview
Dependencies
Maintainers
4
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-reduce-initial - npm Package Compare versions

Comparing version 4.0.2 to 4.0.3

50

data/fromInitial.json

@@ -24,2 +24,4 @@ {

"block-size": "auto",
"border-block-style": "none",
"border-block-width": "medium",
"border-block-end-style": "none",

@@ -33,2 +35,4 @@ "border-block-end-width": "medium",

"border-bottom-width": "medium",
"border-end-end-radius": "0",
"border-end-start-radius": "0",
"border-image-outset": "0",

@@ -38,2 +42,4 @@ "border-image-slice": "100%",

"border-image-width": "1",
"border-inline-style": "none",
"border-inline-width": "medium",
"border-inline-end-style": "none",

@@ -48,2 +54,4 @@ "border-inline-end-width": "medium",

"border-spacing": "0",
"border-start-end-radius": "0",
"border-start-start-radius": "0",
"border-top-left-radius": "0",

@@ -123,2 +131,9 @@ "border-top-right-radius": "0",

"inline-size": "auto",
"inset": "auto",
"inset-block": "auto",
"inset-block-end": "auto",
"inset-block-start": "auto",
"inset-inline": "auto",
"inset-inline-end": "auto",
"inset-inline-start": "auto",
"isolation": "auto",

@@ -133,8 +148,9 @@ "justify-content": "normal",

"line-height": "normal",
"line-height-step": "0",
"list-style-image": "none",
"list-style-type": "disc",
"margin-block": "0",
"margin-block-end": "0",
"margin-block-start": "0",
"margin-bottom": "0",
"margin-inline": "0",
"margin-inline-end": "0",

@@ -166,6 +182,2 @@ "margin-inline-start": "0",

"offset-anchor": "auto",
"offset-block-end": "auto",
"offset-block-start": "auto",
"offset-inline-end": "auto",
"offset-inline-start": "auto",
"offset-distance": "0",

@@ -185,5 +197,7 @@ "offset-path": "none",

"overflow-wrap": "normal",
"padding-block": "0",
"padding-block-end": "0",
"padding-block-start": "0",
"padding-bottom": "0",
"padding-inline": "0",
"padding-inline-end": "0",

@@ -208,6 +222,32 @@ "padding-inline-start": "0",

"scale": "none",
"scrollbar-color": "auto",
"scrollbar-width": "auto",
"scroll-behavior": "auto",
"scroll-margin": "0",
"scroll-margin-block": "0",
"scroll-margin-block-start": "0",
"scroll-margin-block-end": "0",
"scroll-margin-bottom": "0",
"scroll-margin-inline": "0",
"scroll-margin-inline-start": "0",
"scroll-margin-inline-end": "0",
"scroll-margin-left": "0",
"scroll-margin-right": "0",
"scroll-margin-top": "0",
"scroll-padding": "auto",
"scroll-padding-block": "auto",
"scroll-padding-block-start": "auto",
"scroll-padding-block-end": "auto",
"scroll-padding-bottom": "auto",
"scroll-padding-inline": "auto",
"scroll-padding-inline-start": "auto",
"scroll-padding-inline-end": "auto",
"scroll-padding-left": "auto",
"scroll-padding-right": "auto",
"scroll-padding-top": "auto",
"scroll-snap-align": "none",
"scroll-snap-coordinate": "none",
"scroll-snap-points-x": "none",
"scroll-snap-points-y": "none",
"scroll-snap-stop": "normal",
"scroll-snap-type": "none",

@@ -214,0 +254,0 @@ "shape-image-threshold": "0.0",

4

data/toInitial.json

@@ -6,2 +6,3 @@ {

"background-size": "auto auto",
"border-block-color": "currentcolor",
"border-block-end-color": "currentcolor",

@@ -11,2 +12,3 @@ "border-block-start-color": "currentcolor",

"border-collapse": "separate",
"border-inline-color": "currentcolor",
"border-inline-end-color": "currentcolor",

@@ -23,3 +25,3 @@ "border-inline-start-color": "currentcolor",

"mask-origin": "border-box",
"mask-repeat": "no-repeat",
"mask-repeat": "repeat",
"mask-type": "luminance",

@@ -26,0 +28,0 @@ "ruby-align": "space-around",

@@ -39,12 +39,17 @@ 'use strict';

});
const initialSupport = (0, _caniuseApi.isSupported)('css-initial-value', browsers);
css.walkDecls(decl => {
const lowerCasedProp = decl.prop.toLowerCase();
if (initialSupport && (0, _has2.default)(_toInitial2.default, lowerCasedProp) && decl.value === _toInitial2.default[lowerCasedProp]) {
if (initialSupport && (0, _has2.default)(_toInitial2.default, lowerCasedProp) && decl.value.toLowerCase() === _toInitial2.default[lowerCasedProp]) {
decl.value = initial;
return;
}
if (decl.value.toLowerCase() !== initial || !_fromInitial2.default[lowerCasedProp]) {
return;
}
decl.value = _fromInitial2.default[lowerCasedProp];

@@ -51,0 +56,0 @@ });

{
"name": "postcss-reduce-initial",
"version": "4.0.2",
"version": "4.0.3",
"description": "Reduce initial definitions to the actual initial value, where possible.",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc