fix(layout): respect image dimension attribute, closes #3274 (#3277)

This commit is contained in:
Huang Xin
2026-02-12 23:41:57 +08:00
committed by GitHub
parent 548d50a882
commit 24a87508c6
+6 -2
View File
@@ -259,10 +259,14 @@ const getLayoutStyles = (
zoom: ${zoomLevel};
}
svg, img {
height: auto;
width: auto;
background-color: transparent !important;
}
svg:where(:not([width])), img:where(:not([width])) {
width: auto;
}
svg:where(:not([height])), img:where(:not([height])) {
height: auto;
}
figure > div:has(img) {
height: auto !important;
}