Backed out changeset 2947c5ae2f8b (bug 1586600) for mochitest failures on test_group_wheelevents.html.

This commit is contained in:
Cosmin Sabou 2019-10-15 03:52:46 +03:00
Родитель efcbc0d09d
Коммит 3c03c8f466
6 изменённых файлов: 5 добавлений и 43 удалений

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

@ -6,7 +6,7 @@
<script src="/tests/SimpleTest/paint_listener.js"></script>
</head>
<body>
<iframe id="scroll" srcdoc="<!doctype html><html style='overscroll-behavior:none;'><div style='width:100px;height:2000px;'>">
<iframe id="scroll" srcdoc="<html style='overscroll-behavior:none;'><div style='width:100px;height:2000px;'>">
</iframe>
<div style="height: 5000px;"></div><!-- So the page is scrollable as well -->

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

@ -1,5 +0,0 @@
<html style="overscroll-behavior-y: contain;">
<body style="overflow: hidden;">
<script>
document.body.clientWidth;
</script>

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

@ -586,4 +586,3 @@ load 1578844-2.html
pref(layout.css.column-span.enabled,true) load 1579953-1.html
pref(layout.css.column-span.enabled,true) load 1580576.html
load empty-mask.html
load 1586600.html

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

@ -1037,8 +1037,10 @@ static bool CheckOverflow(const ComputedStyle* aComputedStyle,
return false;
}
if (display->mOverflowX == StyleOverflow::Visible) {
MOZ_ASSERT(display->mOverflowY == StyleOverflow::Visible);
if (display->mOverflowX == StyleOverflow::Visible &&
display->mOverscrollBehaviorX == StyleOverscrollBehavior::Auto &&
display->mOverscrollBehaviorY == StyleOverscrollBehavior::Auto &&
display->mScrollSnapType.strictness == StyleScrollSnapStrictness::None) {
return false;
}

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

@ -1,17 +0,0 @@
<!doctype html>
<title>CSS Overflow Test: overscroll-behavior doesn't stop overflow from being propagated from the body</title>
<link rel="author" title="Emilio Cobos Álvarez" href="mailto:emilio@crisal.io">
<link rel="author" title="Mozilla" href="https://mozilla.org">
<link rel="help" href="https://drafts.csswg.org/css-overflow/#overflow-propagation">
<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1586600">
<link rel="match" href="reference/overflow-body-propagation-ref.html">
<style>
:root {
overscroll-behavior-y: contain;
}
body {
overflow: scroll;
margin-top: 100px;
}
</style>
<body>The viewport should have scrollbars, not the body.</body>

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

@ -1,17 +0,0 @@
<!doctype html>
<title>CSS Overflow Test: scroll-snap-type doesn't stop overflow from being propagated from the body</title>
<link rel="author" title="Emilio Cobos Álvarez" href="mailto:emilio@crisal.io">
<link rel="author" title="Mozilla" href="https://mozilla.org">
<link rel="help" href="https://drafts.csswg.org/css-overflow/#overflow-propagation">
<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1586600">
<link rel="match" href="reference/overflow-body-propagation-ref.html">
<style>
:root {
scroll-snap-type: both mandatory;
}
body {
overflow: scroll;
margin-top: 100px;
}
</style>
<body>The viewport should have scrollbars, not the body.</body>