Allow max 16 decimals for alpha when parsing rgba

This commit is contained in:
Marc Jansen
2016-11-14 08:40:39 +01:00
parent 8f6e07bfb8
commit 9af73a1588
2 changed files with 3 additions and 1 deletions

View File

@@ -81,6 +81,8 @@ describe('ol.color', function() {
it('can parse rgba colors', function() {
expect(ol.color.fromString('rgba(255, 255, 0, 0.1)')).to.eql(
[255, 255, 0, 0.1]);
expect(ol.color.fromString('rgba(255, 255, 0, 0.3333333333333333)')).to.eql(
[255, 255, 0, 0.3333333333333333]);
});
it('caches parsed values', function() {