зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1820866 [wpt PR 38857] - [text-balance] Disable line cache if `text-wrap: balance`, a=testonly
Automatic update from web-platform-tests [text-balance] Disable line cache if `text-wrap: balance` When parts of inline formatting context was changed, we try to reuse existing fragments for lines above the change. When `text-wrap: balance`, this should not apply, because lines above the change may also be affected. This patch disables the line cache in such case. Fixed: 1421423 Change-Id: Ib4bb2b65838290940e713de6b09d725c7bb2931e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4314764 Reviewed-by: Ian Kilpatrick <ikilpatrick@chromium.org> Commit-Queue: Ian Kilpatrick <ikilpatrick@chromium.org> Auto-Submit: Koji Ishii <kojii@chromium.org> Cr-Commit-Position: refs/heads/main@{#1114150} -- wpt-commits: d4bad531093495a7417f332b5f2b297e0baa6b4d wpt-pr: 38857
This commit is contained in:
Родитель
b679571ac1
Коммит
408501c17c
|
@ -0,0 +1,16 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<style>
|
||||||
|
#container {
|
||||||
|
width: 20ch;
|
||||||
|
text-wrap: balance;
|
||||||
|
}
|
||||||
|
span:hover {
|
||||||
|
color: red;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
<div id="container">
|
||||||
|
123 567 901 345 789
|
||||||
|
123 567 901 345 789
|
||||||
|
123 567 901 345 789
|
||||||
|
999
|
||||||
|
</div>
|
|
@ -0,0 +1,21 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<link rel="help" href="https://w3c.github.io/csswg-drafts/css-text-4/#valdef-text-wrap-balance">
|
||||||
|
<link rel="match" href="reference/text-wrap-balance-dynamic-001-ref.html">
|
||||||
|
<style>
|
||||||
|
#container {
|
||||||
|
width: 20ch;
|
||||||
|
text-wrap: balance;
|
||||||
|
}
|
||||||
|
span:hover {
|
||||||
|
color: red;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
<div id="container">
|
||||||
|
123 567 901 345 789
|
||||||
|
123 567 901 345 789
|
||||||
|
123 567 901 345 789
|
||||||
|
</div>
|
||||||
|
<script>
|
||||||
|
document.body.offsetTop;
|
||||||
|
container.appendChild(document.createTextNode('999'));
|
||||||
|
</script>
|
Загрузка…
Ссылка в новой задаче