[2.0] Resolve intermittent WebKit animation shorthand validation failure

未关闭
#478 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
18/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
css, typescript
领域
testing-qa

调研方向

Start with packages/runtime/e2e/keyframes.test.ts lines 19-21, which assert animation-duration 1s after the runtime applies animate-fade animation-fast, and run the focused WebKit repeat command from the issue. Compare the static stylesheet output with the runtime-inserted CSSOM rules for the same classes to see where 0.15s comes from. Done means the focused test passes repeatedly and the full browser suite passes without loosening the assertion or adding timeouts.

由索引模型根据 Issue 内容生成。

描述

Parent: #468 (release tracker #467)

Observed failure

The runtime browser suite fails in WebKit after changing an element from animate-fade to animate-fade animation-fast.

packages/runtime/e2e/keyframes.test.ts:19-21 expects animation-duration: 1s after the runtime observes the new class. WebKit sometimes reports 0.15s instead.

Reproduction and results

bun run --filter @master/css-runtime e2e
bun run --filter @master/css-runtime e2e --project=webkit e2e/keyframes.test.ts --repeat-each=3
  • Full suite on the local candidate: 668 passed, 1 failed, with the failure in WebKit at the assertion above.
  • Focused repeated suite: 13 passed, 2 failed; the same shorthand test fails in 2 of 3 repetitions. This is intermittent, not a claim of deterministic failure on every run.
  • Chromium/Firefox pass in the full run.

Acceptance

  • Determine whether CSSOM insertion/invalidation, cascade order, an upstream WebKit behavior, or the test's expectation causes the discrepancy.
  • Compare static stylesheet output with runtime insertion/removal for the same classes and token values.
  • Preserve the intended shorthand/longhand contract and direct override behavior; do not merely increase timeouts or change the expected value to hide the difference.
  • Repeat the focused test successfully and pass the full browser suite on the final candidate.

This issue tracks an observed release-validation failure; its root cause is not yet established.

主要语言
TypeScript
星标
2k
派生
44
PR 合并指标
30 天内没有已合并 PR

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

master-co/css 的其他 Issue

查看 master-co/css 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。