Skip to content

Image and post featured image are missing border style control #47401

@carolinan

Description

@carolinan

Description

The image and featured image block has block support for border color, radius and width.
The missing border style control causes problems for themes that has a border style that is more specific than the CSS that is output by the block library:

html :where([style*=border-width]) {
    border-style: solid;
}

This can cause the border to not be visible.

Step-by-step reproduction instructions

Using WordPress 6.2 alpha and https://core.trac.wordpress.org/ticket/56487,
Activate Twenty Twenty or Twenty Twenty-One.

  1. Create a new post and add a featured image block.
  2. Add a border color, width and radius,
  3. Confirm that the style looks correct in the editor.
  4. Now please save and view the image on the front.
  5. Confirm that the border is not visible.

Screenshots, screen recording, code snippet

No response

Environment info

WordPress 6.2 Alpha

Please confirm that you have searched existing issues in the repo.

Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

Yes

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions