Why the contained div for svg takes up more space
1answer
Thesvgelement hasdisplay: inline, so it is treated as text. Thus, it also saves theline-height, which controls how much extra vertical space each row gets. For readability reasons, we do not insert rows directly.
Switching todisplay: blockonsvgmakes setting thedivexactly as settingline-height: 0on thediv.
+3