Skip to content

Commit

Permalink
Fix under-invalidation on removal of the document element
Browse files Browse the repository at this point in the history
Bug: 1219300
Change-Id: I7527a630ac9482325016627097db2209e91d9970
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2959607
Reviewed-by: Stephen Chenney <schenney@chromium.org>
Commit-Queue: Xianzhu Wang <wangxianzhu@chromium.org>
Cr-Commit-Position: refs/heads/master@{#892366}
  • Loading branch information
wangxianzhu authored and chromium-wpt-export-bot committed Jun 15, 2021
1 parent c4e2948 commit 7d36272
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
2 changes: 2 additions & 0 deletions css/css-backgrounds/document-canvas-remove-body-ref.html
@@ -0,0 +1,2 @@
<!DOCTYPE html>
<!-- intentionally empty -->
14 changes: 14 additions & 0 deletions css/css-backgrounds/document-canvas-remove-body.html
@@ -0,0 +1,14 @@
<!DOCTYPE html>
<html class="reftest-wait">
<script src="/common/reftest-wait.js"></script>
<script src="/common/rendering-utils.js"></script>
<link rel="help" href="https://www.w3.org/TR/css-backgrounds-3/#body-background">
<link rel="match" href="document-canvas-remove-body-ref.html">
<body style="background: red"></body>
<script>
waitForAtLeastOneFrame().then(() => {
document.body.remove();
takeScreenshot();
});
</script>
</html>

0 comments on commit 7d36272

Please sign in to comment.