Skip to content

Image Block: Visual jerk/flash when changing style to "Rounded" #77830

Open

Description

@vishnupprajapat

Description

Description:
When changing the style of an Image block from "Default" to "Rounded", there is a noticeable visual glitch/jerk in the editor. The image briefly renders as a full circle (fully rounded) before abruptly snapping to slightly rounded corners.

Step-by-step reproduction instructions

Step-by-step reproduction instructions:
Open the block editor and add an Image block.
Select an image.
In the block settings sidebar, switch the Style from "Default" to "Rounded".
Observe the image border-radius.
Expected behavior:
The image should change to the rounded style instantly (or smoothly) without any intermediate flashing or jerky state.
Actual behavior:
The image shows a visual jerk. It first becomes fully rounded (as a circle/pill) for a split second, and then immediately transitions/snaps to having only slightly rounded corners.

Screenshots, screen recording, code snippet

original image
Image
glitch/jerk Image
Image
After select image
Image

Environment info

Environment Info:
WordPress version:7.0
Gutenberg Plugin version: trunk
Browser: Chrome

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

Please confirm which theme type you used for testing.

  • Block
  • Classic
  • Hybrid (e.g. classic with theme.json)
  • Not sure

Activity

  1. hbhalodia commented on Apr 30, 2026

    @hbhalodia
    Contributor

    Hi @vishnupprajapat, Could you please share any screencast on how you were able to reproduce the issue? On my end I am unable to reproduce the issue with the above mentioned steps.

    Thanks,

  2. vishnupprajapat commented on Apr 30, 2026

    @vishnupprajapat
    ContributorAuthor

    @hbhalodia Here is the screencast attached for reference.

    WordPress.Updates.Custom.Gutenberg.Blocks.WordPress.mp4
  3. DarkMatter-999 commented on May 6, 2026

    @DarkMatter-999
    Contributor

    Hi @vishnupprajapat,

    I was unable to reproduce the issue on my end using the steps provided.

    I would suggest updating your environment to the latest trunk version, as you might be user an older version the current version is 7.1-alpha. Additionally, the rounded image option sets the border-radius to 50%, whereas in the video you shared, the effect looks much less pronounced. This suggests there might be an active plugin or theme conflict affecting the block rendering. Could you please check if there are any other plugins or custom styles affecting the Image block?

    Here is what I see at my end:

    image-block-jitter.mov

    Environment

    • WordPress: 7.1-alpha-62191
    • PHP: 8.3.30
    • Server: Apache/2.4.66 (Debian)
    • Database: mysqli (Server: 11.8.6-MariaDB-ubu2404 / Client: mysqlnd 8.3.30)
    • Browser: Chrome 146.0.0.0
    • OS: macOS
    • Theme: Twenty Twenty-Five 1.4
    • MU Plugins: None activated
    • Plugins:
      • Gutenberg 23.1.0-rc.1
  4. vishnupprajapat commented on May 6, 2026

    @vishnupprajapat
    ContributorAuthor

    Hey @DarkMatter-999,

    I forgot to mention the theme details.

    Environment

    • WordPress: 7.1-alpha-62191

    • PHP: 8.3.30

    • Server: Apache/2.4.66 (Debian)

    • Database: mysqli

      • Server: 11.8.6-MariaDB-ubu2404
      • Client: mysqlnd 8.3.30
    • Browser: Chrome 146.0.0.0

    • OS: Ubuntu Linux

    Theme

    • Twenty Twenty-Four: 1.4

    MU Plugins

    • None activated

    Plugins

    • Gutenberg 23.1.0-rc.1
  5. anisur2805 commented on May 22, 2026

    @anisur2805

    Tested on Gutenberg trunk as of [today's date] —
    cannot reproduce this anymore. The style switch from
    Default to Rounded appears smooth with no visual flash.

    Environment:

    • OS: macOS
    • Browser: Chrome 148
    • Gutenberg: trunk (built locally)
  6. DarkMatter-999 commented on May 23, 2026

    @DarkMatter-999
    Contributor

    Hi @anisur2805,

    Thanks for testing! 🙌

    The reason you might not be seeing the issue on your current setup is that this visual jitter is highly theme-dependent.

    In themes like Twenty Twenty-Four, the theme overrides the default Gutenberg border-radius: 9999px circle with a different custom border-radius (like 20px). The browser briefly paints the circle before snapping to the theme's style. If your local test environment is using a theme that does not override border-radius the flash won't be visible.

    Could you try switching your test environment to the Twenty Twenty-Four theme? 😇

  7. anisur2805 commented on May 24, 2026

    @anisur2805

    Hello @DarkMatter-999

    I tested it with the Twenty Twenty-Four theme as well, and the issue is still reproducible there on my side. Interestingly, I could not reproduce it with Twenty Twenty-Five, Twenty Twenty-Three, or Twenty Twenty-Two — those themes seem to handle the transition correctly.

  8. ozgursar commented on Jun 11, 2026

    @ozgursar

    Hello, I tested with both Twenty Twenty-Five and Twenty Twenty-Four and the jitter occurs when using Twenty Twenty-Four theme.

    Reproduction Report

    Environment

    • WordPress: 7.1-alpha-62161-src
    • Subdirectory: No
    • PHP: 8.2.29
    • Server: nginx/1.29.4
    • Database: mysqli (Server: 8.4.7 / Client: mysqlnd 8.2.29)
    • Browser: Chrome 148.0.0.0
    • OS: macOS
    • Theme: Twenty Fourteen 4.5
    • MU Plugins: None activated
    • Plugins:
      • Gutenberg 23.3.2
      • Test Reports 1.3.0

    Steps taken

    1. Activate Twenty Twenty-Five
    2. Add a post / page
    3. Insert an image block
    4. Toggle between Default and Rounded borders
    5. No jitter observed
    6. Activate Twenty Twenty-Four
    7. Toggle between Default and Rounded borders again
    8. 🐞 Bug occurs

    Screenshots/Screencast with results

    rounded-border-jitter-test.mp4
  9. github-actions commented on Jul 12, 2026

    @github-actions

    Hi,
    This issue has gone 30 days without any activity. This means it is time for a check-in to make sure it is still relevant. If you are still experiencing this issue with the latest versions, you can help the project by responding to confirm the problem and by providing any updated reproduction steps.
    Thanks for helping out.

  10. added
    [Status] StaleGives the original author opportunity to update before closing. Can be reopened as needed.
    on Jul 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Needs TestingNeeds further testing to be confirmed.[Block] ImageAffects the Image Block[Status] In ProgressTracking issues with work in progress[Status] StaleGives the original author opportunity to update before closing. Can be reopened as needed.[Type] BugAn existing feature does not function as intended

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions