Automatic update from web-platform-tests [invalidation] Fix under-invalidation of overflow-clip-margin. If the <reference-box> for overflow-clip-margin was content-box we didn't invalidate our clip if the padding changed. Mark the LayoutBox as needing a paint-property update for this case. Change-Id: I009e2ca39161e2d6aba8cb2390b78444376aa559 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7914267 Reviewed-by: David Baron <dbaron@chromium.org> Commit-Queue: Ian Kilpatrick <ikilpatrick@chromium.org> Cr-Commit-Position: refs/heads/main@{#1644874} -- wpt-commits: 5ad7523e7d704934c45df0169873e1601f968a61 wpt-pr: 60540
33 lines
788 B
HTML
33 lines
788 B
HTML
<!DOCTYPE html>
|
|
<html class="reftest-wait">
|
|
<link rel="match" href="../reference/ref-filled-green-100px-square-only.html">
|
|
<link rel="help" href="https://drafts.csswg.org/css-overflow-3/#overflow-clip-margin">
|
|
<script src="/common/rendering-utils.js"></script>
|
|
<script src="/common/reftest-wait.js"></script>
|
|
<style>
|
|
#target {
|
|
width: 100px;
|
|
height: 100px;
|
|
padding-bottom: 50px;
|
|
box-sizing: border-box;
|
|
overflow: clip;
|
|
overflow-clip-margin: content-box;
|
|
}
|
|
|
|
#target > div {
|
|
width: 100px;
|
|
height: 100px;
|
|
background: green;
|
|
}
|
|
</style>
|
|
<p>Test passes if there is a filled green square.</p>
|
|
<div id="target">
|
|
<div></div>
|
|
</div>
|
|
<script>
|
|
waitForAtLeastOneFrame().then(() => {
|
|
document.getElementById('target').style.paddingBottom = '0px';
|
|
takeScreenshot();
|
|
});
|
|
</script>
|