style: compose CHRNX grunge stages
This commit is contained in:
5 files changed
+585
-26
No files matched your search
@@ -573,3 +573,50 @@ test( 'character stages define the shared mockup effect and responsive geometry'
|
||||
}
|
||||
assert.match( visualStates, /character stage below-fold derivatives wait for approach/ );
|
||||
} );
|
||||
|
||||
test( 'latest podcast owns a content-aware 720px card contract', () => {
|
||||
const podcast = read( 'blocks/latest-podcast/style.css' );
|
||||
|
||||
assert.match(
|
||||
podcast,
|
||||
/\.chrnx-podcast-card__link\s*\{[\s\S]*?display:\s*grid;[\s\S]*?grid-template-columns:\s*minmax\(12rem,\s*34%\)\s+minmax\(0,\s*1fr\)/,
|
||||
);
|
||||
assert.match(
|
||||
podcast,
|
||||
/\.chrnx-podcast-card__content\s*\{[\s\S]*?min-width:\s*0;[\s\S]*?overflow-wrap:\s*normal;/,
|
||||
);
|
||||
assert.match(
|
||||
podcast,
|
||||
/\.chrnx-podcast-card__image,[\s\S]*?\.chrnx-podcast-card__fallback\s*\{[\s\S]*?max-width:\s*100%;[\s\S]*?overflow:\s*hidden;/,
|
||||
);
|
||||
assert.match(
|
||||
podcast,
|
||||
/\.chrnx-podcast-card__title,[\s\S]*?\.chrnx-podcast-card__excerpt,[\s\S]*?\.chrnx-podcast-card__badge\s*\{[\s\S]*?overflow-wrap:\s*normal;[\s\S]*?word-break:\s*normal;/,
|
||||
);
|
||||
assert.match(
|
||||
podcast,
|
||||
/@media \(max-width:\s*720px\)[\s\S]*?\.chrnx-podcast-card__link\s*\{[\s\S]*?grid-template-columns:\s*minmax\(0,\s*1fr\)/,
|
||||
);
|
||||
assert.match(
|
||||
podcast,
|
||||
/@media \(min-width:\s*721px\)[\s\S]*?\.chrnx-podcast-card__link\s*\{[\s\S]*?grid-template-columns:\s*minmax\(12rem,\s*34%\)\s+minmax\(0,\s*1fr\)/,
|
||||
);
|
||||
} );
|
||||
|
||||
test( 'Music and Podcast stage specialization cannot leak into immutable surfaces', () => {
|
||||
const components = read( 'assets/css/components.css' );
|
||||
const block = components.match(
|
||||
/\/\* Music and Podcast landing stage composition\. \*\/[\s\S]*?\/\* End Music and Podcast landing stage composition\. \*\//,
|
||||
)?.[ 0 ];
|
||||
|
||||
assert.ok( block, 'missing bounded Music and Podcast composition block' );
|
||||
assert.match( block, /\.chrnx-music-landing \.chrnx-character-stage/ );
|
||||
assert.match( block, /\.chrnx-podcast-landing \.chrnx-character-stage/ );
|
||||
assert.match( block, /\.chrnx-character-stage__atmosphere/ );
|
||||
assert.match( block, /object-fit:\s*cover/ );
|
||||
assert.match( block, /\.chrnx-character-stage__content/ );
|
||||
assert.match( block, /\.chrnx-character-stage__art/ );
|
||||
for ( const forbidden of [ '.chrnx-home-projects', '.chrnx-about', '.chrnx-related-' ] ) {
|
||||
assert.doesNotMatch( block, new RegExp( forbidden.replaceAll( '.', '\\.' ) ) );
|
||||
}
|
||||
} );
|
||||
Reference in new issue
Block a user