-
Notifications
You must be signed in to change notification settings - Fork 178
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
Linear filter not being applied to images on Stories #13013
Comments
OK I can see the issue on the QA site but not locally 🤔 |
The generated CSS should look like this: background-image: linear-gradient(.5turn,rgba(0,0,0,0) 0%,rgba(0,0,0,.7) 100% But it ends up being: linear-gradient(.5 turn,rgba(0,0,0,0) 0%,rgba(0,0,0,.7) 100% -linear-gradient(.5turn,rgba(0,0,0,0) 0%,rgba(0,0,0,.7) 100%
+linear-gradient(.5 turn,rgba(0,0,0,0) 0%,rgba(0,0,0,.7) 100% Notice the space after Don't know where that is coming from 🤔 Maybe the PHP-CSS-Parser or the AMP sanitization. It's definitely saved correctly to the database, so definitely something that happens when serving. |
So far unable to reproduce reliably unfortunately. It didn't work on our QA site yesterday, but today all seems fine. On the staging site it still doesn't seem to work though, but not sure why. |
I've been able to track this down to The issue does not happen for me locally though, makes debugging a bit cumbersome. @westonruter Is this perhaps an issue you've seen in the past? |
Processing of the |
Is that CSS correct though? I tried looking at it on a non-AMP page and Chrome DevTools gave me a warning: And I just checked in the W3C CSS Validator with this: div {
background-image: linear-gradient(.5turn,rgba(0,0,0,0) 0%,rgba(0,0,0,.7) 100%
} And I got: |
I don't think it's an issue with the PHP-CSS-Parser version, because the exact same version of the plugin seems to run fine on one site but not the other. No AMP plugin installed. Regarding the validity, I simply forgot to paste the closing The problem is the |
Yes, we use whatever the AMP plugin uses. Looks like it contains that fix because of composer patches. |
Could it be that you have another plugin that also bundles php-css-parser, but an older version that lacks the fix? |
It happens with no other active plugins. Plus we use PHP-Scoper anyway, so other versions of that library shouldn't matter. But now that you mentioned the specific PR and me mentioning the patches, I recall removing our own composer patches in #12904. Turns out that disabled the AMP plugin's patches too 🤦 For some reason my local install did still have the patches, which is why I didn't notice this at first. I just reverted that change in 5b66321 and now it seems to work on our staging site as well. Time for the weekend 🙃 @adamdunnage in short, this should be fixed in our next release |
The patch is now definitely in our latest release, see https://plugins.svn.wordpress.org/web-stories/tags/1.30.0/third-party/vendor/sabberworm/php-css-parser/src/Value/Size.php Yet we're getting reports that this issue is still happening, see https://marleysmenu.com/web-stories/fluffy-and-crispy-brown-sugar-pancakes/ for an example with broken |
Bug Description
Stories that have had a linear filter added to an image do not display that filter when previewing from the editor or on the published Story. This has been introduced in the 1.29.0 release as this can't be replicated on previous versions. All other filters seem to work and this only effects the linear filter.
This was first reported by a user in the support forum.
Linear image in the editor:
Linear image in preview:
Expected Behaviour
Steps to Reproduce
Screenshots
See above.
Additional Context
The text was updated successfully, but these errors were encountered: