Skip to content

Respect background-repeat, -size properties for gradients #16657

Closed

Description

@pyfisch

Background gradients should vary depending on the value of background-repeat and background-size.

Manual testcase:

The gradient should be displayed four times.

<!DOCTYPE html>
<html>

<head>
    <style>
        div {
            background-image: linear-gradient(45deg, red, green, blue);
            background-size: 25%;
            border: 2px solid #92b901;
            background-repeat: repeat;
        }
    </style>
</head>

<body>

    <div>
        Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna
        aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl
        ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie
        consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit
        praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi.
    </div>

</body>

</html>

Activity

  1. nox commented on Apr 29, 2017

    @nox
    Contributor

    In which browsers is this displayed four times? I checked with Safari and Firefox and it didn't seem to be true.

  2. nox commented on Apr 29, 2017

    @nox
    Contributor

    Your test case had background-repeat: no-repeat;, fixed it for you.

  3. pyfisch commented on Apr 29, 2017

    @pyfisch
    ContributorAuthor

    Thanks.

  4. added
    C-has-manual-testcase
    on Oct 1, 2017
  5. added 7 commits that reference this issue on Dec 13, 2017
  6. pyfisch commented on Dec 16, 2017

    @pyfisch
    ContributorAuthor

    The background-size part is done, I will work on the background-repeat part soon.

  7. added 3 commits that reference this issue on Jan 1, 2018
    f6111c5
    62d2179
    691bff8
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