Skip to content

Fix clipped by masking frequent shapes#2146

Open
Jym77 wants to merge 4 commits into
mainfrom
fix-clipped-by-masking-frequent-shapes
Open

Fix clipped by masking frequent shapes#2146
Jym77 wants to merge 4 commits into
mainfrom
fix-clipped-by-masking-frequent-shapes

Conversation

@Jym77

@Jym77 Jym77 commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Resolves #1548

Elements that are clipped (via clip-path) by an "obviously empty" shape are invisible.

This also de-deprecate the Rectangle shape for whitespace separated syntax, as it is part of the <basic-shape> CSS type; the comma-separated syntax, only used in the deprecated clip property is still present via a deprecated parser.

Thanks to @wittjeff for investigating commonly used empty shape.

@changeset-bot

changeset-bot Bot commented Jul 17, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: ba2ebc4

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 76 packages
Name Type
@siteimprove/alfa-style Minor
@siteimprove/alfa-css Minor
@siteimprove/alfa-cascade Minor
@siteimprove/alfa-css-feature Minor
@siteimprove/alfa-dom Minor
@siteimprove/alfa-painting-order Minor
@siteimprove/alfa-rules Minor
@siteimprove/alfa-selector Minor
@siteimprove/alfa-act Minor
@siteimprove/alfa-affine Minor
@siteimprove/alfa-applicative Minor
@siteimprove/alfa-aria Minor
@siteimprove/alfa-array Minor
@siteimprove/alfa-bits Minor
@siteimprove/alfa-branched Minor
@siteimprove/alfa-cache Minor
@siteimprove/alfa-callback Minor
@siteimprove/alfa-clone Minor
@siteimprove/alfa-collection Minor
@siteimprove/alfa-comparable Minor
@siteimprove/alfa-continuation Minor
@siteimprove/alfa-device Minor
@siteimprove/alfa-eaa Minor
@siteimprove/alfa-earl Minor
@siteimprove/alfa-either Minor
@siteimprove/alfa-emitter Minor
@siteimprove/alfa-encoding Minor
@siteimprove/alfa-equatable Minor
@siteimprove/alfa-flags Minor
@siteimprove/alfa-fnv Minor
@siteimprove/alfa-foldable Minor
@siteimprove/alfa-functor Minor
@siteimprove/alfa-generator Minor
@siteimprove/alfa-graph Minor
@siteimprove/alfa-hash Minor
@siteimprove/alfa-http Minor
@siteimprove/alfa-iana Minor
@siteimprove/alfa-iterable Minor
@siteimprove/alfa-json-ld Minor
@siteimprove/alfa-json Minor
@siteimprove/alfa-lazy Minor
@siteimprove/alfa-list Minor
@siteimprove/alfa-map Minor
@siteimprove/alfa-mapper Minor
@siteimprove/alfa-math Minor
@siteimprove/alfa-monad Minor
@siteimprove/alfa-network Minor
@siteimprove/alfa-option Minor
@siteimprove/alfa-parser Minor
@siteimprove/alfa-performance Minor
@siteimprove/alfa-predicate Minor
@siteimprove/alfa-record Minor
@siteimprove/alfa-rectangle Minor
@siteimprove/alfa-reducer Minor
@siteimprove/alfa-refinement Minor
@siteimprove/alfa-result Minor
@siteimprove/alfa-rng Minor
@siteimprove/alfa-sarif Minor
@siteimprove/alfa-selective Minor
@siteimprove/alfa-sequence Minor
@siteimprove/alfa-set Minor
@siteimprove/alfa-slice Minor
@siteimprove/alfa-string Minor
@siteimprove/alfa-table Minor
@siteimprove/alfa-test Minor
@siteimprove/alfa-thunk Minor
@siteimprove/alfa-time Minor
@siteimprove/alfa-toolchain Minor
@siteimprove/alfa-trampoline Minor
@siteimprove/alfa-tree Minor
@siteimprove/alfa-trilean Minor
@siteimprove/alfa-tuple Minor
@siteimprove/alfa-url Minor
@siteimprove/alfa-wcag Minor
@siteimprove/alfa-web Minor
@siteimprove/alfa-xpath Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@Jym77 Jym77 added the major Backwards-incompatible change that touches public API label Jul 17, 2026
@Jym77 Jym77 self-assigned this Jul 17, 2026
@github-project-automation github-project-automation Bot moved this to 🧑‍💻 Doing in ⚙️ Alfa Development Jul 17, 2026
Comment thread packages/alfa-style/test/node/predicate/is-clipped.spec.tsx Fixed
@Jym77
Jym77 marked this pull request as ready for review July 17, 2026 09:36
@Jym77
Jym77 requested a review from a team as a code owner July 17, 2026 09:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

major Backwards-incompatible change that touches public API

Projects

Status: 🧑‍💻 Doing

Development

Successfully merging this pull request may close these issues.

SIA-R83 (Text is clipped) doesn't detect invisibility due to clip-path

2 participants