Origami Frontend Components & Services

Readme: o-useragent

o-useragent has a support status of "dead". This means that there are no plans to fix any issues with this component, and it may stop working at any point. More information on the status of this component is available in the README. If you still rely on this component or have concerns, please contact the Origami team.

JavaScript utility for working with vendor-prefixed properties.

Serving UA-specific styles with Sass

The Sass part of this module is now deprecated.

Please use an alternative way to provide styles for a specific user agent: conditional comments, selector and property hacks… Feel free to use http://browserhacks.com

Browser support

This module has been verified in Internet Explorer 7+, modern desktop browsers
(Chrome, Safari, Firefox, …) and mobile browsers (Android browser, iOS safari,
Chrome mobile).

Installation

To include o-useragent in your module follow the instructions in
the module's page in the Origmai registry.

Usage

The JS prefixer is now deprecated. Please use an alternative method for testing for and applying
vendor prefixes for JS properties and CSS styles within your JS.

o-useragent.prefixer retrieves vendor-prefixed properties if the browser
doesn't yet support it unprefixed.

Notes:

Retrieving prefixed property names

The methods below return the unprefixed name if it exists, failing that they
retrieve the prefixed name, or false if the property is not defined at all.

Retrieving the values stored in prefixed properties

The methods below retrieve the values of prefixed properties defined on given objects.


Licence

This software is published by the Financial Times under the MIT licence.

Status
dead Origami v1 (Bower)
Switch component view

GitHub: o-useragent

Install o-useragent

If using the Build Service, add o-useragent@^2.2.2 to your script and link tags.

If using the npm package manager for a Manual Build, run npm install --save-peer "@financial-times/o-useragent@^2.2.2".

Help & Support

o-useragent is maintained directly by the Origami team. If you have any questions about o-useragent or Origami in general, we are happy to help. 😊

Slack: #ft-origami
Email: origami.support@ft.com

Feedback / Issues

To report a bug or request features please create an issue on Github. For support or general feedback please get in touch 😊

Slack: #ft-origami
Email: origami.support@ft.com