Open Bug 2088675 Opened 23 days ago Updated 21 days ago

Sequence diagrams in the source docs are drawn smaller than their layout, with empty space at the sides

Categories

(Developer Infrastructure :: Source Documentation, defect)

defect

Tracking

(firefox-esr153 unaffected, firefox159 unaffected, firefox160 unaffected, firefox161 fixed)

REOPENED
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.

Set release status flags based on info from the regressing bug 2084689

Assignee: nobody → dao+bmo
Status: NEW → ASSIGNED

Set release status flags based on info from the regressing bug 2084689

Pushed by dgottwald@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/1214e35d8fc1 https://hg.mozilla.org/integration/autoland/rev/efc548467ba6 Draw sequence diagrams at their layout size. r=firefox-source-docs-reviewers,sylvestre
Status: ASSIGNED → RESOLVED
Closed: 22 days ago
Keywords: leave-open
Resolution: --- → FIXED
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: