unprint 0.11.11 → 0.11.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/app.js +1 -1
- package/tests/index.html +1 -1
package/package.json
CHANGED
package/src/app.js
CHANGED
|
@@ -481,7 +481,7 @@ function removeStyleFunctionSpaces(el) {
|
|
|
481
481
|
// jsdom appears to have a bug where it ignores inline CSS attributes set to a function() containing spaces, e.g. url( image.png )
|
|
482
482
|
el.setAttribute('style', el.getAttribute('style')
|
|
483
483
|
.replace(/\(\s+(.*)\s+\)/g, (match, cssArgs) => `(${cssArgs})`)
|
|
484
|
-
.replace(/\)[\w\s
|
|
484
|
+
.replace(/\)[\w\s/-]+;/g, ');'));
|
|
485
485
|
}
|
|
486
486
|
|
|
487
487
|
function queryStyle(context, selector, customOptions) {
|
package/tests/index.html
CHANGED
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
|
|
45
45
|
<!-- deliberate space in url( ) to test JSDOM's quirky handling of this -->
|
|
46
46
|
<div class="style" style="background-image: url( https://i.imgur.com/eDQmLys.jpg ); color: red;"></div>
|
|
47
|
-
<div class="background" style="background: url(https://i.imgur.com/xFHbuDL.jpeg) 0 0 no-repeat; color: green;"></div>
|
|
47
|
+
<div class="background" style="background: url(https://i.imgur.com/xFHbuDL.jpeg) 0 0/contain no-repeat; color: green;"></div>
|
|
48
48
|
<div class="style" style="margin: 1rem; color: blue;"></div>
|
|
49
49
|
|
|
50
50
|
<video id="video" poster="https://i.imgur.com/eDQmLys.jpg"><source src="https://i.imgur.com/eDQmLys.mp4"></video>
|