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

Resolve overflow-clip naming collision issue #5630

Merged
merged 2 commits into from
Sep 28, 2021
Merged

Resolve overflow-clip naming collision issue #5630

merged 2 commits into from
Sep 28, 2021

Conversation

reinink
Copy link
Member

@reinink reinink commented Sep 28, 2021

Resolves #4622

With overflow: clip becoming more widely supported by browsers, we are running into a naming collision with the existing overflow-clip utility, which sets text-overflow: clip.

This PR renames the existing text-overflow utilities as following:

Old Class New Class
overflow-ellipsis text-ellipsis
overflow-clip text-clip

We considered using ellipsis and clip for these utilities, but using the prefix makes these utilities more resilient to new values being supported in the future. For example, Firefox already supports values like text-overflow: "-".

Renaming overflow-clip to text-clip is a breaking change, but I expect the impact will be very low, since text-overflow: clip is the browser default, and there are very few reasons to actually use that class.

We are not removing the existing overflow-ellipsis utility because that would be an unnecessary breaking change, but it is now considered deprecated, and will no longer be documented.

With the overflow-clip class now available, we've also added the new overflow: clip utilities:

Class CSS
overflow-clip overflow: clip
overflow-x-clip overflow-x: clip
overflow-y-clip overflow-y: clip

reinink and others added 2 commits September 28, 2021 14:03
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.

Impending name clash with overflow-clip
1 participant