feat(rules): 建立共享排版契约并收束 WebKit 与 Unicode 基线

This commit is contained in:
2026-09-04 21:44:11 +08:00
parent 8ee9895247
commit 993cf576c6
42 changed files with 8511 additions and 1422 deletions
+6
View File
@@ -146,6 +146,12 @@ export interface RenderContext {
root: Element;
options: ResolvedOptions;
finder: Finder;
/** 當前 createJuzhen 實例造出之元素;DOM 屬性不能作為所有權憑證。 */
ownedElements: WeakSet<Element>;
/** 實例不可偽造之屬性寫者身分;狀態由 core/dom 共享堆疊管理。 */
ownerToken: object;
/** 寫入本實例產物之內部 class,並在觀察啟用時留下可精確核對之 mutation provenance。 */
setOwnedClass: (element: Element, className: string, present: boolean) => void;
}
/**
* charify 階段之包裝請求:把 node.data[start, end) 包進 build() 造出之元素。