Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CSS line-height: 0 makes text invisible #3578

Open
1 task
Psychpsyo opened this issue Feb 14, 2025 · 0 comments
Open
1 task

CSS line-height: 0 makes text invisible #3578

Psychpsyo opened this issue Feb 14, 2025 · 0 comments

Comments

@Psychpsyo
Copy link
Contributor

Psychpsyo commented Feb 14, 2025

Summary

When I put line-height: 0 on an element in ladybird, the text inside it turns invisible.

Operating system

Linux

Steps to reproduce

  1. Give something a line-height of 0.
  2. Watch the text disappear.

Expected behavior

The text should still be visible.

Actual behavior

The text is not visible.

URL for a reduced test case

data:text/html,<div style="line-height%3A0">Hello!

HTML/SVG/etc. source for a reduced test case

<!DOCTYPE html>
<div style="line-height:0">Hello!</div>

Log output and (if possible) backtrace

none

Screenshots or screen recordings

As you can see, you can't see anything:
Image

Build flags or config settings

none

Contribute a patch?

  • I’ll contribute a patch for this myself.
@Psychpsyo Psychpsyo changed the title CSS line-height: 0; makes text invisible CSS line-height: 0 makes text invisible Feb 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant