Skip to content

Commit 5ac8c39

Browse files
authored
Merge pull request #1735 from plotly/css-transform-test
Putting CSS transform test outside condition
2 parents 6b7c9d7 + ff1552e commit 5ac8c39

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

test/image/strict-d3.js

+4-5
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,12 @@
3737
throw new Error('d3 selection.style called with value: ' + val);
3838
}
3939
});
40-
41-
// Microsoft browsers incl. "Edge" don't support CSS transform on SVG elements
42-
if(key === 'transform' && sel.node() instanceof SVGElement) {
43-
throw new Error('d3 selection.style called on an SVG element with key: ' + key);
44-
}
4540
}
4641

42+
// Microsoft browsers incl. "Edge" don't support CSS transform on SVG elements
43+
if(key === 'transform' && sel.node() instanceof SVGElement) {
44+
throw new Error('d3 selection.style called on an SVG element with key: ' + key);
45+
}
4746
}
4847

4948
// below ripped from fast-isnumeric so I don't need to build this file

0 commit comments

Comments
 (0)