Page MenuHomePhabricator

Nested list items are displayed too close to their parent list item in VisualEditor in Vector-2022
Open, Needs TriagePublicBUG REPORT

Description

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

What happens?:
The first bullet point in each nested list doesn't have enough vertical separation from the parent list item in VisualEditor.

image.png (258×953 px, 64 KB)
image.png (217×945 px, 63 KB)
Read viewVisualEditor

What should have happened instead?:
The two should look the same (or more similar), and they do in other skins, including legacy Vector.

Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia): WMF production

Other information (browser name/version, screenshots, etc.):
This appears to happen because of an interaction between Vector-2022's CSS and VE's CSS. Specifically, Vector-2022 sets a negative top margin on ul elements to cancel out the bottom margin it expects on the preceding p element, but VE's CSS zeroes out the margin on that p for other reasons (because it's a "generated" paragraph).