Skip to content

fix(extract): count a partial implementation as support in target checks - #431

Merged
codecaaron merged 1 commit into
mainfrom
feat/leverage-batch-6
Nov 28, 2026
Merged

codecaaron merged 1 commit into
mainfrom
feat/leverage-batch-6

Conversation

@codecaaron

Copy link
Copy Markdown
Owner

Follow-up to #430, which noted that animus.style.unsupported-feature reported outline for Safari before 16.4.

  • The target-support table took its versions from web-features, which treats a partial implementation as no support. The generator (packages/extract/scripts/css-support.ts) now reads @mdn/browser-compat-data: a browser supports a feature from the first released version in which it shipped unprefixed and unflagged, whether or not the entry is marked partial.
  • 33 entries move, all toward earlier support. The large ones are outline, mask, overscroll-behavior, paint-order, accent-color and @scope in Safari. With partials excluded, the new derivation reproduces the old table on all 5,901 cells, so partials are the only difference.
  • Under Safari 15.4, Firefox 100 and Chrome 100: outline, border-radius, display, position, transform, transition, flex, gap, grid-template-columns, box-shadow, opacity, overflow, cursor, font-weight and z-index are not candidates; anchor-name, position-anchor, @starting-style, @scope, if(), reading-flow and scroll-marker-group still are.
  • @mdn/browser-compat-data 8.1.11 is a development dependency of packages/extract, used only by the generator. The table is 31 bytes smaller.
  • The kept test packages/_integration/__tests__/target-support.test.ts gains the case "a property with only a partial implementation in a target browser is not reported".

Now unreported, where a partial implementation does very little: mask in Chrome before 120, transition-behavior in Firefox 129, overflow-clip-margin in Chrome 90.

Verification

vp run verify:full passes at this commit: 55 of 55 tasks. css-support.ts --check passes.

🤖 Generated with Claude Code

The target-support table took its versions from web-features, which treats a partial implementation as no support, so outline was reported for Safari before 16.4. The generator now reads @mdn/browser-compat-data: a browser supports a feature from the first released version in which it shipped unprefixed and unflagged, partial or not. 33 entries move, all toward earlier support; with partials excluded the derivation reproduces the old table on every cell.

Under Safari 15.4, Firefox 100 and Chrome 100, fifteen long-established properties are no longer candidates and seven new features still are. The kept test gains the case that a property with only a partial implementation in a target is not reported.

Verified at this commit: vp run verify:full (55 of 55 tasks); css-support.ts --check passes.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@codecaaron
codecaaron merged commit 7bad1b5 into main Nov 28, 2026
16 checks passed
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