Skip to content

Correct background-attachment: fixed #19669

Closed

Description

@pyfisch

Element backgrounds with background-attachment: fixed should not be scrolled with the window contents. They should stay attached to the viewport all the time.

Testing this:

  1. Go to https://staktrace.github.io/moz-pages/bug/1368496/
  2. In the upper left corner a quadratic image should be shown.
  3. Scroll a bit. The square should not move.
  4. Scroll to the end of the page. The whole page should be blank. (Assuming usual screen resolution.)

(Currently something like absolute positioning is implemented.)

Activity

  1. added
    C-has-manual-testcase
    on Jan 2, 2018
  2. paulrouget commented on Dec 4, 2019

    @paulrouget
    Contributor

    Is it an "easy fix"?

    We run into that issue in the HoloLens landing page. Wondering if we should fix servo or add a temporary workaround in the page CSS?

  3. jdm commented on Dec 4, 2019

    @jdm
    Member

    I recommend working around it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-layout/uncategorizedC-has-manual-testcase

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions