Skip to content

Height / Width attributes not being added to IMG tags when there's a corresponding style #725

@meesterguyman

Description

@meesterguyman

In the 0.20.0 release, we supposedly had the following added:

InlineOptions::apply_width_attributes and InlineOptions::apply_height_attributes options to add dimension HTML attributes from CSS properties on supported elements (table, td, th, img).

I can confirm that this works for the first three. However, we're currently having issues with images not having these added, and Outlook is throwing a fit.

Also, I wonder if it might be possible to simply, as a general rule, always add these attributes to any element, regardless of what it is, instead of limiting it to just these four. Just wondering if the bug has to do with making these distinctions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions