Skip to content
This repository has been archived by the owner on Feb 25, 2025. It is now read-only.

Web html emoji issule fix #44247

Closed
wants to merge 3 commits into from
Closed

Conversation

zjrwdl
Copy link

@zjrwdl zjrwdl commented Aug 2, 2023

Emoji display problem in flutter web html render #131337

before this pr:
image

after this pr:
image

List which issues are fixed by this PR. You must list at least one issue.
flutter/flutter#131337

Pre-launch Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I read the Tree Hygiene wiki page, which explains my responsibilities.
  • I read and followed the Flutter Style Guide and the C++, Objective-C, Java style guides.
  • I listed at least one issue that this PR fixes in the description above.
  • I added new tests to check the change I am making or feature I am adding, or Hixie said the PR is test-exempt. See testing the engine for instructions on writing and running engine tests.
  • I updated/added relevant documentation (doc comments with ///).
  • I signed the CLA.
  • All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

@flutter-dashboard
Copy link

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.

@github-actions github-actions bot added the platform-web Code specifically for the web engine label Aug 2, 2023
@zjrwdl
Copy link
Author

zjrwdl commented Aug 2, 2023

i did not modify any code related
image

@flutter-dashboard
Copy link

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.

@gildaswise
Copy link

Hey, is this fix still planned? I'm also having issues with the html renderer with other ZWJ emojis

image

@harryterkelsen
Copy link
Contributor

#44247 (comment)

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.

@goderbauer
Copy link
Member

(triage) @zjrwdl Just checking in to see if you still have plans to address the feedback given above?

@yjbanov yjbanov requested a review from mdebbar March 25, 2024 17:35
applyTextStyleToElement(
element: spanElement, style: firstFragment.style);
_positionSpanElement(spanElement, line, firstFragment);
spanElement.appendText(fullText);
Copy link
Contributor

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.

@goderbauer
Copy link
Member

(triage) @zjrwdl Do you still have plans to come back and address the feedback given above? Thank you.

@goderbauer
Copy link
Member

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.

@goderbauer goderbauer closed this Aug 6, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
platform-web Code specifically for the web engine
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants