2

In Visual Studio, I create a new ASP.NET project. It creates a basic construct that one can then go in and edit.

In the Site.css file, there are these calls, I'm guessing each is valid for a different type of browser:

background-image: -ms-linear-gradient(left, #7ac0da 0%, #a4d4e6 100%);
background-image: -o-linear-gradient(left, #7ac0da 0%, #a4d4e6 100%);
background-image: -webkit-gradient(linear, left top, right top, color-stop(0, #7ac0da), color-stop(1, #a4d4e6));
background-image: -webkit-linear-gradient(left, #7ac0da 0%, #a4d4e6 100%);

Believe it or not, I can't seem to find a single entry on the entire Internet for -ms-linear-gradient, -o-linear-gradient, -webkit-gradient, or -webkit-linear-gradient.

I'm just trying to find some documentation on what sort of parameters each of these functions is expecting. If they are like javascript, then they accept multiple versions of parameters.

Would someone mind linking or posting a little documentation on here?

  • 1
    You need quotes when searching for something starting with -, otherwise google will take it as "Not". So search for "-ms-linear-gradient" – MTilsted Dec 03 '15 at 00:48
  • 1
    When you search, e.g. via Google, try encapsulating the string in double quotes, e.g. `"-ms-linear-gradient"`. – Aaron Dec 03 '15 at 00:49
  • That helps a LOT! Thanks to you both. –  Dec 03 '15 at 00:50
  • 1
    Those are [vendor tags](http://stackoverflow.com/q/75466380), e.g. `-ms == microsoft, -o == opera, -webkit == standards driven (??, but think chrome and safari), -moz == mozilla/firefox`. – Jared Farrish Dec 03 '15 at 01:32

1 Answers1

2

According to CanIUse.com, you can use one ruleset without the vendor prefixes (i.e. just use linear-gradient)

  • ms: microsoft
  • o: opera
  • webkit: standards driven (think chrome and safari)
  • moz: mozilla/firefox
zer00ne
  • 41,936
  • 6
  • 41
  • 68