-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Remove unnecessary background color on placeholders #44497
Conversation
Size Change: -8 B (0%) Total Size: 1.26 MB
ℹ️ View Unchanged
|
I think we need this one. The backdrop filter has to have some inkling of a background color in order to function, to solve this case: That's a Cover with a background, and then an Image placeholder inside. I wonder if #44215 (comment) is related? 🤔 |
Are you sure? It seems to work ok:
That's what lead me here. The issue in your PR looks like it might be caused by the white background applied to placeholders. But I can't reproduce to inspect further. |
Oh, I remembered incorrectly. Indeed the backdrop filter does work. I could've sworn the color was needed for duotone, but that works too. So I'm happy to go full transparent! However I'm still seeing the rendering glitch. Observe this craziness: It looks like the backdrop filter is at fault here, because it's not happening to Featured Image, because apparently that doesn't yet have the backdrop filter. Since we're using a pseudo element with currentColor, we can potentially revisit this now and look for an alternative to the blur. What do you think? |
yes, something to look at! |
This is a subtle one, addressing a detail I missed in #44190.
Placeholders effectively have two backgrounds applied at the moment, a semi-transparent white one, and a semi-transparent
currentColor
one. We don't need both. This PR removes the white one.Before
After