mootools/mootools-core — Issue #2218: Adding a prefix property to Browser/Browser.Engine
Author: ibolmo
Created: 2012-01-19 08:08:28+00:00
State: open
Labels: enhancement

(from [Lighthouse](https://mootools.lighthouseapp.com/projects/2706/tickets/1007-adding-a-prefix-property-to-browserbrowserengine))

Hey.
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:

``` javascript
Browser.prefix = (Browser.Engine.gecko)
? 'moz' : (Browser.Engine.webkit)
? 'webkit' : (Browser.Engine.presto)
? 'o' : 'ms';
```

This can be very useful for apps working with CSS3