Image block markup in the front-end #2899
Labels
[Feature] Blocks
Overall functionality of blocks
[Focus] Accessibility (a11y)
Changes that impact accessibility and need corresponding review (e.g. markup changes).
There are some changes in the markup compared to current editor. And also some of the things that are missing.
Gutenberg Markup:
<figure class="wp-block-image"> <img src="http://wordpress-svn/src/wp-content/uploads/2017/03/sandwich-2-1024x614.jpg" alt="Eating healthy"> </figure>
Old Markup:
<p> <img src="URL" alt="Eating healthy"> </p>
Gutenberg Markup with caption:
Old Markup with caption:
<p>
tags like this<p><img scr="URL"></p>
. This might potentially have small design issues.<figure>
and<figcaption>
so old styles won't work.#8f98a1
has too low color contrast even on white.srcset
for responsive images.wp-image-{ID} size-large
.Conclusion and proposal
srcset
for responsive images just like the old editor.With same classes there is no need to output any styles in the front-end from image block.
The text was updated successfully, but these errors were encountered: