Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Developing for Multiple Browsers

Developing for Multiple Browsers

Andrew Thal

July 06, 2012
Tweet

More Decks by Andrew Thal

Other Decks in Programming

Transcript

  1. Gradient .purchases div.send-as-gift { background-color: #f1f1f1; background-image: -webkit-gradient(linear, left top,

    left bottom, from(rgb(241, 241, 241)), to(rgb(228, 228, 228))); background-image: -webkit-linear-gradient(top, rgb(241, 241, 241), rgb(228, 228, 228)); background-image: -moz-linear-gradient(top, rgb(241, 241, 241), rgb(228, 228, 228)); background-image: -o-linear-gradient(top, rgb(241, 241, 241), rgb(228, 228, 228)); background-image: -ms-linear-gradient(top, rgb(241, 241, 241), rgb(228, 228, 228)); background-image: linear-gradient(top, rgb(241, 241, 241), rgb(228, 228, 228)); filter: progid:DXImageTransform.Microsoft.gradient(startColorStr='#f1f1f1', EndColorStr='#e4e4e4'); } Sunday, March 17, 13
  2. Gradient .purchases div.send-as-gift { background-color: #f1f1f1; background-image: -webkit-gradient(linear, left top,

    left bottom, from(rgb(241, 241, 241)), to(rgb(228, 228, 228))); background-image: -webkit-linear-gradient(top, rgb(241, 241, 241), rgb(228, 228, 228)); background-image: -moz-linear-gradient(top, rgb(241, 241, 241), rgb(228, 228, 228)); background-image: -o-linear-gradient(top, rgb(241, 241, 241), rgb(228, 228, 228)); background-image: -ms-linear-gradient(top, rgb(241, 241, 241), rgb(228, 228, 228)); background-image: linear-gradient(top, rgb(241, 241, 241), rgb(228, 228, 228)); filter: progid:DXImageTransform.Microsoft.gradient(startColorStr='#f1f1f1', EndColorStr='#e4e4e4'); } Webkit (Chrome/Safari) Sunday, March 17, 13
  3. Gradient .purchases div.send-as-gift { background-color: #f1f1f1; background-image: -webkit-gradient(linear, left top,

    left bottom, from(rgb(241, 241, 241)), to(rgb(228, 228, 228))); background-image: -webkit-linear-gradient(top, rgb(241, 241, 241), rgb(228, 228, 228)); background-image: -moz-linear-gradient(top, rgb(241, 241, 241), rgb(228, 228, 228)); background-image: -o-linear-gradient(top, rgb(241, 241, 241), rgb(228, 228, 228)); background-image: -ms-linear-gradient(top, rgb(241, 241, 241), rgb(228, 228, 228)); background-image: linear-gradient(top, rgb(241, 241, 241), rgb(228, 228, 228)); filter: progid:DXImageTransform.Microsoft.gradient(startColorStr='#f1f1f1', EndColorStr='#e4e4e4'); } Moz (Firefox) Sunday, March 17, 13
  4. Gradient .purchases div.send-as-gift { background-color: #f1f1f1; background-image: -webkit-gradient(linear, left top,

    left bottom, from(rgb(241, 241, 241)), to(rgb(228, 228, 228))); background-image: -webkit-linear-gradient(top, rgb(241, 241, 241), rgb(228, 228, 228)); background-image: -moz-linear-gradient(top, rgb(241, 241, 241), rgb(228, 228, 228)); background-image: -o-linear-gradient(top, rgb(241, 241, 241), rgb(228, 228, 228)); background-image: -ms-linear-gradient(top, rgb(241, 241, 241), rgb(228, 228, 228)); background-image: linear-gradient(top, rgb(241, 241, 241), rgb(228, 228, 228)); filter: progid:DXImageTransform.Microsoft.gradient(startColorStr='#f1f1f1', EndColorStr='#e4e4e4'); } O (Opera) Sunday, March 17, 13
  5. Gradient .purchases div.send-as-gift { background-color: #f1f1f1; background-image: -webkit-gradient(linear, left top,

    left bottom, from(rgb(241, 241, 241)), to(rgb(228, 228, 228))); background-image: -webkit-linear-gradient(top, rgb(241, 241, 241), rgb(228, 228, 228)); background-image: -moz-linear-gradient(top, rgb(241, 241, 241), rgb(228, 228, 228)); background-image: -o-linear-gradient(top, rgb(241, 241, 241), rgb(228, 228, 228)); background-image: -ms-linear-gradient(top, rgb(241, 241, 241), rgb(228, 228, 228)); background-image: linear-gradient(top, rgb(241, 241, 241), rgb(228, 228, 228)); filter: progid:DXImageTransform.Microsoft.gradient(startColorStr='#f1f1f1', EndColorStr='#e4e4e4'); } IE 6-9 Sunday, March 17, 13
  6. Gradient .purchases div.send-as-gift { background-color: #f1f1f1; background-image: -webkit-gradient(linear, left top,

    left bottom, from(rgb(241, 241, 241)), to(rgb(228, 228, 228))); background-image: -webkit-linear-gradient(top, rgb(241, 241, 241), rgb(228, 228, 228)); background-image: -moz-linear-gradient(top, rgb(241, 241, 241), rgb(228, 228, 228)); background-image: -o-linear-gradient(top, rgb(241, 241, 241), rgb(228, 228, 228)); background-image: -ms-linear-gradient(top, rgb(241, 241, 241), rgb(228, 228, 228)); background-image: linear-gradient(top, rgb(241, 241, 241), rgb(228, 228, 228)); filter: progid:DXImageTransform.Microsoft.gradient(startColorStr='#f1f1f1', EndColorStr='#e4e4e4'); } IE 10 Consumer Preview Sunday, March 17, 13
  7. Gradient .purchases div.send-as-gift { background-color: #f1f1f1; background-image: -webkit-gradient(linear, left top,

    left bottom, from(rgb(241, 241, 241)), to(rgb(228, 228, 228))); background-image: -webkit-linear-gradient(top, rgb(241, 241, 241), rgb(228, 228, 228)); background-image: -moz-linear-gradient(top, rgb(241, 241, 241), rgb(228, 228, 228)); background-image: -o-linear-gradient(top, rgb(241, 241, 241), rgb(228, 228, 228)); background-image: -ms-linear-gradient(top, rgb(241, 241, 241), rgb(228, 228, 228)); background-image: linear-gradient(top, rgb(241, 241, 241), rgb(228, 228, 228)); filter: progid:DXImageTransform.Microsoft.gradient(startColorStr='#f1f1f1', EndColorStr='#e4e4e4'); } W3C Markup, IE10 Release Preview Sunday, March 17, 13
  8. Gradient .purchases div.send-as-gift { background-color: #f1f1f1; background-image: -webkit-gradient(linear, left top,

    left bottom, from(rgb(241, 241, 241)), to(rgb(228, 228, 228))); background-image: -webkit-linear-gradient(top, rgb(241, 241, 241), rgb(228, 228, 228)); background-image: -moz-linear-gradient(top, rgb(241, 241, 241), rgb(228, 228, 228)); background-image: -o-linear-gradient(top, rgb(241, 241, 241), rgb(228, 228, 228)); background-image: -ms-linear-gradient(top, rgb(241, 241, 241), rgb(228, 228, 228)); background-image: linear-gradient(top, rgb(241, 241, 241), rgb(228, 228, 228)); filter: progid:DXImageTransform.Microsoft.gradient(startColorStr='#f1f1f1', EndColorStr='#e4e4e4'); } In case a$ else fails... Sunday, March 17, 13
  9. JS Differences between versions and preview 'om ie9 test in

    ie, better to notice self than have cto notice errors Sunday, March 17, 13
  10. Final Thoughts Some people don’t use chrome Those people buy

    things Don’t upset them Sunday, March 17, 13