Fix warning "Standard property 'box-shadow' is also defined for compatibility"
P粉412533525
P粉412533525 2023-10-18 00:00:05
0
2
516

I use the scrolling library and VSCode shows the following warning:

Also defines the standard property "box-shadow" for compatibility

How to fix it or at least ignore the warning on VSCode?

.scrollbar-black::-webkit-scrollbar-thumb { border-radius: 10px; -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.1); background-color: #000; }

P粉412533525
P粉412533525

reply all (2)
P粉513316221

For me, I ran into a problem where -webkit-background-clip: text; Background clipping: The hidden was-webkit-background-text had to match (box-shadow) and changed it to background clipping, then it fixed my error.

    P粉517090748

    This means that in addition to the vendor-prefixed version (-webkit-box-shadow), you should also add the standard style rules (box-shadow)

    .scrollbar-black::-webkit-scrollbar-thumb { border-radius: 10px; -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.1); box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.1); // <- Add this to fix. background-color: #000; }
      Latest Downloads
      More>
      Web Effects
      Website Source Code
      Website Materials
      Front End Template
      About us Disclaimer Sitemap
      php.cn:Public welfare online PHP training,Help PHP learners grow quickly!