Changing --list-indent or .cm-line padding breaks editor navigation

Steps to reproduce

  1. Open the Sandbox Vault
  2. Go to settings > appearance > font-size, set it to 12
  3. Add this custom css:
body {
    --list-spacing: 0.5rem;
}

.cm-line {
    padding-bottom: 6px !important;
}
  1. Then add the following text:
Long line Long line Long line Long line Long line Long line Long line Long line Long line Long line Long line Long line Long line Long line Long line Long line Long line Long line Long line Long line Long line Long line Long line Long line Long line Long line Long line Long line Long line Long line Long line Long line Long line Long line Long line Long line Long line Long line Long line Long line 
Next line

List:
- first
- second
- third

Then put cursor at the beginning of the page. Press “down” (arrow key). Each time you press the “down” key notice where the cursor goes.

Did you follow the troubleshooting guide? [Y/N]

Y

Expected result

Expected behavior is to move to the line below every time.

Actual result

When it’s at the bottom of a paragraph or at a list item, it goes to the end of the line first and you need to press “down” the second time to actually move the cursor down.

Environment

SYSTEM INFO:
Obsidian version: v1.5.3
Installer version: v1.5.3
Operating system: Darwin Kernel Version 23.2.0: Wed Nov 15 21:53:18 PST 2023; root:xnu-10002.61.3~2/RELEASE_ARM64_T6000 23.2.0
Login status: not logged in
Insider build toggle: off
Live preview: on
Base theme: adapt to system
Community theme: none
Snippets enabled: 1
Restricted mode: on

RECOMMENDATIONS:
Custom theme and snippets: for cosmetic issues, please first try updating your theme and disabling your snippets. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community theme and snippets.


Additional information