felixfbecker / dom-to-svg

Library to convert a given HTML DOM node into an accessible SVG "screenshot".
MIT License
381 stars 42 forks source link

Dominant-baseline Attribute of Converted SVG Files #180

Open haoshuai999 opened 1 year ago

haoshuai999 commented 1 year ago

I am trying to convert a html table to a SVG file. All the converted elements all have the dominant-baseline attribute. However, Adobe Illustrator doesn't support the dominant-baseline attribute or the alignment-baseline attribute, so all the converted SVGs look weird. I wonder whether you could improve the library and export the element without those two attributes.

felixfbecker commented 1 year ago

Is there an alternative attribute that Illustrator supports?

haoshuai999 commented 1 year ago

I usually adjust the y attribute instead. I know it is not ideal, but I am also looking for other solutions.

wells974 commented 10 months ago

I have also encountered this problem. Has it been resolved