Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

Edge Browser Making Extra Boxes around some template strings #1828

Closed
johngruen opened this issue Nov 17, 2016 · 9 comments
Closed

Edge Browser Making Extra Boxes around some template strings #1828

johngruen opened this issue Nov 17, 2016 · 9 comments

Comments

@johngruen
Copy link
Contributor

screen shot 2016-11-17 at 2 39 37 pm

Just noticed this while debugging edge's SVG behavior.

@ghost
Copy link

ghost commented Apr 28, 2017

This is suspiciously similar to #875 but I can still reproduce that one (on Firefox) and I can't see this one (on Firefox)

@johngruen
Copy link
Contributor Author

Don't think this is CSS related. Probably l20n placeholders getting rendered

@ghost ghost added this to the Stretch milestone Sep 18, 2017
@meandavejustice
Copy link
Contributor

meandavejustice commented Dec 20, 2017

Still seeing a little weirdness on edge as of today.

(edge is on the right)
rendering-issue-edge

Here is some discussion on the issue, l20n/l20n.js#116

We can maybe close this as it is an upstream bug, thoughts?

@johngruen
Copy link
Contributor Author

@SoftVision-PaulOiegas can you confirm this on latest edge?

@SoftVision-PaulOiegas
Copy link

SoftVision-PaulOiegas commented Jan 17, 2018

@johngruen The original boxes were replaced now by some other weirdness as mentioned in Dave's screenshots. These are displayed on every experiment details page after launch date and experiment name.

extra characters on edge

@johngruen
Copy link
Contributor Author

@dannycoates has a fix for this on Send, we should consider implementing the same:

mozilla/send#476

@fzzzy
Copy link
Contributor

fzzzy commented Jan 17, 2018

@johngruen Thank you very much for the link to danny's fix. It looks pretty simple:

var ctx = new fluent.MessageContext('${locale}', {useIsolating: false});

See this page for details on these characters: https://en.wikipedia.org/wiki/Bi-directional_text#Unicode_support

FSI is the 'First Strong Isolate' character. PDI is the 'Pop Directional Isolate' character. Presumably, useIsolating: false prevents Fluent from emitting these characters. I assume there is some reason to emit these characters -- leaving them out might cause issues with right-to-left languages? But I guess we can cross that bug when we get to it.

fzzzy added a commit to fzzzy/testpilot that referenced this issue Jan 17, 2018
@fzzzy
Copy link
Contributor

fzzzy commented Jan 17, 2018

I submitted an untested pr which might fix it -- can someone with easy access to Edge test it?

@SoftVision-PaulOiegas
Copy link

The fix on your branch seems to be working. 👍 Verified with Microsoft Edge 40.15063.674.0 on Windows 10 v1703 (OS Build 15063.850).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants