feat: 增加微信 rpx 主题风险诊断并补充限制文档 - #1216
Merged
Merged
Conversation
…ns' into codex/docs-spacing-rpx-limitations
Contributor
PR 性能基准报告:部分结果
总览
Benchmark 项目矩阵
Benchmark 插件处理阶段
Benchmark 内存
Watch 明细
门禁与诊断
运行链接统计口径
|
This was referenced Sep 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
变更说明
微信小程序中,Tailwind v4 的
@theme { --spacing: 1rpx }可以生成合法 WXSS,但运行时calc的尺寸可能与直接长度不同。本 PR 补充已有 DevTools 对照和中英文限制说明,并增加建议性构建 warning;warning 不代表构建失败,也不会修改 CSS 或 classSet。weapp且配置/框架环境明确识别为微信时,检查@theme/@theme inline内所有包含 rpx 维度的自定义属性,不限于 spacing,也覆盖已扫描入口依赖图中的本地导入主题。文案保持事实边界:微信可能先对带单位操作数独立换算或量化再乘法,不能断言内部一定是 0.5px 后四舍五入。已有 3rpx 和偶数基数对照均表明偶数不保证准确。固定像素尺寸优先 px;需缩放时优先构建期输出最终静态 rpx,并检查最终 WXSS 和目标设备。
Refs #1214
本地验证
验证命令与边界见
docs/engineering/lessons/rpx-theme-warning.md。保留已有 mixed exports、模块类型和 CSS minimizer 字体警告,无未解决的本地检查失败。本次未改 demo/static fixture,也未新增真机、Skyline 或完整框架 HMR 验收;不宣称修复微信运行时算法。未等待远端 CI。