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

Default to a line height of 1.2 #756

Merged
merged 2 commits into from
Nov 26, 2024
Merged

Conversation

DJMcNab
Copy link
Member

@DJMcNab DJMcNab commented Nov 22, 2024

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change is surprising to me.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This moved in the opposite direction compared to the rest of the items in this PR. I wonder if this has anything to do with the alignment handling within textbox. Maybe padding only being counted once instead of both top and bottom?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking at it again, it looks like the top line in all of the examples dropped, so I think this is fine.

Copy link
Contributor

@dfrg dfrg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Parley should definitely default to something more reasonable but since we’re effectively copying web behavior there, it makes sense to also copy the default behavior of user agents here.

@DJMcNab DJMcNab added this pull request to the merge queue Nov 26, 2024
Merged via the queue into linebender:main with commit 15c0a55 Nov 26, 2024
17 checks passed
@DJMcNab DJMcNab deleted the line-height branch November 26, 2024 14:46
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

Successfully merging this pull request may close these issues.

4 participants