8000 [TwigBundle] Exception page: prefer overflow-wrap to word-break by julienfalque · Pull Request #25138 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[TwigBundle] Exception page: prefer overflow-wrap to word-break #25138

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

Merged
merged 1 commit into from
Nov 24, 2017

Conversation

julienfalque
Copy link
Contributor
@julienfalque julienfalque commented Nov 23, 2017
Q A
Branch? 3.3
Bug fix? yes-ish
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets -
License MIT
Doc PR -

This prevents arbitrary text wrapping, breaks are always made on whitespace when possible:

Before
long-before

After
long-after

Random breaks inside words can still be made for very long words:

Before
very-long-before

After
very-long-after

Tested on Chrome 62 (Linux) and Firefox 47 (Linux).

@fabpot
Copy link
Member
fabpot commented Nov 24, 2017

Thank you @julienfalque.

@fabpot fabpot merged commit c7333b1 into symfony:3.3 Nov 24, 2017
fabpot added a commit that referenced this pull request Nov 24, 2017
…d-break (julienfalque)

This PR was merged into the 3.3 branch.

Discussion
----------

[TwigBundle] Exception page: prefer overflow-wrap to word-break

| Q             | A
| ------------- | ---
| Branch?       | 3.3
| Bug fix?      | yes-ish
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

This prevents arbitrary text wrapping, breaks are always made on whitespace when possible:

**Before**
![long-before](https://user-images.githubusercontent.com/1736542/33190369-4c23fb88-d0ac-11e7-8c4d-60e60fc06b83.png)

**After**
![long-after](https://user-images.githubusercontent.com/1736542/33190370-4e449a4e-d0ac-11e7-90bd-6dacca10e9fd.png)

Random breaks inside words can still be made for very long words:

**Before**
![very-long-before](https://user-images.githubusercontent.com/1736542/33190387-83a3572a-d0ac-11e7-8d6b-c19b3812c339.png)

**After**
![very-long-after](https://user-images.githubusercontent.com/1736542/33190388-84cf6724-d0ac-11e7-9756-bb34a0a64bb8.png)

Tested on Chrome 62 (Linux) and Firefox 47 (Linux).

Commits
-------

c7333b1 Prefer overflow-wrap to word-break
@julienfalque julienfalque deleted the exception-overflow-wrap branch November 24, 2017 13:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants
0