Page MenuHomePhabricator

For consideration: Spacing between code blocks and paragraph seems a little big
Closed, DuplicatePublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

What happens?:
Large margin between paragraph and code block

Screenshot 2024-03-01 at 10.26.38 AM.png (510×1 px, 67 KB)

What should have happened instead?:
Perhaps ?

Screenshot 2024-03-01 at 10.27.08 AM.png (592×1 px, 82 KB)

(It seems there is a margin-top on pre elements that increases the space here which comes from the user default stylesheet). This could be a good rule to add to our normalize stylesheet? cc @Volker_E

This also impacts blockquote elements (see original bug report in T358921)

Software version (skip for WMF-hosted wikis like Wikipedia):

Other information (browser name/version, screenshots, etc.):

Event Timeline

It was 1em margin originally, now it's 1em margin + 0.5em padding of p due to T352875. Since p now has padding instead of margin on the bottom, margins don't collapse.

Task T358921 was closed as a duplicate of this one. Please ensure that any test cases related to fixing this problem include the multiple situations described in that bug report.

Task T358921 was closed as a duplicate of this one. Please ensure that any test cases related to fixing this problem include the multiple situations described in that bug report.

Yes it's mentioned in the description. https://phabricator.wikimedia.org/T358893#9609722

That said T358921 doesn't provide clear reproduction steps that a QA engineer would necessarily understand. If you want to provide specific test cases in the same format of the description we will make sure to test them. For visual changes screenshots like the one in this description are very helpful in reducing misunderstanding.

ovasileva set the point value for this task to 2.Mar 7 2024, 6:13 PM
ovasileva removed the point value 2 for this task.Mar 11 2024, 5:31 PM
JScherer-WMF raised the priority of this task from Medium to Needs Triage.

Confirmed that this is a bug. This looks like the inverse of T358808.

@bwang @Jdlrobson there are several little bugs like this relating to vertical spacing. Let's discuss how we can get ahead of any more than might crop up.

Moving back to incoming so @ovasileva can triage the bug fix, and putting it up for grabs.

Justin to create a new ticket with a revised design spec of how the text should behave.