Skip to content

Commit a939e2d

Browse files
committed
Add style node in puppeteer util
1 parent f1c275f commit a939e2d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

puppeteer/util.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ Util = {
146146
// Add the CSS styles, if requested
147147
//
148148
if (args.styles) {
149-
SVG = SVG.replace(/<defs>/, `<defs>\n${Svg.CSS}\n`);
149+
SVG = SVG.replace(/<defs>/, `<defs>\n<style>${Svg.CSS}</style>\n`);
150150
}
151151
//
152152
// Return the defs plus the SVG output.

0 commit comments

Comments
 (0)