mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-13 20:14:57 -10:00
Automatic update from web-platform-tests Pre-paint: Set up properties for missed OOF descendants. Set up paint properties as correctly as possible for ancestors of a missed out-of-flow positioned descendant. OOF fragments may be missed when block-fragmented, when some ancestor between the OOF itself and the fragmentainer isn't represented in that fragmentainer. Previously we'd just miss out on all paint properties specified on such ancestors (e.g. opacity, transforms, clipping). When setting up paint properties in this mode, side-effects will be disabled for the ancestors that we're processing - i.e. we'll leave LayoutObject, PaintLayer and FragmentData alone. We'll just set up the temporary context objects for pre-paint correctly, so that the missed descendants get *their* FragmentData objects set up correctly, with transforms, opacity, etc. Note that, for now we're skipping this for all clip-related properties. We need to fix crbug.com/1442211 first, or we risk clipping content that really should be visible. For other properties like transforms this is less of an issue. Prior to this change, transforms wouldn't be applied at all, while, with this CL, they will, although with a potentially incorrect transform origin. For other properties again, like opacity or filters, this shortcoming is of no concern at all, since they don't depend on the offset or size of the fragment (which we currently get wrong in some cases, due to the bug mentioned). Added a run-time enabled feature kill-switch, just in case. Bug: 1371426 Change-Id: I2fcebaba913907c09b7cd182053aae7fc8689179 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4507224 Commit-Queue: Morten Stenshorne <[email protected]> Reviewed-by: Alison Maher <[email protected]> Reviewed-by: Xianzhu Wang <[email protected]> Cr-Commit-Position: refs/heads/main@{#1141275} -- wpt-commits: dacb577044e529f24357a450329232aaa1edb823 wpt-pr: 39854
14 lines
819 B
HTML
14 lines
819 B
HTML
<!DOCTYPE html>
|
|
<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">
|
|
<link rel="help" href="https://www.w3.org/TR/css-break-3/#transforms">
|
|
<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1371426">
|
|
<link rel="match" href="../reference/ref-filled-green-100px-square.xht">
|
|
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
|
|
<div style="display:flow-root; width:100px; height:100px; background:red;">
|
|
<div style="columns:3; margin-top:100px; margin-left:-50px; column-fill:auto; gap:0; width:150px; height:100px;">
|
|
<div style="transform:rotate(180deg); transform-origin:bottom center; height:77px;">
|
|
<div style="position:absolute; top:100px; width:100%; height:200px; background:green;"></div>
|
|
</div>
|
|
</div>
|
|
</div>
|