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

The <!DOCTYPE html> code causes rendering spacing abnormalities. #569

Open
Alecyrus opened this issue Apr 2, 2024 · 1 comment
Open
Labels

Comments

@Alecyrus
Copy link

Alecyrus commented Apr 2, 2024

If you add code in the HTML head, the spacing between each line in the rendering result will increase slightly, as shown in the following image.
CleanShot 2024-04-02 at 20 21 21@2x

However, once you comment out the code, the spacing between each image remains consistent as expected.
CleanShot 2024-04-02 at 20 22 12@2x

There is a codesandbox link containing the reproducing code. You can view the rendering changes by commenting out the code.

@daybrush daybrush added bug and removed bug labels Jun 13, 2024
@daybrush
Copy link
Member

@Alecyrus

In the case of doctype, a space appears to appear at the bottom of the item.

It is recommended to remove it using display: flex or font-size: 0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants