Mermaid diagrams wider than the page are cut off when printing a source docs page
Categories
(Developer Infrastructure :: Source Documentation, defect)
Tracking
(firefox161 fixed)
| Tracking | Status | |
|---|---|---|
| firefox161 | --- | fixed |
People
(Reporter: dao, Assigned: dao)
References
(Blocks 1 open bug)
Details
Attachments
(1 file, 1 external file)
|
129.64 KB,
image/png
|
Details |
When a source docs page is printed, a Mermaid diagram wider than the page is cut off at the page edge, behind the fade the scroll container uses on screen. The fullscreen button prints over it.
A page with a ZenUML diagram also prints all of its text at a fraction of its size. ZenUML leaves an invisible #zenuml-intersection-detector-container in the body that is wider than the page (2328px on the Mermaid integration page). The body's overflow-x clips it on screen, but in print the browser shrinks the whole page to fit it.
A print stylesheet can drop the fade and its padding, scale the SVG to the page width, hide the fullscreen button and hide the ZenUML element. A ZenUML SVG has no viewBox, only an inline width and height, so it scales only once a beforeprint handler gives it a viewBox matching that size.
| Assignee | ||
Comment 1•1 month ago
|
||
Updated•1 month ago
|
Comment 2•1 month ago
|
||
The severity field is not set for this bug.
:Sylvestre, could you have a look please?
For more information, please visit BugBot documentation.
Updated•25 days ago
|
Comment 4•24 days ago
|
||
| bugherder | ||
Description
•