Check -webkit-box-shadow
See original GitHub issueLinks:
Environment
npm -v // 5.0.2
node -v //v6.9.1
package.json
{
"name": "test",
"version": "0.0.0",
"main": "test.js",
"devDependencies": {
"autoprefixer": "^7.1.1",
"postcss": "^6.0.1"
}
}
test.js
var autoprefixer = require('autoprefixer');
var postcss = require('postcss');
var css = `
.example {
box-shadow: 0 0 0 1px red inset;
}
`;
postcss([ autoprefixer({browsers: 'last 1 versions'}) ]).process(css).then(function (result) {
result.warnings().forEach(function (warn) {
console.warn(warn.toString());
});
console.log(result.css);
});
Result node ./test.js
.example {
-webkit-box-shadow: 0 0 0 1px red inset; /* how? */
box-shadow: 0 0 0 1px red inset;
}
Issue Analytics
- State:
- Created 6 years ago
- Comments:14 (8 by maintainers)
Top Results From Across the Web
box-shadow - CSS: Cascading Style Sheets - MDN Web Docs
The box-shadow CSS property adds shadow effects around an element's frame. You can set multiple effects separated by commas. A box shadow is ......
Read more >Difference between -webkit-box-shadow & box-shadow in CSS
The box-shadow is the CSS standard implementation. While the webkit-box-shadow is a browser-specific implementation for WebKit Browsers like ...
Read more >CSS box-shadow property - W3Schools
The box-shadow property attaches one or more shadows to an element. ... box-shadow: none|h-offset v-offset blur spread color |inset|initial|inherit;.
Read more >How to add box shadow to webkit-box-reflect? - Stack Overflow
What you need is a DIV element that provides a gradient above the image below. Since the DIV element is below the image,...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Use
console.log(autoprefixer().info())
Maybe the best browserslist for you will be: