question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Ionic v4] CSS issues on Chrome 53 (crosswalk)

See original GitHub issue

Bug Report

Ionic version: [x] 4.x

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.

ezgif com-video-to-gif

Expected behavior: Correct styles on Chrome 53.

Steps to reproduce: (check example repo)

  1. Add an ion-checkbox or ion-spinner to a blank ionic v4 project
  2. Add cordova + crosswalk
  3. Run on Android device

Related code: https://github.com/DavidStrausz/ionic-v4-css-bugs

Other information:

Ionic info:

Ionic:
   ionic (Ionic CLI): 4.10.3 
   Ionic Framework: @ionic/angular 4.0.1
   @angular-devkit/build-angular: 0.12.4
   @angular-devkit/schematics: 7.2.4
   @angular/cli: 7.2.4
   @ionic/angular-toolkit: 1.4.0
Cordova:
   cordova (Cordova CLI): 8.1.2 (cordova-lib@8.1.1)
   Cordova Platforms: android 6.5.0-dev
   Cordova Plugins: no whitelisted plugins (6 plugins total)
System:
   Android SDK Tools : 26.1.1
   NodeJS: v9.4.0
   npm: 5.8.0
   OS: Windows 10

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:3
  • Comments:13 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
liamdebeasicommented, Feb 19, 2019

Thanks for the additional information 🙂. I was able to reproduce this issue on Android 4.4 with Chrome 30.

1reaction
DavidStrauszcommented, 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-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: 0px 0px 0px;
}

So this could also be resolved rather easy by providing a correct transform-origin with higher specificity.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[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 ...
Read more >
Ionic 5 Web App Chrome CSS Issues (sc-ion class added)
The problem is that when opening the app in Chrome and sometimes in Safari as well on desktop, the icons, buttons and some...
Read more >
CSS body background-image not showing - Ionic Forum
I just started a blank starter project (ionic start blablaApp blank) ... I tried to do was to put a background image in...
Read more >
ionic Archives - jomendez
Use Crosswalk for Android. Every Android version runs a different WebView (a browser that runs your ionic application). The performance is different across ......
Read more >
Ionic Forum - Latest topics - RSSing.com
Next Ionic 4 navCtrl problem ... var sass = require('gulp-sass'); var minifyCss = require('gulp-minify-css'); ... January 30, 2019, 12:53 pm.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found