Solution · code-edit

logical inset

對照完整答案、責任邊界與原因。

Solution 要做什麼

對照完整答案、責任邊界與原因。

本主題檔案:files/style.css

定位:先讀 document/card 的 dir 與 writing-mode,再看 logical inset computed value。

本階段驗收

頁面不會替你修改檔案;請在實作檔完成後重新整理確認。

目前要處理

卡片 position:relative;badge absolute,inline-end 從 0px 基準開始。

預期看到

runtime inset-inline-end 由 0px 變16px;required facts 顯示 LTR 靠右、RTL 靠左。

.badge{position:absolute;inset-block-start:1rem;inset-inline-end:1rem}

檔案清單

只在本階段資料夾內操作,避免改到其他章節。

證據:現有 runtime before=0px、after=16px;required facts 包含 ltrOffset、rtlOffset

回到主題說明