Closed Bug 866999 Opened 11 years ago Closed 6 years ago

Translated position:fixed elements are not properly positioned during transitions on B2G

Categories

(Core :: Layout: Positioned, defect)

defect
Not set
normal

Tracking

()

RESOLVED WONTFIX
Tracking Status
b2g18 + ---

People

(Reporter: krupa.mozbugs, Unassigned)

References

Details

Attachments

(1 file)

Attached video video
steps to reproduce:
1. Load Fireplace on your unagi phone
2. Click on the installation button for Jauntly app
3. Notice the installation failure message

expected behavior:
Error messages are shown at the bottom of the screen.

observed behavior:
Installation error is shown at the top of the screen and then at the bottom. It later jumps to the top again. See attached video.
Note that this doesn't happen on the details page.
This looks like a platform issue. Here's the relevant CSS:

#notification {
  bottom: 0;
  height: 62px;
  left: 50%;
  max-width: 600px;
  min-height: 62px;
  padding: 10px;
  position: fixed;
  -moz-transform: translate(-50%, 110%);
  transform: translate(-50%, 110%);
  transition-duration: .3s, .3s, .3s, .3s;
  transition-property: transform, -moz-transform, -webkit-transform, -ms-transform;
  width: 100%;
  z-index: 9999;
}
#notification.show {
  -moz-transform: translate(-50%, 0%);
  transform: translate(-50%, 0%);
}
#notification-content {
  display: block;
  left: 50%;
  position: absolute;
  top: 50%;
  -moz-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  width: 75%;
}

And the relevant HTML:

<div id="notification">
  <div id="notification-content"></div>
</div>


The platform isn't correctly positioning the element on the screen. This only seems to happen during CSS transitions.
Component: Consumer Pages → General
Product: Marketplace → Boot2Gecko
Summary: Installation failure message is jumpy on the homescreen → Translated position:fixed elements are not properly positioned during transitions on B2G
Version: 1.0 → unspecified
Component: General → Layout
Product: Boot2Gecko → Core
Version: unspecified → Trunk
Does the patch in bug 844178 make any difference?
Component: Layout → Layout: R & A Pos
When does 844178's patch make its way into normal Unagi builds?
(In reply to Mats Palmgren [:mats] from comment #3)
> Does the patch in bug 844178 make any difference?

Ignore that,  I see that nsCSSFrameConstructor::RecomputePosition doesn't exist
on the b2g18 branch.
Blocks: 836911
Blocks: 872508
Whiteboard: [fireplace]
Mass closing as we are no longer working on b2g/firefox os.
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
Mass closing as we are no longer working on b2g/firefox os.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: