0.30.6
This commit is contained in:
parent
5643b53a3d
commit
a51db4e906
|
|
@ -1,3 +1,11 @@
|
|||
## 0.30.6
|
||||
|
||||
I was wrong. Only set `background-size:100%` to `pattern`, `canvas`, and `shader`.
|
||||
|
||||
<br /> <br />
|
||||
|
||||
|
||||
|
||||
## 0.30.5
|
||||
|
||||
* Always add `background-size:100%` to background properties.
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
/*! css-doodle@0.30.5 */
|
||||
/*! css-doodle@0.30.6 */
|
||||
(function (global, factory) {
|
||||
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
||||
typeof define === 'function' && define.amd ? define(factory) :
|
||||
|
|
@ -4513,7 +4513,11 @@
|
|||
}
|
||||
}
|
||||
|
||||
if (prop === 'background' || prop === 'background-image') {
|
||||
let is_bg = (prop === 'background' || prop === 'background-image');
|
||||
let is_canvas = /\$\{canvas/.test(value);
|
||||
let is_shader = /\$\{shader/.test(value);
|
||||
let is_pattern = /\${pattern/.test(value);
|
||||
if (is_bg && (is_canvas || is_shader || is_pattern)) {
|
||||
rule += 'background-size: 100% 100%;';
|
||||
}
|
||||
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "css-doodle",
|
||||
"version": "0.30.5",
|
||||
"version": "0.30.6",
|
||||
"description": "A web component for drawing patterns with CSS",
|
||||
"main": "css-doodle.js",
|
||||
"scripts": {
|
||||
|
|
|
|||
Loading…
Reference in New Issue