We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 99e7450 commit 99eabfbCopy full SHA for 99eabfb
src/lib/utils/style-utils.ts
@@ -50,9 +50,10 @@ export function applyStyleToElements(renderer: Renderer2,
50
/**
51
* Applies the styles to the element. The styles object map may contain an array of values.
52
* Each value will be added as element style.
53
+ * Keys are sorted to add prefixed styles (like -webkit-x) first, before the standard ones.
54
*/
55
export function applyMultiValueStyleToElement(styles: {}, element: any, renderer: Renderer2) {
- Object.keys(styles).forEach(key => {
56
+ Object.keys(styles).sort().forEach(key => {
57
const values = Array.isArray(styles[key]) ? styles[key] : [styles[key]];
58
for (let value of values) {
59
renderer.setStyle(element, key, value);
0 commit comments