angulardart / angular

Fast and productive web framework provided by Dart
https://pub.dev/packages/angular
MIT License
1.83k stars 231 forks source link

CSS Invalid output for scientific e notation #1954

Open genesistms opened 3 years ago

genesistms commented 3 years ago

Simple component:

@Component(selector: 'my-app', template: '', styles: [':host { width: 1e-9px; }'])
class AppComponent {}

Results of generated css:

// style.css.dart
final List<dynamic> styles = [':host {\n  width: 1e-9px;\n}\n'];
// style.css.shim.dart
final List<dynamic> styles = ['._nghost-%ID%{width:1 e-9px}'];

Note space before e-9px. bug

dart2js/webdev does not matter Tried simple dart2js without angular and style was passed corectly.

Small app for replicate problem here

Dart SDK version: 2.10.5 (stable) (Tue Jan 19 13:05:37 2021 +0100) on "linux_x64"
Angular version: ^6.0.1