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

[css-text] test depending on undefined behavior #20501

Open
frivoal opened this issue Nov 28, 2019 · 2 comments
Open

[css-text] test depending on undefined behavior #20501

frivoal opened this issue Nov 28, 2019 · 2 comments
Assignees

Comments

@frivoal
Copy link
Contributor

frivoal commented Nov 28, 2019

Unless I am misunderstanding something, word-break-break-all-inline-010 seems to depend on undefined behavior. https://drafts.csswg.org/css-text-3/#line-break-details says:

For soft wrap opportunities defined by the boundary between two characters, [...] which elements’ line-break, word-break, and overflow-wrap properties control the determination of soft wrap opportunities at such boundaries is undefined in Level 3.

Based on that, the behavior expected by the test is allowed (it assumes that the at the start of the span break is controled by the span), but keeping 3 characters on the first line would be allowed too (assuming the break at the start of the span is controlled by the parent div).

The test should be changed to count as pass in both cases (probably using two references, and only showing red if it fails to wrap at all, or if it wrap between the first and second character of the <div>

@frivoal
Copy link
Contributor Author

frivoal commented Dec 1, 2019

Same comment about overflow-wrap/overflow-wrap-anywhere-inline-003

@javifernandez
Copy link
Contributor

I'll take a look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants