New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 660519 link

Starred by 1 user

Issue metadata

Status: Duplicate
Merged: issue 617785
Owner:
Closed: Nov 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 2
Type: Bug



Sign in to add a comment

Mask only applies to tiles overlapping the mask, not all overflowing content

Project Member Reported by wangxianzhu@chromium.org, Oct 28 2016

Issue description

Put a file containing the following under LayoutTests/fast/backgrounds:

<!DOCTYPE html>
<style>
#mask {
  width: 100px;
  height: 100px;
  -webkit-mask-box-image: url(resources/dot.png) 3;
}
#content {
  width: 400px;
  height: 400px;
  background-color: green;
}
</style>
<div id="mask">
  <div id="content"></div>
</div>

and open it in browser.

It looks like that the mask only applies to the tile overlapping the mask. The overflowing content outside of the tile is not masked.

A problem of visual rect? Cc rasterization?
 
Cc: chrishtr@chromium.org
Bisected to https://chromium.googlesource.com/chromium/src/+log/3831b72130f11ebac151fd4945719f6d7489e048..f7d24bd8050b6bf21e6280f12103f0c311e18f4f.

Though this is a regression, I don't think it's of high priority because it seems a rare case.

Seems related to visual rect and R-tree, but the solution might not be just about them, because it seems not feasible to make the mask display item cover all possible overflowing contents. Perhaps we should apply a clip around the bounding box of the mask?

Comment 2 by enne@chromium.org, Oct 28 2016

There's definitely a weird interaction here with clips, so this could be skia rasterization related too.
tile_size_256.png
14.5 KB View Download
tile_size_1000.png
14.0 KB View Download

Comment 3 by enne@chromium.org, Oct 28 2016

tile_size_40.png
16.9 KB View Download
Owner: chrishtr@chromium.org
Status: Assigned (was: Available)
This could be a dupe of  http://crbug.com/617785 
Mergedinto: 617785
Status: Duplicate (was: Assigned)

Sign in to add a comment