Skip to content

[Bug] Parsed "aspect-ratio: 4/3" is causing errors in the android simulator #177

Closed
@MarchewkaMatthew

Description

@MarchewkaMatthew

Hi,

I have an issue with parsing the aspect-ratio property.

Steps to reproduce

  1. Go to https://csstox.surge.sh/
  2. Paste this code: aspect-ratio: 4/3;
  3. Output is: "aspectRatio": "4/3" instead of the "aspectRatio": 4/3

I do understand the rule of this lib described in the README:
Converts all number-like values to numbers, and string-like to strings.
but "4/3" is not a valid CSS or React native styles value.

Worth to mention that the "1/1" value works on iOS but crashes the app on Android.

Am I doing something wrong, or it should be fixed in the lib? :)
If it should be fixed I can help with the contribution (if it's needed)

Thanks in advance,
@MarchewkaMatthew

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions