Files
deepseek-harness/docs/web-styling.i18n.yaml
T
imccyu 2754e9fe8c ci(css): reject costly unkeyed CSS selectors and retire existing ones
Add verify-css-selectors to the hygiene gates. It rejects a subject
compound without a class, id, attribute or type key that matches through
:not(), :empty or :has(); a universal selector that names no class, id
or attribute anywhere; and :has() outside the subject compound. Chromium
evaluates such rules on every restyled element or invalidates whole
subtrees. Class-scoped forms such as '.card *' and '.list > :first-child'
are accepted, and the listed base stylesheets are exempt from the subject
rules.

Existing occurrences are recorded in scripts/css-selectors.baseline.json;
new ones fail and retired ones must be pruned. Rewrite existing selectors
where the matched elements stay the same, and document the rule in the
Web styling reference.
2026-11-20 01:59:10 +08:00

26 lines
946 B
YAML

# Bilingual-pair consistency record for web-styling.md (docs/i18n/README.md): per heading
# section, a hash of its English and Chinese blocks outside code blocks and generated regions.
# After editing either side, bring the other along and re-record with:
# pnpm run verify-translation-pairing --write docs/web-styling.md
/web-ui-style-reference:
en: aab8007f4e9287d7
zh: 158960e753f32a91
/web-ui-style-reference/ownership:
en: dc8c41fbf9869179
zh: e45976a585cb9c86
/web-ui-style-reference/component-rules:
en: 0298e22304ed51eb
zh: 1f23811e4fb0bfdf
/web-ui-style-reference/input-capabilities:
en: bf2e98bce68743e2
zh: fc58dcbb60bb944a
/web-ui-style-reference/corner-radii-and-settings-cards:
en: 118972f6c2bd6ce4
zh: 85f8416b03e4dd8b
/web-ui-style-reference/review-the-assembled-design:
en: 21bed565fa27b823
zh: 84b5a96127c842c0
/web-ui-style-reference/changing-the-system:
en: 71501119492a3ad4
zh: 87bf6c9406d0d9ed