Project

General

Profile

Actions

Defect #44442

open

Large blank space before pre blocks in HTML email notifications

Added by Go MAEDA about 1 hour ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Email notifications
Target version:
Resolution:
Affected version:

Description

When an issue description or note contains a pre block, HTML email notifications show a large blank space above the block. This was confirmed with Thunderbird. Other mail clients that keep <svg> elements are likely affected as well.

The cause is the copy button that CopypreScrubber adds to every pre block since r24360 (#43643). The button contains an SVG sprite icon, and the mailer layout has no CSS for it. Mail clients cannot render the icon because <use> references an external sprite, so only an empty <svg> element is left, and it is rendered as a 300x150px blank box. This is the default size of an <svg> element without width and height in an HTML document (see "Sizing SVG content in CSS context"https://svgwg.org/specs/integration/#svg-css-sizing).

The attached patch adds svg { display: none; } to the mailer layout so that all SVG sprite icons are hidden in email notifications, and replaces the alert-specific rule added in #43420 with it.


Files

No data to display

Actions

Also available in: Atom PDF