Open Bug 2066084 Opened 3 months ago Updated 1 month ago

fix WPT css/css-transforms/backface-visibility-hidden-004.html

Categories

(Core :: Web Painting, defect)

defect

Tracking

()

REOPENED

People

(Reporter: tnikkel, Assigned: tnikkel, NeedInfo)

References

(Blocks 2 open bugs)

Details

(Keywords: webcompat:platform-bug)

User Story

user-impact-score:210

Attachments

(1 external file)

No description provided.
See Also: → 1884044
Blocks: 2050810

A frame with backface-visibility: hidden inside a preserve-3d parent counts as
participating in the 3D rendering context, but when it has no transform of its
own it never gets a transform display item. ItemParticipatesIn3DContext only
recognizes transform and perspective items, so the participant's items end up in
the shared separator keyed on the 3D context root, whose backface is visible,
and nothing culls them when the participant is turned away.

backface-visibility is not inherited, so this leaks the participant's whole
subtree rather than just its own items.

Look for such a participant while sorting the 3D context root's items, and give
the item a transform item of its own keyed on the participant. Both the painting
and the hit testing paths already cull on that item, so no other changes are
needed. The participant's own items were handled this way until bug 1097464
replaced WrapPreserve3DListInternal; the descendants were never covered.

The walk to find the participant follows the flattened tree, so an out of flow
descendant whose frame has been hoisted out of the participant's frame subtree
is still culled with it. That is what makes
css/css-transforms/backface-visibility-hidden-004.html pass, without
backface-visibility having to establish a containing block.

preserve3d-backface-hit-test-2.html asserted that a descendant of a backface
hidden face is still hit. That was our behaviour when the test was added in bug
1933521 by myself, but Chrome and Safari both hit the front face instead, and now
so do we, so update the test to expect that. The testcases in bug 1933521 and in
the bugs linked from it still behave correctly.

User Story: (updated)
See Also: → 2067338
Pushed by tnikkel@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/8d6a6899c74d https://hg.mozilla.org/integration/autoland/rev/51ae7e8eb757 Give a preserve-3d participant with a hidden backface its own transform item so its descendants are culled with it. r=layout-reviewers,emilio
Status: NEW → RESOLVED
Closed: 3 months ago
Resolution: --- → FIXED
Target Milestone: --- → 157 Branch
Blocks: 2024317

Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/62321 for changes under testing/web-platform/tests

Upstream PR merged by moz-wptsync-bot

Regressions: 2071515
Regressions: 2071456

Backing out from Nightly and 157.0b1 at tnikkel's request due to the various regressions.

Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Target Milestone: 157 Branch → ---
Pushed by rvandermeulen@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/536247f088be https://hg.mozilla.org/integration/autoland/rev/53914ae088bf Revert "Bug 2066084. Give a preserve-3d participant with a hidden backface its own transform item so its descendants are culled with it. r=layout-reviewers,emilio" for various regressions.

Pushed by rvandermeulen@mozilla.com:
https://github.com/mozilla-firefox/firefox/commit/74c4d1347d0f
https://hg.mozilla.org/releases/mozilla-beta/rev/2ecbcc913973
Revert "Bug 2066084. Give a preserve-3d participant with a hidden backface its own transform item so its descendants are culled with it. r=layout-reviewers,emilio" for various regressions.

Status: REOPENED → RESOLVED
Closed: 3 months ago → 2 months ago
Resolution: --- → FIXED
Status: RESOLVED → REOPENED
Resolution: FIXED → ---

Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/62656 for changes under testing/web-platform/tests

Upstream PR merged by moz-wptsync-bot

I have fixes for the regressions, but I wanted to back out so they can be fixed cleanly and to avoid exposing release to the regressions.

Duplicate of this bug: 2071456
Duplicate of this bug: 2071515

The severity field is not set for this bug.
:tnikkel, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(tnikkel)
Severity: -- → S3
Flags: needinfo?(tnikkel)
User Story: (updated)

There is an r+ patch which didn't land and no activity in this bug for 1 week.
:tnikkel, could you have a look please?
If you still have some work to do, you can add an action "Plan Changes" in Phabricator.
For more information, please visit BugBot documentation.

Flags: needinfo?(tnikkel)
Flags: needinfo?(emilio)
Flags: needinfo?(emilio)
See Also: → 2057913
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: