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

Add text-wrap and white-space-collapse, and update white-space #664

Merged
merged 4 commits into from
Jul 13, 2023

Conversation

chrisdavidmills
Copy link
Contributor

@chrisdavidmills chrisdavidmills commented May 10, 2023

Description

Chrome 114 adds the text-wrap and white-space-collapse CSS properties, and updates the white-space property with new behavior — as well as taking its usual keywords, it can now act as a shorthand property for text-wrap and white-space-collapse. These items are specified in CSS Text Level 4.

This PR adds those items to the data. I also took this opportunity to add .DS_Store files to the .gitignore file. As a mac user, that was getting on my nerves ;'-)

Note - there is another related property, white-space-trim, which is specced as being included in the white-space shorthand value, but this is not supported yet so I have not added it. Let me know if you think I should add it.

Motivation

Additional details

My research document provides additional details about this overall project and its required changes.

Related issues and pull requests

@chrisdavidmills
Copy link
Contributor Author

@teoli2003 Hello! Please could you have a look at this one?

@github-actions github-actions bot added the idle Issues and pull requests with no activity for three months. label Jun 16, 2023
@chrisdavidmills
Copy link
Contributor Author

@bsmth can you review this one please mate?

@bsmth
Copy link
Member

bsmth commented Jul 12, 2023

I can indeed, I'll take a look tomorrow if that's okay

@bsmth bsmth self-assigned this Jul 12, 2023
@chrisdavidmills
Copy link
Contributor Author

I can indeed, I'll take a look tomorrow if that's okay

That's perfect, thanks!

@github-actions github-actions bot removed the idle Issues and pull requests with no activity for three months. label Jul 13, 2023
@@ -1,2 +1,2 @@
/node_modules/
.DS_Store
.DS_Store
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤔 I thought I added this here: 4f74b57 not sure what the difference is

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added it too, in this PR, so it ended up creating a merge conflict. That's why it looks a little odd.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gotcha

css/properties.json Outdated Show resolved Hide resolved
Copy link
Member

@bsmth bsmth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, @chrisdavidmills - one comment about the missing prop you mentioned, but ready to go after that 👍🏻

@chrisdavidmills
Copy link
Contributor Author

Looks good, @chrisdavidmills - one comment about the missing prop you mentioned, but ready to go after that 👍🏻

Cool, thanks for the review @bsmth . I've added white-space-trim, as suggested.

@chrisdavidmills
Copy link
Contributor Author

@bsmth ooop, I can't merge in this repo. Can you merge it? Ta.

@bsmth bsmth merged commit a1d5d41 into mdn:main Jul 13, 2023
3 checks passed
@chrisdavidmills chrisdavidmills deleted the new-text-wrap-and-whitespace-props branch July 13, 2023 11:18
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.

2 participants