-
Notifications
You must be signed in to change notification settings - Fork 800
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
Revert SVG image optimizations from #38573 and #38750 #38981
Conversation
Are you an Automattician? Please test your changes on all WordPress.com environments to help mitigate accidental explosions.
Interested in more tips and information?
|
Thank you for your PR! When contributing to Jetpack, we have a few suggestions that can help us test and review your patch:
This comment will be updated as you work on your PR and make changes. If you think that some of those checks are not needed for your PR, please explain why you think so. Thanks for cooperation 🤖 The e2e test report can be found here. Please note that it can take a few minutes after the e2e tests checks are complete for the report to be available. Follow this PR Review Process:
Still unsure? Reach out in #jetpack-developers for guidance! Jetpack plugin: The Jetpack plugin has different release cadences depending on the platform:
If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack. Backup plugin:
If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack. Vaultpress plugin:
If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack. Boost plugin:
If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack. Search plugin:
If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack. Social plugin:
If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack. Protect plugin:
If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack. Videopress plugin:
If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack. Super Cache plugin:
If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack. Migration plugin:
If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack. Wpcomsh plugin:
If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack. |
On looking at the SVGs more closely, with images like
If I pull these up (including if I grab an old version before the optimization changes), the images look blank? This is true when looking at it in the github diff view or when opening in Chrome or FF. I don't think that's a problem for this commit since they look the same before and after, but it's a sign that I don't understand what these are used for. I also opened one of them up in an SVG editor and it doesn't appear to have anything in it? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like this is "blank" because it sets no fill or stroke on the path it contains. Presumably wherever it's used supplies overriding CSS.
These are fonts. The first, for example, is used at
These do have visible content when I look at them. The content is a light grey, though, so depending on the background color you're viewing them against they might be hard to see. Looks like GitHub's preview uses a very similar grey (#f6f8fa vs #f6f6f6).
This is output into the page HTML (here). Then other inline SVGs in the page can refer to the |
Proposed changes:
There are many interesting ways SVGs can be used. The optimizations broke some of these (see #38966). To be safe, let's revert them all.
Other information:
Jetpack product discussion
Does this pull request change what data or activity we track or use?
Testing instructions: