Page MenuHomePhabricator

Gerrit commit message body is always wrapped with MS Edge
Open, Needs TriagePublic

Description

Gerrit commit message body is always wrapped with MS Edge 44.17763.1.0 and does not respect any line feeds.

Event Timeline

I'm lacking access to MS Edge. Could you please post a screenshot?

I'm lacking access to MS Edge. Could you please post a screenshot?

Sure.

The commit message:

commit.PNG (372×718 px, 17 KB)

And as it is shown with Gerrit:

gerrit.PNG (756×1 px, 97 KB)

If I understood CSS properly, the wrapping rule comes from the first rule in:

:host([pre]) span {
    white-space: var(--linked-text-white-space, pre-wrap);
    word-wrap: var(--linked-text-word-wrap, break-word);
}

And Microsoft Edge should support white-space: pre-wrap according to https://caniuse.com/#feat=mdn-css_properties_white-space_pre-wrap , and it supports var() as well. We would need to look at the dom/css rule applied to the element.

There are some demos at https://developer.mozilla.org/en-US/docs/Web/CSS/white-space :)