docs(skill): fix reference code examples, contradictions and stale platform facts

Apply 96 verified audit findings plus primary-source research: corrected CSS/JS/three.js examples, cross-doc consistency, webstatus.dev-verified platform status, revert-on-regression and independent-review rules, new antipattern candidates, gallery link status. Interview gate timing unchanged.
This commit is contained in:
Yun Chan 2026-10-09 18:18:58 +09:00
parent eecd3f03ff
commit 48ca43985f
36 changed files with 319 additions and 172 deletions

View file

@ -190,7 +190,8 @@ body {
**숫자는 폰트마다 다르다.** 재는 방법:
```js
// 두 폰트로 같은 문자열을 그려 폭을 비교한다. 비율이 size-adjust 값이다
// 웹폰트 폭 ÷ 폴백 폭 = size-adjust (폴백을 웹폰트 폭에 맞춰 키우거나 줄이는 배율).
// 웹폰트가 로드된 뒤에 잰다: await document.fonts.load('100px "Body KR"')
const measure = (family) => {
const el = document.createElement("span");
el.style.cssText = `position:absolute;visibility:hidden;font:100px ${family};white-space:nowrap`;
@ -200,7 +201,7 @@ const measure = (family) => {
el.remove();
return w;
};
(measure("Arial") / measure('"Body KR"') * 100).toFixed(1) + "%"; // "Body KR" = 고른 한글 서체
(measure('"Body KR"') / measure("Arial") * 100).toFixed(1) + "%"; // "Body KR" = 고른 한글 서체
```
**Safari는 `size-adjust`만 적용한다.** `ascent-override`·`descent-override`·`line-gap-override`는 Chrome·Firefox에서만 동작하고 Safari 안정판(iOS 포함)은 무시한다(확인 2026-10-06)[WEB-BASELINE]. iPhone에서 폰트 교체 때 행 높이가 튀면 `line-height`를 단위 없는 비율로 명시했는지 먼저 보고, 남는 이동은 `font-display: optional`이나 preload로 줄인다. 교체 시점 레이아웃 측정(P8a)은 WebKit에서도 따로 한다.
@ -550,7 +551,7 @@ KoPub World 바탕·돋움은 웹폰트 임베딩에 한국출판인회의의
### 11-1. 자동 줄바꿈 선언 — text-wrap:balance / pretty
**지원 상태 (확인 2026-09-24)** [WEB-BASELINE].
**지원 상태 (확인 2026-10-09)** [WEB-BASELINE].
| 선언 | 상태 | 지원 브라우저 |
|---|---|---|
@ -569,7 +570,7 @@ h1, h2, h3 { text-wrap: balance; }
한글 제목은 `word-break: keep-all`과 함께 쓴다. `balance`는 keep-all이 허락한 어절 경계 안에서만 줄 길이를 고르므로, keep-all 없이 쓰면 균형을 맞추려고 어절 중간에서 끊을 수 있다(§6-5).
`balance`는 브라우저가 몇 줄을 넘으면 스스로 적용을 포기한다 — 헤딩·소제목처럼 짧은 텍스트에 쓴다. 장문 본문에는 `balance`도 `pretty`도 쓰지 않는다. 문단 전체를 고르게 만들려는 시도는 공간을 낭비하고 가독성을 해칠 수 있다 [SKILL-BETTER-TYPE].
`balance`는 브라우저가 몇 줄을 넘으면 스스로 적용을 포기한다(MDN 기준 Chromium 6줄, Firefox 10줄 이하) — 헤딩·소제목처럼 짧은 텍스트에 쓴다. 장문 본문에는 `balance`도 `pretty`도 쓰지 않는다. 문단 전체를 고르게 만들려는 시도는 공간을 낭비하고 가독성을 해칠 수 있다 [SKILL-BETTER-TYPE].
### 11-2. widow · orphan · river