Closed
Bug 1463020
Opened 7 years ago
Closed 7 years ago
Incorrect letter-spacing on emoji character when used with text-transform
Categories
(Core :: Layout: Text and Fonts, defect, P3)
Tracking
()
RESOLVED
FIXED
mozilla62
People
(Reporter: davidhong.code, Assigned: jfkthame)
References
Details
(Keywords: regression)
Attachments
(3 files)
|
101.87 KB,
image/png
|
Details | |
|
4.42 KB,
patch
|
m_kato
:
review+
|
Details | Diff | Splinter Review |
|
1.32 KB,
patch
|
m_kato
:
review+
|
Details | Diff | Splinter Review |
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:61.0) Gecko/20100101 Firefox/61.0
Build ID: 20180517141400
Steps to reproduce:
When presented with the follow
```html
<h1 class="ls u">S
| Reporter | ||
Comment 1•7 years ago
|
||
Not sure why bug details have been cut off but here it is again:
```
<h1>S
| Reporter | ||
Comment 2•7 years ago
|
||
Not sure why this interface is cutting off my markdown.. even when preview shows correctly.
Here's the relevant codepen link: https://codepen.io/anon/pen/qYgXbj
Comment 3•7 years ago
|
||
Regression window:
https://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=2db9df42823d&tochange=9ebf3dc839c5
Suspect: Bug 307039
@Jonathan Kew
Your bunch of patch seems to cause the issue, Can you please look into this issue?
Blocks: 307039
Status: UNCONFIRMED → NEW
status-firefox60:
--- → wontfix
status-firefox61:
--- → wontfix
status-firefox62:
--- → affected
status-firefox-esr52:
--- → wontfix
status-firefox-esr60:
--- → wontfix
Component: Untriaged → Layout: Text
Ever confirmed: true
Flags: needinfo?(jfkthame)
Keywords: regression
Product: Firefox → Core
Version: 61 Branch → 15 Branch
| Assignee | ||
Comment 4•7 years ago
|
||
I notice that in the example with letter-spacing and text-transform, it's also possible to select the regional-indicator flag (and following letter-spacing gap) as two distinct pieces; copying the first one results in a single unpaired surrogate, while the second results in three surrogates (the trailing part of the first RI character, plus the entire second character).
We should obviously be keeping that whole cluster firmly glued together so that letter-spacing and selection always apply to it as a single unit.
Flags: needinfo?(jfkthame)
| Assignee | ||
Comment 5•7 years ago
|
||
This isn't limited to emoji regional-indicator flags, either. A similar problem occurs with any supplementary-plane characters, such as Deseret:
data:text/html;charset=utf-8,<p style="letter-spacing:10px;text-transform:lowercase">%F0%90%90%B1%F0%90%90%B2%F0%90%90%B3%F0%90%90%B4%F0%90%90%B5</p>
Here, the text is lowercase anyway, so the text-transform should have no visible effect; but in fact it causes the letter-spacing to be (incorrectly) increased.
And the emoji-ZWJ sequences such as various family groups exhibit the same problem:
data:text/html;charset=utf-8,<p style="letter-spacing:10px;text-transform:lowercase">%F0%9F%91%A8%E2%80%8D%F0%9F%91%A9%E2%80%8D%F0%9F%91%A7%F0%9F%91%A9%E2%80%8D%F0%9F%91%A7%E2%80%8D%F0%9F%91%A6</p>
| Assignee | ||
Updated•7 years ago
|
Priority: -- → P3
| Assignee | ||
Comment 6•7 years ago
|
||
| Assignee | ||
Updated•7 years ago
|
Assignee: nobody → jfkthame
Status: NEW → ASSIGNED
| Assignee | ||
Comment 7•7 years ago
|
||
| Assignee | ||
Updated•7 years ago
|
Attachment #8979309 -
Flags: review?(m_kato)
| Assignee | ||
Updated•7 years ago
|
Attachment #8979308 -
Flags: review?(m_kato)
Updated•7 years ago
|
Attachment #8979308 -
Flags: review?(m_kato) → review+
Updated•7 years ago
|
Attachment #8979309 -
Flags: review?(m_kato) → review+
Pushed by jkew@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/93de67c96d9d
Don't allow letter-spacing or cursor placement within a merged group of glyph records in a transformed textrun. r=m_kato
https://hg.mozilla.org/integration/mozilla-inbound/rev/36b8909f5a19
Reftests for combination of letter-spacing and text-transform with supplementary-plane characters. r=m_kato
Pushed by jkew@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/a49aedba4668
followup, mark test as failing on Android due to lack of font support. r=me
Comment 10•7 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/93de67c96d9d
https://hg.mozilla.org/mozilla-central/rev/36b8909f5a19
https://hg.mozilla.org/mozilla-central/rev/a49aedba4668
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla62
You need to log in
before you can comment on or make changes to this bug.
Description
•