[wp-trac] [WordPress Trac] #37566: Update the Twemoji loader to include the rainbow flag
WordPress Trac
noreply at wordpress.org
Thu Aug 4 03:02:38 UTC 2016
#37566: Update the Twemoji loader to include the rainbow flag
-------------------------+-----------------------------
Reporter: pento | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Emoji | Version:
Severity: minor | Keywords: needs-patch
Focuses: javascript |
-------------------------+-----------------------------
[38179] added support for the rainbow flag to core, but platform
compatibility is a bit strange, because the flag was defined out of sync
with the usual Unicode release cycle.
As such, we end up with a bit of weird scenario - Windows 10 and Android N
beta support all Unicode 9.0 emoji, but don't support the rainbow flag.
iOS 10 beta supports both the rainbow flag and all of Unicode 9.0,
presumably OSX will be updated with the same support.
Given the cultural relevance of the rainbow flag, I expect it will be
reasonably popular - Windows 10 and Android N will likely get an update to
add support for it, but in the mean time, I think it's appropriate for us
to step in and provide a seamless experience.
The Twemoji loader already has an exception for flags - it'll load if the
browser supports everything but flags, and then only replace flag emoji,
leaving everything else as native rendering.
I think it would be reasonable to add the rainbow flag to that test, and
replace all flags if the browser doesn't support the rainbow flag.
This will also require updating `window.wp.emoji.parse()`, as the rainbow
flag (and pirate flag, for that matter) don't match the usual flag byte
sequences.
Related: #37543.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/37566>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list