Skip to content

A space is added to an empty element #6486

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

Closed
xaos7991 opened this issue Jul 2, 2021 · 3 comments
Closed

A space is added to an empty element #6486

xaos7991 opened this issue Jul 2, 2021 · 3 comments

Comments

@xaos7991
Copy link

xaos7991 commented Jul 2, 2021

Describe the bug

Svelte add space in empty element

Reproduction

https://svelte.dev/repl/6a451f77836949b285984ea9424fc62c?version=3.38.3

Logs

No response

System Info

Svelte 3.38.3

Severity

annoyance

@babakfp
Copy link
Contributor

babakfp commented Jul 3, 2021

Why you linked the link text to Github?🤦‍♂️
Link to the bug repl
Link to the fixed version

@rritik772
Copy link

rritik772 commented Jul 10, 2021

It is not the fault of svelte. Its is because the new line character in after every line. If you put everything in the foo class in one it will work as expected.
see this link from mozilla :empty

@antony
Copy link
Member

antony commented Aug 31, 2021

Looking at your REPL, you have 32px padding on the top div. If you remove the padding, the space disappears...

@antony antony closed this as completed Aug 31, 2021
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

4 participants