Skip to content

fix(cli): check no longer reports outline text as not painted - #6693

Merged
miguel-heygen merged 1 commit into
mainfrom
checklong/outline-text-painted
Oct 28, 2026
Merged

miguel-heygen merged 1 commit into
mainfrom
checklong/outline-text-painted

Conversation

@miguel-heygen

Copy link
Copy Markdown
Collaborator

What changed

check reported text_not_painted on outline text: color: transparent with -webkit-text-stroke: 2px. The glyphs paint (the stroke), but the rule read only the fill. A visible stroke (width above 0, alpha above 0.05) now counts as paint; transparent text with no stroke, a zero-width stroke or a transparent stroke is still reported.

What I measured

Real Chrome (headless shell 152), the audit script on a 1920x1080 composition with one h1. On hyperframes 0.8.214 the outline case reports text_not_painted; with this change it does not. The layout-audit Chromium file passes, 73 tests.

fails without the fix: judges outline text (transparent fill, visible stroke) by what it paints

Red on main (expected true to be false), green here; the three transparent-text rows pass on both.

What I did NOT exercise

  • Not run on Windows or Mac.
  • A stroke the same colour as the background still counts as paint; only a transparent stroke does not.
  • The other two reports from the same batch (a contrast finding on a label under an opaque caption box, and snapshot on exact frame boundaries) are separate.

Why under 100 lines

One condition and one test table, 30 lines.

@heygengenesis heygengenesis Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: APPROVE · 0 blocker · 0 important · 0 nits · head 8103b20f

Scope

Read both files. Checked the fails-without-fix claim locally (Chromium 1237): with main's layout-audit.browser.js, "judges outline text (transparent fill, visible stroke) by what it paints" fails with expected true to be false and the 3 transparent rows pass. With this head, all 73 tests in the file pass. The stroke check is safe when no stroke is set: -webkit-text-stroke-color computes from currentcolor, so a transparent color with no stroke colour still reads as transparent and is still reported. invisibleTextIssue has a single caller, and no other audit depends on it. CI, Comments, CodeQL, regression and Windows render verification are all green on this head.

@miguel-heygen
miguel-heygen added this pull request to the merge queue Oct 28, 2026
Merged via the queue into main with commit 9f65efb Oct 28, 2026
66 checks passed
@miguel-heygen
miguel-heygen deleted the checklong/outline-text-painted branch October 28, 2026 19:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant