Repository navigation
fix(test): 适配 Chrome 158 的两处计算样式变化,恢复动画验收与窄屏外壳契约 - #90
Merged
Merged
Conversation
Chrome 158 在 GitHub runner 上滚动替换 157,master 的 push CI 与 PR CI 时红时绿; 产品代码没有问题,改的都是测试。 - 动画验收:归一化把关键帧声明逐个赋给探针元素后立刻读计算样式,而 getKeyframes() 返回的键是字母序,读 maskSize 时 maskImage 还没赋上;Chrome 158 在没有 mask-image 时 把 mask 各 longhand 的计算值截到第一层,7 项 t=0.5 中间帧断言的期望值因此只剩一层。 改为先全部赋值再读 - 官网编辑器窄屏契约:justify-content: flex-start 的计算值在 Chrome 158 序列化为 flow-start,断言同时接受两种写法 本机 Chrome 158 上四门禁不绕过任何失败全部通过;两处变化登记进 AGENTS 已知陷阱。
4 tasks done
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.
变更
master 在 #88 合并后的 push CI 是红的,PR 的 CI 时红时绿:GitHub runner 正从 Chrome 157 滚动到 158,而两处浏览器断言依赖 157 的行为。产品代码没有问题,改的都是测试。
getKeyframes()返回的键是字母序,读maskSize时maskImage还没赋上。Chrome 158 在没有mask-image时把 mask 各 longhand 的计算值截到第一层,期望值因此只剩一层;真实元素上的动画值与关键帧逐层一致normalize改为先全部赋值再读(tooling/lib/animation-acceptance-browser.mjs)#taskStart的justify-content计算值=== 'flex-start';Chrome 158 把它序列化为flow-start。其余三个子条件(对象面板display:none、页码隐藏、页签合计 256px < 70% 线)都成立,布局本身没变flex-start与flow-start(tooling/lib/site-editor-shape-toolbar-contract.mjs)证据:同一份代码在 #88 的 PR 运行里
source (render)落在Chrome/157.0.8103.78通过,在 master 的 push 运行里落在Chrome/158.0.8127.36失败;本机 Chrome 158 上与 master 相同的干净检出复现同一结果。AGENTS 已知陷阱登记这两处变化。
验证
npm run check && npm test && npm run build && npm run verify全部通过(本机 Chrome 158 不绕过任何失败;CI 全部 29 个作业通过,其中dist (render)落在 Chrome 158.0.8127.36、source (render)落在 157.0.8103.78)