UNPKG

@maizzle/framework

Version:

Maizzle is a framework that helps you quickly build HTML emails with Tailwind CSS.

20 lines (19 loc) 853 B
import { ChildNode } from "domhandler"; //#region src/transformers/imgWidth.d.ts /** * Backfill the `width` attribute on `<Img>`-emitted images that were left * without an explicit width. Runs after `columnWidth`, so every * Container/Section/Column ancestor already carries a resolved pixel * width in its inline style. * * For each marked `<img>`, walk up the ancestor chain accumulating * horizontal padding+border, stopping at the nearest ancestor with a * resolvable pixel width. The image width is that source minus the * accumulated inset (so padding on wrappers narrows the image to its * content box). When no pixel width is found anywhere, the marker is * dropped and the image stays fluid. */ declare function imgWidthDom(dom: ChildNode[]): ChildNode[]; //#endregion export { imgWidthDom }; //# sourceMappingURL=imgWidth.d.ts.map