Make WordPress Core

Opened 3 years ago

Closed 3 years ago

#55231 closed defect (bug) (reported-upstream)

Excessive <svg> elements? As of 5.9.1 Release - Not present in 5.9.

Reported by: mvaleno's profile mvaleno Owned by:
Milestone: Priority: normal
Severity: normal Version: 5.9.1
Component: Editor Keywords: has-screenshots
Focuses: Cc:

Description

This is a before and after.

Started with WordPress 5.9 updated to 5.9.1 and I see a bunch of <svg> elements before the wp-site-blocks <div> element.

One of these <svg> elements looks like this when expanded in the inspector:

<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 0 0" width="0" height="0" focusable="false" role="none" style="visibility: hidden; position: absolute; left: -9999px; overflow: hidden;"><defs><filter id="wp-duotone-dark-grayscale"><feColorMatrix color-interpolation-filters="sRGB" type="matrix" values=" .299 .587 .114 0 0 .299 .587 .114 0 0 .299 .587 .114 0 0 .299 .587 .114 0 0 "></feColorMatrix><feComponentTransfer color-interpolation-filters="sRGB"><feFuncR type="table" tableValues="0 0.49803921568627"></feFuncR><feFuncG type="table" tableValues="0 0.49803921568627"></feFuncG><feFuncB type="table" tableValues="0 0.49803921568627"></feFuncB><feFuncA type="table" tableValues="1 1"></feFuncA></feComponentTransfer><feComposite in2="SourceGraphic" operator="in"></feComposite></filter></defs></svg>

There are many!

Here are the before and after 5.9.1 update images.

Looking at the home page twenty-twenty-two theme, default content, with Google inspect, WordPress 5.9

https://ibb.co/TmwMJtf

Looking at the home page twenty-twenty-two theme, default content, with Google inspect, WordPress 5.9.1

https://ibb.co/W5XhRt4

Not that they seem to be effecting anything, but 1) I can't find where they are generated 2) They are really cluttering the page structure in the inspector; as I use it to make sure I am following ARIA rules...

Change History (5)

#1 @audrasjb
3 years ago

  • Component changed from General to Editor
  • Milestone changed from Awaiting Review to 5.9.2

Hello and welcome to WordPress Trac @mvaleno!

Thank you for raising this issue. It appears these SVG elements are generated by the editor, so I moved your ticket to Gutenberg GitHub repository: https://github.com/WordPress/gutenberg/issues/39008

Let's keep this ticket open to track the resolution of this issue. I'm moving it to milestone 5.9.2.

Thank you

#2 @audrasjb
3 years ago

  • Milestone changed from 5.9.2 to 5.9.3

Moving to milestone 5.9.3 since we're about to release 5.9.2.

This ticket was mentioned in Slack in #core by audrasjb. View the logs.


3 years ago

This ticket was mentioned in Slack in #core by audrasjb. View the logs.


3 years ago

#5 @audrasjb
3 years ago

  • Keywords needs-testing removed
  • Milestone 5.9.3 deleted
  • Resolution set to reported-upstream
  • Status changed from new to closed

Closing this ticket as it's being addressed upstream on Gutenberg side. See https://github.com/WordPress/gutenberg/issues/39008.

Note: See TracTickets for help on using tickets.