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

wbr should cut through nowrap unconditionally #6227

Open
fantasai opened this issue Dec 14, 2020 · 1 comment
Open

wbr should cut through nowrap unconditionally #6227

fantasai opened this issue Dec 14, 2020 · 1 comment

Comments

@fantasai
Copy link
Contributor

HTML spec specifies

nobr wbr { white-space: normal; }

However, Blink, Presto, WebKit, and IE6 all break through both nobr elements and other elements with white-space: nowrap.

See testcase http://software.hixie.ch/utilities/js/live-dom-viewer/?saved=8755

Just removing the nobr from that selector should be sufficient to fix this.

@domenic
Copy link
Member

domenic commented Dec 15, 2020

Although that's probably a good quick-fix to help align with observable behavior, the real issue here is #221, which I tried to fix in #2298 but got stuck on. (And that PR doesn't include this subtlety.)

See http://software.hixie.ch/utilities/js/live-dom-viewer/?saved=8756 .

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

No branches or pull requests

3 participants