Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clip is deprecated #35743

Closed
lor3k opened this issue Sep 4, 2024 · 1 comment · Fixed by #35956
Closed

clip is deprecated #35743

lor3k opened this issue Sep 4, 2024 · 1 comment · Fixed by #35956
Labels
Content:WebAPI Web API docs

Comments

@lor3k
Copy link

lor3k commented Sep 4, 2024

MDN URL

https://developer.mozilla.org/en-US/docs/Web/API/File_API/Using_files_from_web_applications

What specific section or headline is this issue about?

No response

What information was incorrect, unhelpful, or incomplete?

clip is deprecated; don't suggest to use it

What did you expect to see?

I would remove solution with clip from the examples

Do you have any supporting links, references, or citations?

No response

Do you have anything more you want to share?

No response

MDN metadata

Page report details
@lor3k lor3k added the needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. label Sep 4, 2024
@github-actions github-actions bot added the Content:WebAPI Web API docs label Sep 4, 2024
@Josh-Cena Josh-Cena removed the needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. label Sep 4, 2024
@herrstrietzel
Copy link

Probably, this CSS part on "Using a label element to trigger a hidden file input element"

for a screen-reader-only class should just be synchronized with the current recommendation on a11yproject. - adding the more modern clip-path: inset(50%); property.

.visually-hidden {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Content:WebAPI Web API docs
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants