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

disable padding for inline elements, only inline-block elements get padding #587

Merged
merged 1 commit into from
Sep 9, 2024

Conversation

Sharktheone
Copy link
Member

Many (nested) inline elements got too large because they got padding from somehwere, this is wrong. Inline elements aren't affected by margin, padding, width and height properties. This PR fixes some of those issues with padding.

Note: This is more of a temporary fix, since the current implementation still lays out inline elements with the block algorithm

@Sharktheone Sharktheone self-assigned this Sep 7, 2024
@Sharktheone Sharktheone changed the title disable padding for inline elements, only inline-block elements get margin disable padding for inline elements, only inline-block elements get padding Sep 7, 2024
@Sharktheone Sharktheone merged commit 049fb5d into gosub-io:main Sep 9, 2024
10 checks passed
@Sharktheone Sharktheone deleted the layout/inline-block branch September 9, 2024 13:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: 🎯 Done
Development

Successfully merging this pull request may close these issues.

2 participants