зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1878865 - Only record that breakPriority indicated use of overflow-wrap if we actually needed to break the text. r=layout-reviewers,emilio
Differential Revision: https://phabricator.services.mozilla.com/D200853
This commit is contained in:
Родитель
69e07192ca
Коммит
84e0f8920d
|
@ -9842,7 +9842,7 @@ void nsTextFrame::ReflowText(nsLineLayout& aLineLayout, nscoord aAvailableWidth,
|
|||
aLineLayout.SetFirstLetterStyleOK(false);
|
||||
aStatus.SetFirstLetterComplete();
|
||||
}
|
||||
if (breakPriority == gfxBreakPriority::eWordWrapBreak) {
|
||||
if (brokeText && breakPriority == gfxBreakPriority::eWordWrapBreak) {
|
||||
aLineLayout.SetUsedOverflowWrap();
|
||||
}
|
||||
|
||||
|
|
|
@ -0,0 +1,13 @@
|
|||
<!DOCTYPE html>
|
||||
<style>
|
||||
#test {
|
||||
border: 1px solid gray;
|
||||
font: 15px monospace;
|
||||
width: 20ch;
|
||||
}
|
||||
</style>
|
||||
|
||||
<body>
|
||||
<div id=test>
|
||||
Interconnect<br>your build
|
||||
</div>
|
|
@ -0,0 +1,18 @@
|
|||
<!DOCTYPE html>
|
||||
<link rel="help" href="https://drafts.csswg.org/css-text-4/#valdef-text-wrap-balance">
|
||||
<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1878865">
|
||||
<link rel="match" href="reference/text-wrap-balance-overflow-002-ref.html">
|
||||
|
||||
<style>
|
||||
#test {
|
||||
border: 1px solid gray;
|
||||
font: 15px monospace;
|
||||
width: 20ch;
|
||||
text-wrap: balance;
|
||||
}
|
||||
</style>
|
||||
|
||||
<body onload="test.style.overflowWrap='anywhere'">
|
||||
<div id=test>
|
||||
Interconnect your build
|
||||
</div>
|
Загрузка…
Ссылка в новой задаче