WARNING: name must be written in camelCase, as in the example above.
A kebab-case name such as transform-origin still sets the standard property, but silently skips the
vendor prefixed one: the prefix is built by capitalizing the first character of name, which only yields a
valid property name from a camelCase input (transformOrigin gives WebkitTransformOrigin, whereas
transform-origin gives the meaningless WebkitTransform-origin).
A CSS custom property such as --overlay-offset is set as is, and is never vendor prefixed.
Adds the given style with the standard name and an optional vendor prefix for the current browser.
WARNING:
namemust be written in camelCase, as in the example above.A kebab-case name such as
transform-originstill sets the standard property, but silently skips the vendor prefixed one: the prefix is built by capitalizing the first character ofname, which only yields a valid property name from a camelCase input (transformOrigingivesWebkitTransformOrigin, whereastransform-origingives the meaninglessWebkitTransform-origin).A CSS custom property such as
--overlay-offsetis set as is, and is never vendor prefixed.