processing / processing/p5.js-website

Line-clamp for Image alt-text doesn't behave as expected on Safari

Open
#829 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Bug
Dominant language
MDX
Stars
96
Forks
322
Avg merge
5d 22h
Merged PRs (30d)
8

Description

Most appropriate sections of the p5.js website?

Tutorials

What is your operating system?

Mac OS

Web browser and version

Safari Version 16.6 (18615.3.12.11.2)

Actual Behavior

When on Safari, the ellipse stays present and the text box does not expand to contain the un-truncated text

https://github.com/user-attachments/assets/731edf2b-8f56-4454-b6b8-120aef82af72

This is due to Safari having some issues with Tailwind line-clamp (see issue described here)

Expected Behavior

The ellipses should disappear and the textbox should expand to contain the un-truncated text. The expected behaviour is present on Chrome

Steps to reproduce
  • Open https://p5js.org/tutorials/ using Safari
  • Turn on "Alt Text" in the "Accessibility" dropdown
  • Hover over an image in the Tutorial Grid
Would you like to work on the issue?

Yes please

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue on the p5.js Tutorials page in Safari 16.6: enable Alt Text in the Accessibility dropdown and hover over an image in the Tutorial Grid. Inspect the Tutorial Grid's Tailwind line-clamp usage and compare it with Chrome; done means the ellipsis disappears and the text box expands to show the full alt text in Safari.

Written by the indexing model from the issue text.

Assessment

Tech stack
tailwindcss
Domain
accessibility, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.