Unify background placement code

Merges the implementations for background-image placement
from gradients and images. Add missing parts and fix bugs.

Now supported are the CSS properties:

* background-attachment (except for local value)
* background-clip
* background-origin
* background-position-x/y
* background-repeat
* background-size

It should be noted that backgrounds are not clipped to
rounded border corners.
This commit is contained in:
Pyfisch 2017-12-27 22:15:58 +01:00
parent d96fb89c31
commit 3b3d4a9853
9 changed files with 306 additions and 344 deletions

View file

@ -1,3 +0,0 @@
[background-334.html]
type: reftest
expected: FAIL

View file

@ -1,3 +0,0 @@
[background-origin-006.html]
type: reftest
expected: FAIL

View file

@ -1,3 +0,0 @@
[background-origin-007.html]
type: reftest
expected: FAIL

View file

@ -1,3 +0,0 @@
[background-size-021.html]
type: reftest
expected: FAIL

View file

@ -1,3 +0,0 @@
[css3-background-size-contain.html]
type: reftest
expected: FAIL