Merge pull request #13823 from ahocevar/reduce-canvas-footprint

Reduce canvas memory footprint for better iOS stability
This commit is contained in:
Andreas Hocevar
2022-07-15 20:35:09 +02:00
committed by GitHub
17 changed files with 213 additions and 110 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 = [
{