You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Ionic v4] CSS issues on Chrome 53 (crosswalk) #17524
Current behavior:
ion-checkbox and ion-spinner styles are broken on Chrome 53.0.2.2785.143 (the version which is shipped with crosswalk). Most probably also other Chrome Versions are affected.
Expected behavior:
Correct styles on Chrome 53.
Steps to reproduce:
(check example repo)
Add an ion-checkbox or ion-spinner to a blank ionic v4 project
Thanks for opening an issue with us! Crosswalk has been discontinued since 2017. Could you try building your app without Crosswalk and see if you can reproduce this issue?
Hi, I'm aware, we still need support for Android 4.1 - 4.4 for our customer base.
When disabling Crosswalk it works fine, but this should just work fine as Android 4.4, which initially shipped with Chrome 30, is listed as minimum requirement for Ionic 4.
Also in the related issue someone mentioned the spinner animation does also not work on Chrome 61 which indicates there is something wrong. And finally CSS containment should be supported since Chrome version 52 which also tells me there is something wrong as other components which use CSS containment just work fine.
At least the checkbox bug should be easy to fix by changing CSS containment to none (default behaviour), although I don't know if you guys had a reason for setting it to strict.
Edit:
I just found out that the weird spinner animation is due to a missing transform-origin of the ion-spinner component which is why the UA style sheet of Chrome 53 is causing this behaviour via this selector:
svg:not(:root){transform-origin:0px0px0px;}
So this could also be resolved rather easy by providing a correct transform-origin with higher specificity.
I misunderstood your comment as having to do with another issue. I've closed the issue you made and we can continue discussion here. Sorry for the confusion!
As I understand, you are running into the same issue. Can you post the output of ionic info as well as your user agent string when testing on a device? You can find this by logging window.navigator.userAgent.
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.
Activity
liamdebeasi commentedon Feb 18, 2019
Hi there,
Thanks for opening an issue with us! Crosswalk has been discontinued since 2017. Could you try building your app without Crosswalk and see if you can reproduce this issue?
Thanks!
DavidStrausz commentedon Feb 18, 2019
Hi, I'm aware, we still need support for Android 4.1 - 4.4 for our customer base.
When disabling Crosswalk it works fine, but this should just work fine as Android 4.4, which initially shipped with Chrome 30, is listed as minimum requirement for Ionic 4.
Also in the related issue someone mentioned the spinner animation does also not work on Chrome 61 which indicates there is something wrong. And finally CSS containment should be supported since Chrome version 52 which also tells me there is something wrong as other components which use CSS containment just work fine.
At least the checkbox bug should be easy to fix by changing CSS containment to none (default behaviour), although I don't know if you guys had a reason for setting it to
strict.Edit:
I just found out that the weird spinner animation is due to a missing
transform-originof the ion-spinner component which is why the UA style sheet of Chrome 53 is causing this behaviour via this selector:So this could also be resolved rather easy by providing a correct
transform-originwith higher specificity.liamdebeasi commentedon Feb 19, 2019
Thanks for the additional information 🙂. I was able to reproduce this issue on Android 4.4 with Chrome 30.
wcmhc commentedon Feb 22, 2019
Just ran into the same issue with the base Android 8.1 release #17501 (comment)
Desever commentedon Mar 18, 2019
svg:not(:root) {
transform-origin: 0px 0px 0px;
}
the code not work
liamdebeasi commentedon Mar 18, 2019
Hi @Desever,
If you are running into a problem with an Ionic component, please open a new issue. Thanks!
Desever commentedon Mar 18, 2019
#17811
liamdebeasi commentedon Mar 18, 2019
Hi @Desever,
I misunderstood your comment as having to do with another issue. I've closed the issue you made and we can continue discussion here. Sorry for the confusion!
liamdebeasi commentedon Mar 18, 2019
@Desever,
As I understand, you are running into the same issue. Can you post the output of
ionic infoas well as your user agent string when testing on a device? You can find this by loggingwindow.navigator.userAgent.Thanks!
Desever commentedon Mar 18, 2019
I think,the svg not add transform-origin: center;
Desever commentedon Mar 18, 2019
I add style(transform-origin: center;) to global.scss,but this not work
Desever commentedon Mar 18, 2019
please tell me,the style write where
ionitron-bot commentedon Apr 26, 2019
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.