This project is archived and is in readonly mode.

#1007 ✓invalid

Adding a prefix property to Browser/Browser.Engine

Reported by Arieh | September 15th, 2010 @ 12:10 PM | in 2.0 (closed)

I thought it might be useful to add a prefix property to Browser, that will contain the css prefix used for the current browser.
Something like:

Browser.prefix = (Browser.Engine.gecko) 

             ? 'moz' : (Browser.Engine.webkit)
             ? 'webkit' : (Browser.Engine.presto) 
             ? 'o' : 'ms';</code>

This can be very useful for apps working with CSS3

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Shared Ticket Bins