Skip to content

A Bug with background: #FF0; #60

@OsamaAbbas

Description

@OsamaAbbas

Hi Mohammad,

Please check these processes:

> require('rtlcss').process(`body { color: #ff0; }`);
// output: 'body { color: #ff0; }'

> require('rtlcss').process(`body { background: #ff0; }`);
// output: 'body { background: #ff100%; }' WRONG

> require('rtlcss').process(`body { background: #ff1; }`);
// output: 'body { background: #ff1; }'

> require('rtlcss').process(`body { background: #ee0; }`);
// output: 'body { background: #ee100%; }' WRONG

> require('rtlcss').process(`body { background: #f00; }`);
// output: 'body { background: #f00; }'

> require('rtlcss').process(`body { background: #f0f; }`);
// output: 'body { background: #f100%f; }' WRONG

> require('rtlcss').process(`body { background: #0ff; }`);
// output: 'body { background: #100%ff; }' WRONG

> require('rtlcss').process(`body { background: #fffff0; }`)
// output: 'body { background: #fffff100%; }' WRONG

It seems like if there was one zero digit in hex-colors it would be converted weirdly. Only with one zero, and only with background property.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions