SkillPedia Skills Encyclopedia
中文 EN

技能 2026-09-01 20:50 UTC

system-atlas

由提交人 garshythoel 提交,主要更新类型为:问题缺陷修复与稳定性提升。提交说明:fix(atlas): add the doctype so the map renders in standards mode。解决了已知运行时异常与边界错误,提升系统稳定性。

garshythoel f7005f2 inkboard/system-atlas

Commit提交信息原文

fix(atlas): add the doctype so the map renders in standards mode

The template began at <meta charset="utf-8">, so every published atlas rendered
in quirks mode — document.compatMode reported BackCompat.

Measured before changing anything: of 179 elements, 6 differ between the two
modes, all from one cause. A line box holding only inline-blocks does not
reserve the baseline descender in quirks mode, so the "New in this chapter" chip
row is 23.5px rather than 26px and everything under it sits 2.5px higher. The
box model itself never differed — the controls are <button> elements, which are
border-box by default in both modes.

So this is not a bug fix so much as closing a latent trap. The current CSS is
unaffected, but quirks mode silently changes the rules for CSS written later: a
future width on a padded div would behave one way here and another way in every
other document its author has worked in.

Verified after: compatMode is CSS1Compat, all four chapters walk with no runtime
errors, click-to-pin still pins, and the page is visually unchanged. Guarded in
build.test.mjs, which fails if the doctype is ever dropped, and SKILL.md now says
why both opening lines have to stay and in what order.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>