+ {(children, {position, customMargin}) =>
+ {position} {customMargin ? 'custom' : 'normal'} {children}
+ }
+
+ );
+
+ expect(container.textContent).toEqual('[side normal 1 ][side custom 2 ]');
+ });
+
it('places sticky elements with and without custom margin in separate groups', () => {
const items = [
{id: 1, type: 'probe', position: 'sticky'},
@@ -199,6 +233,23 @@ describe('Layout', () => {
});
});
+ it('continues inline box after being interrupted by side box', () => {
+ const items = [
+ {id: 1, type: 'probe', position: 'inline'},
+ {id: 2, type: 'probe', position: 'inline'},
+ {id: 3, type: 'probe', position: 'side'},
+ {id: 4, type: 'probe', position: 'side'},
+ {id: 5, type: 'probe', position: 'inline'},
+ ];
+ const {container} = renderInEntry(
+