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

CSS Invalid output for scientific e notation #1954

@genesistms

Description

@genesistms

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions