Skip to content

Bug: CSS property scroll-padding not working #6016

Open
@danishsjjd

Description

@danishsjjd

If I disable javascript and apply scroll-padding css to html it just works but when I enable javascript in playground, the scroll-padding only works if the length of node text is greater then 1

Lexical version: 0.14.5

Steps To Reproduce

From lexical documentation home page plain text example, just apply scroll padding to html in style.css

Link to code example: https://stackblitz.com/edit/facebook-lexical-znjtmx

The current behavior (With JavaScript enabled)

Screen.Recording.2024-05-03.at.6.50.48.AM.mov

The expected behavior (without javascript)

Screen.Recording.2024-05-03.at.6.51.45.AM.mov

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    contribution-weekIssues that are good to be picked up for the contribution weekgood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions