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

Message should gracefully degrade #6

Open
martincostello opened this issue Jul 27, 2018 · 2 comments
Open

Message should gracefully degrade #6

martincostello opened this issue Jul 27, 2018 · 2 comments
Labels
enhancement New feature or request

Comments

@martincostello
Copy link
Member

Using v0.1.0 with either of Edge, Firefox or Internet Explorer, the message does not render correctly and either outputs formatting characters or does not output the images (excluding the artifact caused by #5).

Ideally the JavaScript should detect if the formatting features are available, and if not either output a simpler message or just not output at all.

Edge

image

Firefox

image

Internet Explorer

image

@martincostello martincostello added the enhancement New feature or request label Jul 27, 2018
@DamianMullins
Copy link
Contributor

This article has details on supported string substitutions, I've tested in the browsers listed above and they work fine.

The one which is missing, and we use, is the %c CSS substitution.

I've not been able to find a nice way to handle this other than browser sniffing.

@DamianMullins
Copy link
Contributor

Ok, I take it back, the %c substitution is supported, however, it appears that background images are not supported outside of Chrome.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants