Repository navigation
Draw a heavy rule 2px thick in HTML - #115
Merged
Merged
Conversation
A heavy box already had a 2px border, but a heavy rule, and the line between
titles on a heavy edge, kept the 1px line of a single one, so the portal drew
rule(...,{"border":"heavy"}) the same as single. The browser test checks the
computed line width of single, heavy and double rules.
Fixes SharpMUSH/SharpMUSH#2912
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Rqqt7W3gzmP3nZJkUZeSwE
HarryCordewener
marked this pull request as ready for review
November 26, 2026 09:07
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Grave · project thread
Fixes SharpMUSH/SharpMUSH#2912.
The layout stylesheet gives a heavy box a 2px border and a double rule a 3px double line, but has no heavy rule override. So
.ms-rule.ms-border-heavydrew the same 1px line as single. This PR adds two rules toLayoutCss(and the generatedmarkupstring.css):The second covers the line between several titles on a heavy rule, and on a heavy box's top or bottom edge, which had the same gap.
Tests
rulesfragment (single, heavy, double, and a heavy rule with two titles).runtime.test.cjsreads each one's computed line width in Chromium:["1px 1px","1px 1px","3px 3px","1px"]on main,["1px 1px","2px 2px","3px 3px","2px"]with the fix.Generated by Claude Code