Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.1.16 goes mobile on Yandex.ru #1

Closed
bago opened this Issue Mar 18, 2018 · 2 comments

Comments

Projects
None yet
1 participant
@bago
Copy link
Member

bago commented Mar 18, 2018

Seems like Yandex is removing the whole style attribute when it find something "unexpected".

From some tests the issue is within the "calc(NUMBERpx - NUMBER%" we use to enable responsivity when media queries are not available. Whenever Yandex parser find a "-" a "_" a "+" an "*", an "&" in brackets it will remove the full style object. If it finds a "- " sequence or a "-NUMBER" or a "NUMBER-" in a property value (even not in brackets) it will also remove the full style object.

Otherwise Yandex removes only the unknown styles.

That calc is our current main responsive solution for multicolumns:
https://github.com/voidlabs/versafix-template/blob/master/template-def/template-versafix-1.mml#L467

I currently don't see how we could workaround Yandex, unless we find some way to target Yandex. We could try replacing the div with a span, but we have to check all of the other clients to see if this would work for them.

@bago

This comment has been minimized.

Copy link
Member Author

bago commented Mar 18, 2018

One option to be evaluated could be adding align="left" to the column table tag and adding some fake style to the same tag so that Yandex remove the styles also from the table.

This would also be needed in order to let browsers without any support for "style" to render the email decently.

@bago bago modified the milestones: 1.1.16, 1.1.17 Mar 19, 2018

@bago

This comment has been minimized.

@bago bago closed this in 0f32193 Jul 10, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.