Web attributed text mixes outerOutlineColor with outlineWidth
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 半日
- 初心者へのやさしさ
- 55/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- css, typescript
- 領域
- frontend
調査の方向性
Start in web_renderer/src/utils/parseAttributedText.ts, where applyOutline is called with outerOutlineColor ?? outlineColor and outerOutlineWidth ?? outlineWidth, then find the attributed-text layout measurement code that reuses the same pairing. Read the AttributedTextAttributes docs for the pairing rule. Done when an inner outline applies only with both outlineColor and outlineWidth, an outer outline only with both outer properties, and the web fallback for both outlines is documented.
索引モデルが issue の本文から書いたものです。
説明
Description
The Valdi web renderer incorrectly combines an outer-outline color with an inner-outline width when outerOutlineWidth is omitted.
AttributedTextAttributes documents that both outerOutlineColor and outerOutlineWidth must be provided for an outer outline. Instead, the web renderer mixes independently configured inner and outer outline properties.
Reproduction
builder.append('28', {
color: '#78350f',
outerOutlineColor: '#fef3c7',
outlineColor: '#f59e0b',
outlineWidth: 1,
});
On web, this produces approximately:
-webkit-text-stroke: 1px rgb(254, 243, 199);
The renderer takes outerOutlineColor but falls back to the inner outlineWidth. The intended orange inner outline is therefore lost.
Cause
In web_renderer/src/utils/parseAttributedText.ts, outline values are selected independently:
applyOutline(
span,
style.outerOutlineColor ?? style.outlineColor,
style.outerOutlineWidth ?? style.outlineWidth,
context,
);
This allows a color from one outline pair to be combined with a width from the other. The same mixed-pair logic is also used when calculating attributed-text layout measurements.
Expected behavior
- Apply an inner outline only when both
outlineColorandoutlineWidthare set. - Apply an outer outline only when both
outerOutlineColorandouterOutlineWidthare set. - Never combine an outer property with an inner property.
- If web cannot render both outlines simultaneously, use a documented fallback rather than silently mixing them.
Actual behavior
outerOutlineColor overrides outlineColor, while outlineWidth is reused as the missing outer width. This renders the wrong color and suppresses the requested inner outline.
Environment
- Valdi commit:
e90a983749b384ba403c3bcdd40f7d0432404694 - Target: Web/Chromium
- Bazel: 8.x
- 主要言語
- C++
- スター
- 16.4k
- フォーク
- 538
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Snapchat/Valdi のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 50/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 55/100
メンテナーはふだん 1 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
メンテナーはふだん 1 日以内に返信
似ている issue
-
new issue
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
llvm/llvm-project#245835 ·
メンテナーはふだん 1 日以内に返信
-
documentation
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
EchoTools/nevr-runtime#2823 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
triton-lang/triton#12945 ·
メンテナーはふだん 1 日以内に返信
-
Releases do not move the `latest` Docker tag: the branch `30.12` is taken for the latest release branch対応中かも @alexey-milovidov が今日担当しました。 オープンcomp-ci-infrastructure unexpected behaviour
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
ClickHouse/ClickHouse#134282 ·
メンテナーはふだん 1 日以内に返信