Skip to content
This repository has been archived by the owner on Sep 16, 2022. It is now read-only.

CSS Invalid output for scientific e notation #1954

Open
genesistms opened this issue Feb 19, 2021 · 0 comments
Open

CSS Invalid output for scientific e notation #1954

genesistms opened this issue Feb 19, 2021 · 0 comments

Comments

@genesistms
Copy link

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
@genesistms genesistms changed the title CSS Invalid output for scientific e notation [width: 1e-9px; => width: 1 e-9px;] CSS Invalid output for scientific e notation [width: 1e-9px; => width: 1 e-9px;] Feb 19, 2021
@genesistms genesistms changed the title CSS Invalid output for scientific e notation [width: 1e-9px; => width: 1 e-9px;] CSS Invalid output for scientific e notation Feb 19, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant