-
-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Placeholder background-image has an invalid property #400
Comments
Wow, this was an interesting one. It's actually a bug in Craft's I filed an issue here: craftcms/cms#14964 |
Fixed in the above commits. Craft CMS 3: You can try it now by setting your semver in your "nystudio107/craft-imageoptimize": "dev-develop as 1.6.54”, Then do a ….. Craft CMS 4: You can try it now by setting your semver in your "nystudio107/craft-imageoptimize": "dev-develop-v4 as 4.0.8”, Then do a ….. Craft CMS 5: You can try it now by setting your semver in your "nystudio107/craft-imageoptimize": "dev-develop-v5 as 5.0.1”, Then do a |
Hi there, sorry to thread ressurect but I am getting this issue on version 5.0.1 / Craft 5.2.0. The OP posted an example with an encoded jpeg, but on our site it's with an encoded SVG.
Is this the same issue or a different one? |
Looks similar, but slightly different. Can you make a new issue with it? |
Describe the bug
We want to show the image as placeholder using the
loading()
andplaceholder()
methods on thepictureTag
.My setup
I just did a simple render of an image an turned on the placeholder option.
{{ asset.imageOptimize.pictureTag().placeholder('image').loading('lazy').render() }}
What is happening
The background-image style property has a value with a space inside and is ending with a : which are not allowed in that line. When these are gone, it works as expected:
Versions
The text was updated successfully, but these errors were encountered: