Hi, I don’t see any reason to display the figures next to each other when they’re using different standalone blocks. What we display now in view mode is a bug to me.
So for me it’s -0 for option 2 and +1 for option 1.
Thanks
PS: if users want to have figures displayed next to each other they can do so with:
hmm actually I’m not sure it’s allowed. The HMTL <figure> element is probably always standalone and not inline.
But I still don’t see a good rationale for displaying figures next to each other. Are there examples of that somewhere? You mentioned bootstrap but the link shows only a single figure.
small note that it doesn’t look nice to have the images displayed so close. This suggests to me that it was possibly never meant to be displayed like this.
Actually, I looked at this recently because I was wondering why adding a {{figure}} macro inline does not generate a <figure> element but an <img> element. As @vmassol said, the figure html element is not an inline element, cannot be used in inline context.
is clearly a syntax for 2 blocks. There is no good reason to have them displayed not as 2 blocks.
It’s interesting that Bootsrap 4 proposes 2 following figures to display one next to the other and that may make sense for the general case, but in the case of this specific XWiki 2.1 syntax, it doesn’t make sense that they’re displayed one next to the other as they are 2 different blocks.
Cons: this can break how figures created since 10.2 are displayed.
It’s a rather rare case (many figures following eachother) and you can consider it a bugfix as the syntax for the case that will change behaviour is clearly that of 2 separate blocks.
Option 1 seems reasonable to me.
We need to figure out though how and whether we want to support “inline figures” - it’s not clear what those would be, though, as the html figure element is not supported in an inline context.
I’m really wondering why Bootstrap made this choice of having the figures inline-block…
there is a single figure in the example but the style they chose to add is inline-block. if you put that markup one after the other and it fits in the width of your screen, they will display one next to the other.
I find it indeed a rather odd choice as well, why would they decide to enforce this behaviour…