Document test9 tag 2026-11-02 for upload; POST config pull + WS, fixed dark home, no debug bar. Co-authored-by: Cursor <cursoragent@cursor.com>
29 lines
818 B
JavaScript
29 lines
818 B
JavaScript
const { rewriteSelectorList, sanitizeWxssSource } = require('./sanitize-wxss-plugin.cjs')
|
|
|
|
const samples = [
|
|
'.connection-copy h1',
|
|
'.social-home :is(a, button, input):focus-visible',
|
|
'.social-page-intro > :not(.social-emoji-field)',
|
|
'html:has(.social-home)',
|
|
'.social-meetup-faces > *:first-child',
|
|
'.navbar a, .navbar button',
|
|
'.social-panel-meta > :is(span, time)',
|
|
]
|
|
|
|
for (const s of samples) {
|
|
console.log(s, '=>', rewriteSelectorList(s) || '(dropped)')
|
|
}
|
|
|
|
const css = `
|
|
.connection-copy h1 { font-size: 32px; color: #fff; }
|
|
.social-home :is(a, button) { color: red; }
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.social-home h2 { animation: none; }
|
|
}
|
|
@media (max-width: 640px) {
|
|
.connection-hero h1 { font-size: 28px; }
|
|
}
|
|
`
|
|
console.log('--- sanitized ---')
|
|
console.log(sanitizeWxssSource(css))
|