Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Meta

Welcome to Software Development on Codidact!

Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.

Border-bottom of inline code is (sometimes) not displayed when it's in the last line of a paragraph

+3
−0

After I wrote this answer, I could notice that, when there's inline code in the last line of a paragraph, sometimes the border-bottom of the inline code text is not displayed.

One case is when the paragraph is followed by either a horizontal line or a code block:

inline code with border-bottom missing

Note that the border-bottom is missing for all the inline code text, when it's in the last line of a paragraph and immediately followed by a horizontal line or a code block (in this case, it's a, b c-d e/f, IFS and read).

Also note from the screenshot above that between 2 paragraphs, this problem didn't happen, and the border-bottom is displayed correctly (in the image, that's b c and d e).

But in this question, this situation also happened as well (the problem occurred between 2 paragraphs):

problem happens between 2 paragraphs

And, to make things more confusing, in another part of the linked answer, it happened the opposite (between 2 paragraphs, not OK, but before code block, OK):

OMG_WTF

But at least it's OK when the inline code text is not in the paragraph's last line.

Last but not least, the problem doesn't happen in the preview, when I'm editing the post.


This problem doesn't occur in all browsers/SO's. Please find below the tests I've made:

Windows 10 Home 64 bits

Browser Behaviour
Chrome 88.0.4324.190 Not OK
Firefox 85.0.2 OK
Edge 89.0.774.45 Not OK

Iphone 8 / iOS 14.4

Browser Behaviour
Chrome 87.0.4280.77 Not OK
Safari Not OK

PS: if I rotate the phone to landscape orientation, the borders are displayed correctly.

MacOS Catalina 10.15.7

Browser Behaviour
Chrome 88.0.4324.150 OK
Safari 14.0.2 OK
Firefox 86.0.1 OK
History
Why does this post require attention from curators or moderators?
You might want to add some details to your flag.
Why should this post be closed?

1 comment thread

General comments (4 comments)

0 answers

Sign up to answer this question »