background-valid.html
Details
- Test
/css/css-backgrounds/parsing/background-valid.html- Harness
- OK
Subtests
| Status | Subtest |
|---|---|
| PASS | e.style['background'] = "url(\"https://example.com/\") 1px 2px / 3px 4px space round local padding-box content-box, rgb(5, 6, 7) url(\"https://example.com/\") 1px 2px / 3px 4px space round local padding-box content-box" should set the property value |
| PASS | e.style['background'] = "none" should set background-attachment |
| PASS | e.style['background'] = "none" should set background-clip |
| PASS | e.style['background'] = "none" should set background-color |
| PASS | e.style['background'] = "none" should set background-image |
| PASS | e.style['background'] = "none" should set background-origin |
| PASS | e.style['background'] = "none" should set background-position |
| PASS | e.style['background'] = "none" should set background-repeat |
| PASS | e.style['background'] = "none" should set background-size |
| PASS | e.style['background'] = "none" should not set unrelated longhands |
| PASS | e.style['background'] = "url(\"https://example.com/\") 1px 2px / 3px 4px space round local padding-box content-box, rgb(5, 6, 7) url(\"https://example.com/\") 1px 2px / 3px 4px space round local padding-box content-box" should set background-attachment |
| PASS | e.style['background'] = "url(\"https://example.com/\") 1px 2px / 3px 4px space round local padding-box content-box, rgb(5, 6, 7) url(\"https://example.com/\") 1px 2px / 3px 4px space round local padding-box content-box" should set background-clip |
| PASS | e.style['background'] = "url(\"https://example.com/\") 1px 2px / 3px 4px space round local padding-box content-box, rgb(5, 6, 7) url(\"https://example.com/\") 1px 2px / 3px 4px space round local padding-box content-box" should set background-color |
| PASS | e.style['background'] = "url(\"https://example.com/\") 1px 2px / 3px 4px space round local padding-box content-box, rgb(5, 6, 7) url(\"https://example.com/\") 1px 2px / 3px 4px space round local padding-box content-box" should set background-image |
| PASS | e.style['background'] = "url(\"https://example.com/\") 1px 2px / 3px 4px space round local padding-box content-box, rgb(5, 6, 7) url(\"https://example.com/\") 1px 2px / 3px 4px space round local padding-box content-box" should set background-origin |
| PASS | e.style['background'] = "url(\"https://example.com/\") 1px 2px / 3px 4px space round local padding-box content-box, rgb(5, 6, 7) url(\"https://example.com/\") 1px 2px / 3px 4px space round local padding-box content-box" should set background-position |
| PASS | e.style['background'] = "url(\"https://example.com/\") 1px 2px / 3px 4px space round local padding-box content-box, rgb(5, 6, 7) url(\"https://example.com/\") 1px 2px / 3px 4px space round local padding-box content-box" should set background-repeat |
| PASS | e.style['background'] = "url(\"https://example.com/\") 1px 2px / 3px 4px space round local padding-box content-box, rgb(5, 6, 7) url(\"https://example.com/\") 1px 2px / 3px 4px space round local padding-box content-box" should set background-size |
| PASS | e.style['background'] = "url(\"https://example.com/\") 1px 2px / 3px 4px space round local padding-box content-box, rgb(5, 6, 7) url(\"https://example.com/\") 1px 2px / 3px 4px space round local padding-box content-box" should not set unrelated longhands |
| PASS | e.style['background'] = "border-box content-box" should set background-attachment |
| PASS | e.style['background'] = "border-box content-box" should set background-clip |
| FAIL | e.style['background'] = "border-box content-box" should set background-color assert_equals: background-color should be canonical expected "transparent" but got "rgba(0, 0, 0, 0)" |
| PASS | e.style['background'] = "border-box content-box" should set background-image |
| PASS | e.style['background'] = "border-box content-box" should set background-origin |
| PASS | e.style['background'] = "border-box content-box" should set background-position |
| PASS | e.style['background'] = "border-box content-box" should set background-repeat |
| PASS | e.style['background'] = "border-box content-box" should set background-size |
| PASS | e.style['background'] = "border-box content-box" should not set unrelated longhands |
| FAIL | e.style['background'] = "border-area" should set background-attachment assert_equals: background-attachment should be canonical expected "scroll" but got "" |
| FAIL | e.style['background'] = "border-area" should set background-clip assert_equals: background-clip should be canonical expected "border-area" but got "" |
| FAIL | e.style['background'] = "border-area" should set background-color assert_equals: background-color should be canonical expected "transparent" but got "" |
| FAIL | e.style['background'] = "border-area" should set background-image assert_equals: background-image should be canonical expected "none" but got "" |
| FAIL | e.style['background'] = "border-area" should set background-origin assert_equals: background-origin should be canonical expected "border-box" but got "" |
| FAIL | e.style['background'] = "border-area" should set background-position assert_equals: background-position should be canonical expected "0% 0%" but got "" |
| FAIL | e.style['background'] = "border-area" should set background-repeat assert_equals: background-repeat should be canonical expected "repeat" but got "" |
| FAIL | e.style['background'] = "border-area" should set background-size assert_equals: background-size should be canonical expected "auto" but got "" |
| FAIL | e.style['background'] = "border-area" should not set unrelated longhands assert_true: expected true got false |
| FAIL | e.style['background'] = "border-area text" should set background-attachment assert_equals: background-attachment should be canonical expected "scroll" but got "" |
| FAIL | e.style['background'] = "border-area text" should set background-clip assert_equals: background-clip should be canonical expected "border-area text" but got "" |
| FAIL | e.style['background'] = "border-area text" should set background-color assert_equals: background-color should be canonical expected "transparent" but got "" |
| FAIL | e.style['background'] = "border-area text" should set background-image assert_equals: background-image should be canonical expected "none" but got "" |
| FAIL | e.style['background'] = "border-area text" should set background-origin assert_equals: background-origin should be canonical expected "border-box" but got "" |
| FAIL | e.style['background'] = "border-area text" should set background-position assert_equals: background-position should be canonical expected "0% 0%" but got "" |
| FAIL | e.style['background'] = "border-area text" should set background-repeat assert_equals: background-repeat should be canonical expected "repeat" but got "" |
| FAIL | e.style['background'] = "border-area text" should set background-size assert_equals: background-size should be canonical expected "auto" but got "" |
| FAIL | e.style['background'] = "border-area text" should not set unrelated longhands assert_true: expected true got false |