Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix `linear_gradients_lengths_a.html` and fix Servo's use of "background-clip" to actually make it work. #9171

Merged
merged 2 commits into from Jan 8, 2016

Commits on Jan 6, 2016

  1. tests: Make `linear_gradients_lengths_a.html` and

    `linear_gradients_lengths_ref.html` use `background-clip: content-box`.
    
    The tests clearly expect the background painting area to have width of
    100px, but since the default value of `background-clip` is `border-box`
    and the boxes in question have a 1-pixel border the background painting
    areas are actually 102px. This commit fixes the tests so that the width
    of the background painting area is actually 100px.
    pcwalton committed Jan 6, 2016
  2. layout: Take the value of `background-clip` into account when

    determining the painting area for background images and gradients.
    
    See: https://drafts.csswg.org/css-backgrounds-3/#the-background-clip
    pcwalton committed Jan 6, 2016
You can’t perform that action at this time.