style: compose CHRNX grunge stages

This commit is contained in:
chrnx committed 2026-08-13 08:21:55 -05:00
1 parent 54ea215895
commit 041c5f539d
5 files changed
+585 -26

No files matched your search

+10 -1
View File
@@ -360,7 +360,9 @@ test( 'lower home sections form compact, contained editorial panels in both them
}
} );
test( 'latest podcast is a compact horizontal panel on desktop', async ( { page } ) => {
test( 'latest podcast is a bounded content-aware horizontal panel on desktop', async ( {
page,
} ) => {
await page.setViewportSize( { width: 1440, height: 900 } );
await page.goto( '/' );
@@ -379,15 +381,22 @@ test( 'latest podcast is a compact horizontal panel on desktop', async ( { page
panelHeight: panelRect.height,
viewportHeight: window.innerHeight,
mediaHeight: mediaRect.height,
mediaRatio: mediaRect.width / panelRect.width,
mediaRight: mediaRect.right,
contentLeft: contentRect.left,
contentMinWidth: window.getComputedStyle( content ).minWidth,
contentOverflow: content.scrollWidth - content.clientWidth,
};
} );
expect( geometry.display ).toBe( 'grid' );
expect( geometry.panelHeight ).toBeLessThanOrEqual( geometry.viewportHeight * 0.72 );
expect( geometry.mediaHeight ).toBeLessThanOrEqual( geometry.panelHeight * 0.72 );
expect( geometry.mediaRatio ).toBeGreaterThanOrEqual( 0.28 );
expect( geometry.mediaRatio ).toBeLessThanOrEqual( 0.42 );
expect( geometry.mediaRight ).toBeLessThanOrEqual( geometry.contentLeft + 1 );
expect( geometry.contentMinWidth ).toBe( '0px' );
expect( geometry.contentOverflow ).toBeLessThanOrEqual( 1 );
} );
test( 'lower home panels survive missing media and reduced motion', async ( { page } ) => {