fix WPT css/css-transforms/backface-visibility-hidden-004.html
Categories
(Core :: Web Painting, defect)
Tracking
()
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)
| Assignee | ||
Comment 1•3 months ago
|
||
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.
Updated•3 months ago
|
Updated•3 months ago
|
Comment 3•3 months ago
|
||
| bugherder | ||
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
Comment 6•2 months ago
•
|
||
Backing out from Nightly and 157.0b1 at tnikkel's request due to the various regressions.
Updated•2 months ago
|
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.
Updated•2 months ago
|
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
| Assignee | ||
Comment 11•2 months ago
|
||
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.
Comment 14•2 months ago
|
||
The severity field is not set for this bug.
:tnikkel, could you have a look please?
For more information, please visit BugBot documentation.
| Assignee | ||
Updated•2 months ago
|
Updated•2 months ago
|
Comment 15•1 month ago
|
||
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.
Updated•1 month ago
|
Description
•