Skip to content

Adding a prefix property to Browser/Browser.Engine #2218

@ibolmo

Description

@ibolmo

(from Lighthouse)

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:

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions