Repository navigation
fix(extract): count a partial implementation as support in target checks - #431
Merged
Merged
Conversation
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>
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.
Follow-up to #430, which noted that
animus.style.unsupported-featurereportedoutlinefor Safari before 16.4.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.outline,mask,overscroll-behavior,paint-order,accent-colorand@scopein Safari. With partials excluded, the new derivation reproduces the old table on all 5,901 cells, so partials are the only difference.outline,border-radius,display,position,transform,transition,flex,gap,grid-template-columns,box-shadow,opacity,overflow,cursor,font-weightandz-indexare not candidates;anchor-name,position-anchor,@starting-style,@scope,if(),reading-flowandscroll-marker-groupstill are.@mdn/browser-compat-data8.1.11 is a development dependency ofpackages/extract, used only by the generator. The table is 31 bytes smaller.packages/_integration/__tests__/target-support.test.tsgains 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:
maskin Chrome before 120,transition-behaviorin Firefox 129,overflow-clip-marginin Chrome 90.Verification
vp run verify:fullpasses at this commit: 55 of 55 tasks.css-support.ts --checkpasses.🤖 Generated with Claude Code