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

text: Take the gutter into account when masking text #18272

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

kjarosh
Copy link
Member

@kjarosh kjarosh commented Oct 14, 2024

Flash Player does not render text over the gutter.

@kjarosh kjarosh added A-rendering Area: Rendering & Graphics text Issues relating to text rendering/input T-compat Type: Compatibility with Flash Player labels Oct 14, 2024
Seems like someone forgot to remove it, it does not apply to anything.
Adobe documentation refers to the 2px padding as the gutter.
Flash Player does not render text over the gutter.
This test verifies how the gutter of a text field behaves.
@kjarosh
Copy link
Member Author

kjarosh commented Oct 14, 2024

Turns out we'll need to render the caret a bit differently, as it shouldn't be affected by the mask.

@kjarosh kjarosh marked this pull request as draft October 14, 2024 13:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-rendering Area: Rendering & Graphics T-compat Type: Compatibility with Flash Player text Issues relating to text rendering/input
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant