Sequence diagrams in the source docs are drawn smaller than their layout, with empty space at the sides
Categories
(Developer Infrastructure :: Source Documentation, defect)
Tracking
(firefox-esr153 unaffected, firefox159 unaffected, firefox160 unaffected, firefox161 fixed)
| Tracking | Status | |
|---|---|---|
| firefox-esr153 | --- | unaffected |
| firefox159 | --- | unaffected |
| firefox160 | --- | unaffected |
| firefox161 | --- | fixed |
People
(Reporter: dao, Assigned: dao)
References
(Blocks 1 open bug, Regression)
Details
(Keywords: regression)
Attachments
(1 external file)
Every Mermaid sequence diagram in firefox-source-docs is drawn at 89–98% of its layout size, with blank space to its left and right (e.g. toolkit/components/sessionstore/docs/restoredata.md at 89%, ipc/docs/ipdl.md at 93–97%).
Mermaid sets the svg height attribute to the layout height, but its viewBox adds 30px for the actor boxes in the neo look and 40px for a title. Under sequence.useMaxWidth: false the browser scales the drawing to fit that height. The neo look came in with bug 2084689. The mismatch is in Mermaid's sequence renderer (unfixed in 12.3.0 and on develop), and no configuration option changes it.
Until Mermaid fixes it, the docs can set the height attribute from the viewBox after each draw. ./mach doc mermaid-diff (bug 2088494) then reports all 21 sequence diagrams drawn at 100%, with no other change in layout size or labels.
Comment 1•23 days ago
|
||
Set release status flags based on info from the regressing bug 2084689
| Assignee | ||
Updated•23 days ago
|
| Assignee | ||
Updated•23 days ago
|
| Assignee | ||
Comment 2•23 days ago
|
||
Updated•23 days ago
|
Comment 3•22 days ago
|
||
Set release status flags based on info from the regressing bug 2084689
Comment 5•22 days ago
|
||
| bugherder | ||
| Assignee | ||
Updated•22 days ago
|
| Assignee | ||
Updated•21 days ago
|
Description
•