You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Image and post featured image are missing border style control #47401
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;
}
Before I work on this, I am trying to understand why the border style was omitted. @aaronrobertshaw -I have read through #42847 but it is still unclear to me:
Does the placeholder border break if the border style option is added?
You might find extra context and history in the PR adding border support to the Image block. The supports adopted for the Post Featured Image block were chosen so they were consistent.
I'm currently at the end of my day here and will be AFK tomorrow. I'll dig a little deeper into the history and possible options on Friday.
Edit: Here's where the decision to omit border style was initially made - #31366 (comment). Perhaps with recent advancements to the block selectors API we might be nearing a time to revisit that call.
Hi,
This issue has gone 180 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.
Featured Image got border style support in #83956, so only the Image block is left here. It isn't in the remaining border work in #43241. @aaronrobertshaw, was leaving it out of Image a deliberate decision, or should it be added? If it's deliberate, this issue could be closed.
It wasn't meant to be permanent. Border style was only left off Image "initially" when border support was first added.
Image now sends its border to the img, crop area and placeholder through block selectors. Featured Image had the same setup when it gained border style in #83956.
The two image blocks should match, so I've opened #86733 to add border style to Image, building on #69401. It will close this issue.
Activity
carolinan commentedon Jan 25, 2023
Before I work on this, I am trying to understand why the border style was omitted.
@aaronrobertshaw -I have read through #42847 but it is still unclear to me:
Does the placeholder border break if the border style option is added?
aaronrobertshaw commentedon Jan 25, 2023
Thanks for the ping @carolinan 👍
You might find extra context and history in the PR adding border support to the Image block. The supports adopted for the Post Featured Image block were chosen so they were consistent.
I'm currently at the end of my day here and will be AFK tomorrow. I'll dig a little deeper into the history and possible options on Friday.
Edit: Here's where the decision to omit border style was initially made - #31366 (comment). Perhaps with recent advancements to the block selectors API we might be nearing a time to revisit that call.
github-actions commentedon Jul 25, 2023
Hi,
This issue has gone 180 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.
dhananjaykuber commentedon Nov 12, 2026
Featured Image got border style support in #83956, so only the Image block is left here. It isn't in the remaining border work in #43241. @aaronrobertshaw, was leaving it out of Image a deliberate decision, or should it be added? If it's deliberate, this issue could be closed.
aaronrobertshaw commentedon Nov 12, 2026
Thanks for the nudge @dhananjaykuber 👍
It wasn't meant to be permanent. Border style was only left off Image "initially" when border support was first added.
Image now sends its border to the
img, crop area and placeholder through block selectors. Featured Image had the same setup when it gained border style in #83956.The two image blocks should match, so I've opened #86733 to add border style to Image, building on #69401. It will close this issue.