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 overflow-wrap to CssSchema definition list #312

Merged
merged 2 commits into from
Feb 2, 2024

Conversation

csware
Copy link
Contributor

@csware csware commented Jan 30, 2024

Fixes #290

@@ -423,6 +423,8 @@ Property forKey(String propertyName) {
"auto", "inherit", "none");
Set<String> overflowLiterals0 = Set.of(
"auto", "hidden", "inherit", "scroll", "visible");
Set<String> overflowWrapLiterals0 = Set.of(
"normal", "break-word", "anywhere", "inherit");
Copy link
Contributor Author

@csware csware Jan 30, 2024

Choose a reason for hiding this comment

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

What about other valid values such as "initial" , "revert" , "revert-layer", "unset" ((listed as "global values" on https://developer.mozilla.org/en-US/docs/Web/CSS/overflow-wrap?

Thoase are also not listed for the other properties.

Copy link
Contributor

Choose a reason for hiding this comment

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

I think revert and revert-layer were added before the last time this property list was thoroughly revamped. I don't quite understand the semantics, but I would worry about adding it everywhere that inherit appears in case it allows working around visual containment and event capturing measures like clipping, position, and overflow.

@mikesamuel mikesamuel merged commit 3c86741 into OWASP:main Feb 2, 2024
5 checks passed
@csware csware deleted the overflow-wrap branch February 2, 2024 19: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.

CSS property overflow-wrap not included in CssSchema definition list
2 participants