Handle opacity on canvas instead of dom

This commit is contained in:
Andreas Hocevar
2022-07-10 15:30:28 +02:00
parent 239487e9f0
commit 6086459cba
7 changed files with 76 additions and 58 deletions

View File

@@ -1,13 +1,7 @@
import expect from '../expect.js';
import {cssOpacity, getFontParameters} from '../../../src/ol/css.js';
import {getFontParameters} from '../../../src/ol/css.js';
describe('ol.css', function () {
describe('cssOpacity()', function () {
it('converts number to string, 1 to ""', function () {
expect(cssOpacity(0.5)).to.eql('0.5');
expect(cssOpacity(1)).to.eql('');
});
});
describe('getFontParameters()', function () {
const cases = [
{