style: finish CHRNX editorial sections

This commit is contained in:
chrnx committed 2026-08-12 15:32:55 -05:00
1 parent 7bb43f0a68
commit 55e21bca81
3 files changed
+316 -16

No files matched your search

+41
View File
@@ -89,6 +89,47 @@ test( 'the page canvas is atmospheric rather than a repeating grid', () => {
);
} );
test( 'lower home sections preserve editorial order and define layered panel treatments', () => {
const front = read( 'templates/front-page.html' );
const components = read( 'assets/css/components.css' );
const orderedSections = [
'chrnx/home-projects',
'chrnx/home-music',
'chrnx/latest-podcast',
'chrnx-home-about-preview',
'chrnx/subscribe-cta',
];
let previousIndex = -1;
for ( const section of orderedSections ) {
const currentIndex = front.indexOf( section );
assert.ok( currentIndex > previousIndex, `${ section } must keep its semantic position` );
previousIndex = currentIndex;
}
assert.match(
components,
/\.chrnx-home-music \.wp-block-columns::before\s*\{[\s\S]*?the-no-names-collage\.jpeg/,
);
assert.match(
components,
/\.chrnx-home-music \.chrnx-responsive-portrait\s*\{[\s\S]*?(?:filter|box-shadow|mask(?:-image)?):/,
);
for ( const selector of [
'.chrnx-home-projects',
'.chrnx-latest-podcast',
'.chrnx-home-about-preview',
'.chrnx-subscribe-cta',
] ) {
const escapedSelector = selector.replace( /[.*+?^${}()|[\]\\]/g, '\\$&' );
assert.match(
components,
new RegExp( `${ escapedSelector }[^,{]*\\{[\\s\\S]*?background(?:-color|-image)?:` ),
`${ selector } needs an authored surface`,
);
}
} );
test( 'all approved portraits rebuild byte-identically within payload bounds', () => {
const readme = read( 'README.md' );
const documentedCommand = 'mktemp -d "${TMPDIR:-/tmp}/chrnx-responsive.XXXXXX"';