Files
sousa-gecko/testing/web-platform/tests/css/compositing/root-element-background-image-transparency-004.html
T
Xianzhu Wang 095352075d Bug 1952041 [wpt PR 51138] - Paint view background in contents space if <html> has effects or clip-path, a=testonly
Automatic update from web-platform-tests
Paint view background in contents space if <html> has effects or clip-path

If the document element has effects or clip-path, we should paint
the view background with the view's contents transform and the root
element's clips and effects. However, previously if the view
background had fixed attachment, we might paint the background in
the border box space, which broke the above logic. Now always
paint view background in the contents space if the document
element has effects or clip-path.

Bug: 397737220
Change-Id: I1acef9cacc23711d2f9cfe4377c14056e91ddd3e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6324752
Commit-Queue: Xianzhu Wang <wangxianzhu@chromium.org>
Reviewed-by: Chris Harrelson <chrishtr@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1428509}

--

wpt-commits: a9f4eee80cd2d26d88f32152a483d62b489ec76c
wpt-pr: 51138
2025-03-17 09:45:42 +00:00

26 lines
868 B
HTML

<!DOCTYPE html>
<html>
<head>
<title>Opacity on Root Element With background image</title>
<link rel="author" title="Matt Woodrow" href="mailto:mattwoodrow@apple.com">
<link rel="help" href="https://drafts.fxtf.org/compositing/#pagebackdrop">
<meta name="assert" content="The background image should have opacity applied to
it as part of the Root Element Group">
<link rel="match" href="root-element-background-image-transparency-001-ref.html">
<meta name="fuzzy" content="maxDifference=0-1; totalPixels=0-250000" />
<style>
html {
background: url(support/transform-triangle-left.svg) fixed;
opacity: 0.5;
will-change: opacity;
}
body {
/* The default 8px margin makes the background not line up exactly */
margin: 0;
}
</style>
</head>
<body>
</body>
</html>