Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.

Vendor Prefixes

Vendor prefixes, such as —moz- and —webkit- among many others, are automatically added in Lightning.

You only need to write the unprefixed version, and the framework automatically adds any prefixes that are necessary when generating the CSS output. If you choose to add them, they are used as-is. This enables you to specify alternative values for certain prefixes.

Example

For example, this is an unprefixed version of border-radius.

1.class {
2  border-radius: 2px;
3}

The previous declaration results in the following declarations.

1.class {
2  -webkit-border-radius: 2px;
3  -moz-border-radius: 2px;
4  border-radius: 2px;
5}