6 Commits

Author SHA1 Message Date
388d7eaa7d feat(core): support RGB alpha notation (#9699)
Functional notation: rgb[a](R G B[ / A])
CSS Colors Level 4 adds support for space-separated values in the functional notation.
See https://www.w3.org/TR/css-color-4/#rgb-functions

Co-authored-by: Nathan Walker <walkerrunpdx@gmail.com>
2022-03-01 12:32:39 -08:00
4ee1acb05c chore: fix color tests 2021-09-08 16:07:39 -07:00
aa9c9f3897 chore: cleanup 2021-09-08 16:07:38 -07:00
aaeab990c8 fix(color): support web standard #rrggbbaa format
original pr credit to @farfromrefug
https://github.com/NativeScript/NativeScript/pull/8519

BREAKING CHANGE

Long standing inconsistency with color handling here.

BEFORE:

```
// #aarrggbb

const color = new Color('#ff00ff00');

Label {
    background-color: #ff00ff00;
}
```

AFTER:

```
// #rrggbbaa

const color = new Color('#00ff00ff');

Label {
    background-color: #00ff00ff;
}
```
2021-04-06 11:18:36 -07:00
c1f231d88e chore: fix eslint issues (#9017) 2020-11-11 08:46:36 -08:00
020ad4da37 chore(core): monorepo, esm targeting, improved management (#8707) 2020-08-25 20:00:59 -07:00