question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Check -webkit-box-shadow

See original GitHub issue

Links:

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:closed
  • Created 6 years ago
  • Comments:14 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
aicommented, Jun 26, 2017

Use console.log(autoprefixer().info())

1reaction
aicommented, Jun 26, 2017

Maybe the best browserslist for you will be:

"browserslist": [
  "> 1% in RU"
]
Read more comments on GitHub >

github_iconTop 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 >
CSS Box Shadow - CSS-Tricks
Used in casting shadows off block-level elements (like divs).
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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found