-
Notifications
You must be signed in to change notification settings - Fork 6k
Conversation
flutter/flutter#131337 Emoji display problem in flutter web html render #131337
issue:Emoji display problem in flutter web html render #131337
It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie on the #hackers channel in Chat (don't just cc him here, he won't see it! He's on Discord!). If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix? Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing. |
This pull request executed golden file tests, but it has not been updated in a while (20+ days). Test results from Gold expire after as many days, so this pull request will need to be updated with a fresh commit in order to get results from Gold. |
Your PR affects text layout, and the failing tests are related to text layout. Please resolve the failing tests. Also, please add a new test which will fail before your change and which succeeds after your change. |
(triage) @zjrwdl Just checking in to see if you still have plans to address the feedback given above? |
applyTextStyleToElement( | ||
element: spanElement, style: firstFragment.style); | ||
_positionSpanElement(spanElement, line, firstFragment); | ||
spanElement.appendText(fullText); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like you are putting the entire line into a single <span>
element, is that correct?
This won't work. One line of text could contain fragments with different styles. You can't just put all of them in the same <span>
with the same style.
(triage) @zjrwdl Do you still have plans to come back and address the feedback given above? Thank you. |
I am going to close this one since there was no follow-up. Feel free to reopen if you find the time to work on this again. Thank you. |
Emoji display problem in flutter web html render #131337
before this pr:

after this pr:

List which issues are fixed by this PR. You must list at least one issue.
flutter/flutter#131337
Pre-launch Checklist
///
).If you need help, consider asking for advice on the #hackers-new channel on Discord.