Bug 1555536 [wpt PR 17090] - [LayoutNG] Scrollbar size comparasance fix, a=testonly

Automatic update from web-platform-tests
[LayoutNG] Scrollbar size comparasance fix

Also added a DCHECK to make sure that we never
set NeedsLayout flags while in intermediate layout.

Bug: 967361
Change-Id: I078d3884025c0d659cf7a25df694e082d6dd3f1c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1633031
Commit-Queue: Aleks Totic <atotic@chromium.org>
Reviewed-by: Emil A Eklund <eae@chromium.org>
Reviewed-by: Ian Kilpatrick <ikilpatrick@chromium.org>
Cr-Commit-Position: refs/heads/master@{#664596}

--

wp5At-commits: 9d79f0ae5ab310264caf81d6340166ba620c4efd
wpt-pr: 17090
This commit is contained in:
Aleks Totic 2019-06-13 14:50:33 +00:00 коммит произвёл James Graham
Родитель b6aede773b
Коммит 5d388d8e60
1 изменённых файлов: 30 добавлений и 0 удалений

Просмотреть файл

@ -0,0 +1,30 @@
<!DOCTYPE html>
<title>CSS Box: chrome crash</title>
<link rel="author" href="mailto:atotic@google.com">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<link rel="help" href="https://crbug.com/967361">
<meta name="assert" content="Chrome does not crash on narrow div with scrollbars.">
<style>
body {
writing-mode: vertical-lr;
}
#target {
overflow-y: scroll;
max-height: 5px;
background: gray;
}
</style>
<!-- -->
<div>
<span>
<div id="container">
<div id="target">anon</div>
</div>
</span>
</div>
<script>
test(() => {
}, 'test passes if it does not crash');
</script>