0
Is its necessary to use -webkit after border-box or any other property name?
2 Antworten
+ 4
No.
A vendor prefix such as "webkit-" is important when CSS properties are new but box-sizing has been supported for almost 10 years. You'd need a pretty old browser to get any advantage from webkit-box-sizing as apposed to just box-sizing. The border-box value was introduced as a value for the box-sizing property just as long ago.
If I had this type of question, I would look up the specific property on a site like https://developer.mozilla.org/en-US/docs/Web/CSS/box-sizing and see generally how old the supporting browser versions were.
- Newer than 2 years and I'd try to add all the prefixes I can and carefully consider what happens if the property doesn't work at all.
- 2-5 years and I might add prefixes if I knew my visitors did an average to below average job of updating their browsers.
- 5-10 years and I'll stop worrying about any prefixes. It would be a rare project where support for browsers that old was important.
+ 3
see it from Sololearn courses css
i will help you👍