| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <meta charset="utf-8"> | 4 <meta charset="utf-8"> |
| 5 <script src="../../js/resources/js-test-pre.js"></script> | 5 <script src="../../js/resources/js-test-pre.js"></script> |
| 6 </head> | 6 </head> |
| 7 <body> | 7 <body> |
| 8 <script> | 8 <script> |
| 9 | 9 |
| 10 description("Test to make sure background shorthand properties returns CSSValueL
ist properly.") | 10 description("Test to make sure background shorthand properties returns CSSValueL
ist properly.") |
| 11 | 11 |
| 12 var testContainer = document.createElement("div"); | 12 var testContainer = document.createElement("div"); |
| 13 testContainer.contentEditable = true; | 13 testContainer.contentEditable = true; |
| 14 document.body.appendChild(testContainer); | 14 document.body.appendChild(testContainer); |
| 15 | 15 |
| 16 testContainer.innerHTML = '<div id="test">hello</div>'; | 16 testContainer.innerHTML = '<div id="test">hello</div>'; |
| 17 | 17 |
| 18 e = document.getElementById('test'); | 18 e = document.getElementById('test'); |
| 19 computedStyle = window.getComputedStyle(e, null); | 19 computedStyle = window.getComputedStyle(e, null); |
| 20 | 20 |
| 21 function checkComputedStyleValue() { | 21 function checkComputedStyleValue() { |
| 22 var before = window.getComputedStyle(e, null).getPropertyValue('background')
; | 22 var before = window.getComputedStyle(e, null).getPropertyValue('background')
; |
| 23 e.style.background = 'none'; | 23 e.style.background = 'none'; |
| 24 e.style.background = before; | 24 e.style.background = before; |
| 25 return (window.getComputedStyle(e, null).getPropertyValue('background') == b
efore); | 25 return (window.getComputedStyle(e, null).getPropertyValue('background') == b
efore); |
| 26 } | 26 } |
| 27 | 27 |
| 28 e.style.background = "red"; | 28 e.style.background = "red"; |
| 29 shouldBe("computedStyle.getPropertyValue('background')", "'rgb(255, 0, 0) none r
epeat scroll 0% 0% / auto padding-box border-box'"); | 29 shouldBe("computedStyle.getPropertyValue('background')", "'rgb(255, 0, 0) none r
epeat scroll left 0% top 0% / auto padding-box border-box'"); |
| 30 shouldBe("computedStyle.getPropertyCSSValue('background').toString()", "'[object
CSSValueList]'"); | 30 shouldBe("computedStyle.getPropertyCSSValue('background').toString()", "'[object
CSSValueList]'"); |
| 31 shouldBe("computedStyle.getPropertyCSSValue('background').cssText", "'rgb(255, 0
, 0) none repeat scroll 0% 0% / auto padding-box border-box'"); | 31 shouldBe("computedStyle.getPropertyCSSValue('background').cssText", "'rgb(255, 0
, 0) none repeat scroll left 0% top 0% / auto padding-box border-box'"); |
| 32 shouldBe("computedStyle.getPropertyCSSValue('background').length", "2"); | 32 shouldBe("computedStyle.getPropertyCSSValue('background').length", "2"); |
| 33 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).length", "5"); | 33 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).length", "5"); |
| 34 shouldBe("computedStyle.getPropertyCSSValue('background').item(1).length", "3"); | 34 shouldBe("computedStyle.getPropertyCSSValue('background').item(1).length", "3"); |
| 35 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(0).getRGB
ColorValue().red.getFloatValue(CSSPrimitiveValue.CSS_NUMBER)", "255"); | 35 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(0).getRGB
ColorValue().red.getFloatValue(CSSPrimitiveValue.CSS_NUMBER)", "255"); |
| 36 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(0).getRGB
ColorValue().green.getFloatValue(CSSPrimitiveValue.CSS_NUMBER)", "0"); | 36 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(0).getRGB
ColorValue().green.getFloatValue(CSSPrimitiveValue.CSS_NUMBER)", "0"); |
| 37 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(0).getRGB
ColorValue().blue.getFloatValue(CSSPrimitiveValue.CSS_NUMBER)", "0"); | 37 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(0).getRGB
ColorValue().blue.getFloatValue(CSSPrimitiveValue.CSS_NUMBER)", "0"); |
| 38 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(1).getStr
ingValue()", "'none'"); | 38 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(1).getStr
ingValue()", "'none'"); |
| 39 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(2).getStr
ingValue()", "'repeat'"); | 39 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(2).getStr
ingValue()", "'repeat'"); |
| 40 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(3).getStr
ingValue()", "'scroll'"); | 40 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(3).getStr
ingValue()", "'scroll'"); |
| 41 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(4).toStri
ng()", "'[object CSSValueList]'"); | 41 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(4).toStri
ng()", "'[object CSSValueList]'"); |
| 42 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(4).item(0
).getFloatValue(CSSPrimitiveValue.CSS_PERCENTAGE)", "0"); | |
| 43 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(4).item(1
).getFloatValue(CSSPrimitiveValue.CSS_PERCENTAGE)", "0"); | 42 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(4).item(1
).getFloatValue(CSSPrimitiveValue.CSS_PERCENTAGE)", "0"); |
| 43 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(4).item(3
).getFloatValue(CSSPrimitiveValue.CSS_PERCENTAGE)", "0"); |
| 44 shouldBe("computedStyle.getPropertyCSSValue('background').item(1).item(0).getStr
ingValue()", "'auto'"); | 44 shouldBe("computedStyle.getPropertyCSSValue('background').item(1).item(0).getStr
ingValue()", "'auto'"); |
| 45 shouldBe("computedStyle.getPropertyCSSValue('background').item(1).item(1).getStr
ingValue()", "'padding-box'"); | 45 shouldBe("computedStyle.getPropertyCSSValue('background').item(1).item(1).getStr
ingValue()", "'padding-box'"); |
| 46 shouldBe("computedStyle.getPropertyCSSValue('background').item(1).item(2).getStr
ingValue()", "'border-box'"); | 46 shouldBe("computedStyle.getPropertyCSSValue('background').item(1).item(2).getStr
ingValue()", "'border-box'"); |
| 47 shouldBe("checkComputedStyleValue()", "true"); | 47 shouldBe("checkComputedStyleValue()", "true"); |
| 48 | 48 |
| 49 e.style.backgroundImage = "url(dummy://test.png)"; | 49 e.style.backgroundImage = "url(dummy://test.png)"; |
| 50 shouldBe("computedStyle.getPropertyValue('background')", "'rgb(255, 0, 0) url(du
mmy://test.png) repeat scroll 0% 0% / auto padding-box border-box'"); | 50 shouldBe("computedStyle.getPropertyValue('background')", "'rgb(255, 0, 0) url(du
mmy://test.png) repeat scroll left 0% top 0% / auto padding-box border-box'"); |
| 51 shouldBe("computedStyle.getPropertyCSSValue('background').toString()", "'[object
CSSValueList]'"); | 51 shouldBe("computedStyle.getPropertyCSSValue('background').toString()", "'[object
CSSValueList]'"); |
| 52 shouldBe("computedStyle.getPropertyCSSValue('background').cssText", "'rgb(255, 0
, 0) url(dummy://test.png) repeat scroll 0% 0% / auto padding-box border-box'"); | 52 shouldBe("computedStyle.getPropertyCSSValue('background').cssText", "'rgb(255, 0
, 0) url(dummy://test.png) repeat scroll left 0% top 0% / auto padding-box borde
r-box'"); |
| 53 shouldBe("computedStyle.getPropertyCSSValue('background').length", "2"); | 53 shouldBe("computedStyle.getPropertyCSSValue('background').length", "2"); |
| 54 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).length", "5"); | 54 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).length", "5"); |
| 55 shouldBe("computedStyle.getPropertyCSSValue('background').item(1).length", "3"); | 55 shouldBe("computedStyle.getPropertyCSSValue('background').item(1).length", "3"); |
| 56 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(0).getRGB
ColorValue().red.getFloatValue(CSSPrimitiveValue.CSS_NUMBER)", "255"); | 56 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(0).getRGB
ColorValue().red.getFloatValue(CSSPrimitiveValue.CSS_NUMBER)", "255"); |
| 57 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(0).getRGB
ColorValue().green.getFloatValue(CSSPrimitiveValue.CSS_NUMBER)", "0"); | 57 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(0).getRGB
ColorValue().green.getFloatValue(CSSPrimitiveValue.CSS_NUMBER)", "0"); |
| 58 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(0).getRGB
ColorValue().blue.getFloatValue(CSSPrimitiveValue.CSS_NUMBER)", "0"); | 58 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(0).getRGB
ColorValue().blue.getFloatValue(CSSPrimitiveValue.CSS_NUMBER)", "0"); |
| 59 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(1).getStr
ingValue()", "'dummy://test.png'"); | 59 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(1).getStr
ingValue()", "'dummy://test.png'"); |
| 60 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(2).getStr
ingValue()", "'repeat'"); | 60 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(2).getStr
ingValue()", "'repeat'"); |
| 61 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(3).getStr
ingValue()", "'scroll'"); | 61 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(3).getStr
ingValue()", "'scroll'"); |
| 62 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(4).toStri
ng()", "'[object CSSValueList]'"); | 62 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(4).toStri
ng()", "'[object CSSValueList]'"); |
| 63 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(4).item(0
).getFloatValue(CSSPrimitiveValue.CSS_PERCENTAGE)", "0"); | |
| 64 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(4).item(1
).getFloatValue(CSSPrimitiveValue.CSS_PERCENTAGE)", "0"); | 63 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(4).item(1
).getFloatValue(CSSPrimitiveValue.CSS_PERCENTAGE)", "0"); |
| 64 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(4).item(3
).getFloatValue(CSSPrimitiveValue.CSS_PERCENTAGE)", "0"); |
| 65 shouldBe("computedStyle.getPropertyCSSValue('background').item(1).item(0).getStr
ingValue()", "'auto'"); | 65 shouldBe("computedStyle.getPropertyCSSValue('background').item(1).item(0).getStr
ingValue()", "'auto'"); |
| 66 shouldBe("computedStyle.getPropertyCSSValue('background').item(1).item(1).getStr
ingValue()", "'padding-box'"); | 66 shouldBe("computedStyle.getPropertyCSSValue('background').item(1).item(1).getStr
ingValue()", "'padding-box'"); |
| 67 shouldBe("computedStyle.getPropertyCSSValue('background').item(1).item(2).getStr
ingValue()", "'border-box'"); | 67 shouldBe("computedStyle.getPropertyCSSValue('background').item(1).item(2).getStr
ingValue()", "'border-box'"); |
| 68 shouldBe("checkComputedStyleValue()", "true"); | 68 shouldBe("checkComputedStyleValue()", "true"); |
| 69 | 69 |
| 70 e.style.backgroundRepeat = "no-repeat"; | 70 e.style.backgroundRepeat = "no-repeat"; |
| 71 shouldBe("computedStyle.getPropertyValue('background')", "'rgb(255, 0, 0) url(du
mmy://test.png) no-repeat scroll 0% 0% / auto padding-box border-box'"); | 71 shouldBe("computedStyle.getPropertyValue('background')", "'rgb(255, 0, 0) url(du
mmy://test.png) no-repeat scroll left 0% top 0% / auto padding-box border-box'")
; |
| 72 shouldBe("computedStyle.getPropertyCSSValue('background').toString()", "'[object
CSSValueList]'"); | 72 shouldBe("computedStyle.getPropertyCSSValue('background').toString()", "'[object
CSSValueList]'"); |
| 73 shouldBe("computedStyle.getPropertyCSSValue('background').cssText", "'rgb(255, 0
, 0) url(dummy://test.png) no-repeat scroll 0% 0% / auto padding-box border-box'
"); | 73 shouldBe("computedStyle.getPropertyCSSValue('background').cssText", "'rgb(255, 0
, 0) url(dummy://test.png) no-repeat scroll left 0% top 0% / auto padding-box bo
rder-box'"); |
| 74 shouldBe("computedStyle.getPropertyCSSValue('background').length", "2"); | 74 shouldBe("computedStyle.getPropertyCSSValue('background').length", "2"); |
| 75 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).length", "5"); | 75 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).length", "5"); |
| 76 shouldBe("computedStyle.getPropertyCSSValue('background').item(1).length", "3"); | 76 shouldBe("computedStyle.getPropertyCSSValue('background').item(1).length", "3"); |
| 77 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(0).getRGB
ColorValue().red.getFloatValue(CSSPrimitiveValue.CSS_NUMBER)", "255"); | 77 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(0).getRGB
ColorValue().red.getFloatValue(CSSPrimitiveValue.CSS_NUMBER)", "255"); |
| 78 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(0).getRGB
ColorValue().green.getFloatValue(CSSPrimitiveValue.CSS_NUMBER)", "0"); | 78 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(0).getRGB
ColorValue().green.getFloatValue(CSSPrimitiveValue.CSS_NUMBER)", "0"); |
| 79 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(0).getRGB
ColorValue().blue.getFloatValue(CSSPrimitiveValue.CSS_NUMBER)", "0"); | 79 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(0).getRGB
ColorValue().blue.getFloatValue(CSSPrimitiveValue.CSS_NUMBER)", "0"); |
| 80 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(1).getStr
ingValue()", "'dummy://test.png'"); | 80 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(1).getStr
ingValue()", "'dummy://test.png'"); |
| 81 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(2).getStr
ingValue()", "'no-repeat'"); | 81 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(2).getStr
ingValue()", "'no-repeat'"); |
| 82 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(3).getStr
ingValue()", "'scroll'"); | 82 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(3).getStr
ingValue()", "'scroll'"); |
| 83 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(4).toStri
ng()", "'[object CSSValueList]'"); | 83 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(4).toStri
ng()", "'[object CSSValueList]'"); |
| 84 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(4).item(0
).getFloatValue(CSSPrimitiveValue.CSS_PERCENTAGE)", "0"); | |
| 85 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(4).item(1
).getFloatValue(CSSPrimitiveValue.CSS_PERCENTAGE)", "0"); | 84 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(4).item(1
).getFloatValue(CSSPrimitiveValue.CSS_PERCENTAGE)", "0"); |
| 85 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(4).item(3
).getFloatValue(CSSPrimitiveValue.CSS_PERCENTAGE)", "0"); |
| 86 shouldBe("computedStyle.getPropertyCSSValue('background').item(1).item(0).getStr
ingValue()", "'auto'"); | 86 shouldBe("computedStyle.getPropertyCSSValue('background').item(1).item(0).getStr
ingValue()", "'auto'"); |
| 87 shouldBe("computedStyle.getPropertyCSSValue('background').item(1).item(1).getStr
ingValue()", "'padding-box'"); | 87 shouldBe("computedStyle.getPropertyCSSValue('background').item(1).item(1).getStr
ingValue()", "'padding-box'"); |
| 88 shouldBe("computedStyle.getPropertyCSSValue('background').item(1).item(2).getStr
ingValue()", "'border-box'"); | 88 shouldBe("computedStyle.getPropertyCSSValue('background').item(1).item(2).getStr
ingValue()", "'border-box'"); |
| 89 shouldBe("checkComputedStyleValue()", "true"); | 89 shouldBe("checkComputedStyleValue()", "true"); |
| 90 | 90 |
| 91 e.style.backgroundAttachment = "fixed"; | 91 e.style.backgroundAttachment = "fixed"; |
| 92 shouldBe("computedStyle.getPropertyValue('background')", "'rgb(255, 0, 0) url(du
mmy://test.png) no-repeat fixed 0% 0% / auto padding-box border-box'"); | 92 shouldBe("computedStyle.getPropertyValue('background')", "'rgb(255, 0, 0) url(du
mmy://test.png) no-repeat fixed left 0% top 0% / auto padding-box border-box'"); |
| 93 shouldBe("computedStyle.getPropertyCSSValue('background').toString()", "'[object
CSSValueList]'"); | 93 shouldBe("computedStyle.getPropertyCSSValue('background').toString()", "'[object
CSSValueList]'"); |
| 94 shouldBe("computedStyle.getPropertyCSSValue('background').cssText", "'rgb(255, 0
, 0) url(dummy://test.png) no-repeat fixed 0% 0% / auto padding-box border-box'"
); | 94 shouldBe("computedStyle.getPropertyCSSValue('background').cssText", "'rgb(255, 0
, 0) url(dummy://test.png) no-repeat fixed left 0% top 0% / auto padding-box bor
der-box'"); |
| 95 shouldBe("computedStyle.getPropertyCSSValue('background').length", "2"); | 95 shouldBe("computedStyle.getPropertyCSSValue('background').length", "2"); |
| 96 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).length", "5"); | 96 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).length", "5"); |
| 97 shouldBe("computedStyle.getPropertyCSSValue('background').item(1).length", "3"); | 97 shouldBe("computedStyle.getPropertyCSSValue('background').item(1).length", "3"); |
| 98 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(0).getRGB
ColorValue().red.getFloatValue(CSSPrimitiveValue.CSS_NUMBER)", "255"); | 98 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(0).getRGB
ColorValue().red.getFloatValue(CSSPrimitiveValue.CSS_NUMBER)", "255"); |
| 99 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(0).getRGB
ColorValue().green.getFloatValue(CSSPrimitiveValue.CSS_NUMBER)", "0"); | 99 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(0).getRGB
ColorValue().green.getFloatValue(CSSPrimitiveValue.CSS_NUMBER)", "0"); |
| 100 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(0).getRGB
ColorValue().blue.getFloatValue(CSSPrimitiveValue.CSS_NUMBER)", "0"); | 100 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(0).getRGB
ColorValue().blue.getFloatValue(CSSPrimitiveValue.CSS_NUMBER)", "0"); |
| 101 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(1).getStr
ingValue()", "'dummy://test.png'"); | 101 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(1).getStr
ingValue()", "'dummy://test.png'"); |
| 102 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(2).getStr
ingValue()", "'no-repeat'"); | 102 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(2).getStr
ingValue()", "'no-repeat'"); |
| 103 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(3).getStr
ingValue()", "'fixed'"); | 103 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(3).getStr
ingValue()", "'fixed'"); |
| 104 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(4).toStri
ng()", "'[object CSSValueList]'"); | 104 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(4).toStri
ng()", "'[object CSSValueList]'"); |
| 105 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(4).item(0
).getFloatValue(CSSPrimitiveValue.CSS_PERCENTAGE)", "0"); | |
| 106 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(4).item(1
).getFloatValue(CSSPrimitiveValue.CSS_PERCENTAGE)", "0"); | 105 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(4).item(1
).getFloatValue(CSSPrimitiveValue.CSS_PERCENTAGE)", "0"); |
| 106 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(4).item(3
).getFloatValue(CSSPrimitiveValue.CSS_PERCENTAGE)", "0"); |
| 107 shouldBe("computedStyle.getPropertyCSSValue('background').item(1).item(0).getStr
ingValue()", "'auto'"); | 107 shouldBe("computedStyle.getPropertyCSSValue('background').item(1).item(0).getStr
ingValue()", "'auto'"); |
| 108 shouldBe("computedStyle.getPropertyCSSValue('background').item(1).item(1).getStr
ingValue()", "'padding-box'"); | 108 shouldBe("computedStyle.getPropertyCSSValue('background').item(1).item(1).getStr
ingValue()", "'padding-box'"); |
| 109 shouldBe("computedStyle.getPropertyCSSValue('background').item(1).item(2).getStr
ingValue()", "'border-box'"); | 109 shouldBe("computedStyle.getPropertyCSSValue('background').item(1).item(2).getStr
ingValue()", "'border-box'"); |
| 110 shouldBe("checkComputedStyleValue()", "true"); | 110 shouldBe("checkComputedStyleValue()", "true"); |
| 111 | 111 |
| 112 e.style.backgroundPosition = "right bottom"; | 112 e.style.backgroundPosition = "right bottom"; |
| 113 shouldBe("computedStyle.getPropertyValue('background')", "'rgb(255, 0, 0) url(du
mmy://test.png) no-repeat fixed 100% 100% / auto padding-box border-box'"); | 113 shouldBe("computedStyle.getPropertyValue('background')", "'rgb(255, 0, 0) url(du
mmy://test.png) no-repeat fixed left 100% top 100% / auto padding-box border-box
'"); |
| 114 shouldBe("computedStyle.getPropertyCSSValue('background').toString()", "'[object
CSSValueList]'"); | 114 shouldBe("computedStyle.getPropertyCSSValue('background').toString()", "'[object
CSSValueList]'"); |
| 115 shouldBe("computedStyle.getPropertyCSSValue('background').cssText", "'rgb(255, 0
, 0) url(dummy://test.png) no-repeat fixed 100% 100% / auto padding-box border-b
ox'"); | 115 shouldBe("computedStyle.getPropertyCSSValue('background').cssText", "'rgb(255, 0
, 0) url(dummy://test.png) no-repeat fixed left 100% top 100% / auto padding-box
border-box'"); |
| 116 shouldBe("computedStyle.getPropertyCSSValue('background').length", "2"); | 116 shouldBe("computedStyle.getPropertyCSSValue('background').length", "2"); |
| 117 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).length", "5"); | 117 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).length", "5"); |
| 118 shouldBe("computedStyle.getPropertyCSSValue('background').item(1).length", "3"); | 118 shouldBe("computedStyle.getPropertyCSSValue('background').item(1).length", "3"); |
| 119 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(0).getRGB
ColorValue().red.getFloatValue(CSSPrimitiveValue.CSS_NUMBER)", "255"); | 119 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(0).getRGB
ColorValue().red.getFloatValue(CSSPrimitiveValue.CSS_NUMBER)", "255"); |
| 120 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(0).getRGB
ColorValue().green.getFloatValue(CSSPrimitiveValue.CSS_NUMBER)", "0"); | 120 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(0).getRGB
ColorValue().green.getFloatValue(CSSPrimitiveValue.CSS_NUMBER)", "0"); |
| 121 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(0).getRGB
ColorValue().blue.getFloatValue(CSSPrimitiveValue.CSS_NUMBER)", "0"); | 121 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(0).getRGB
ColorValue().blue.getFloatValue(CSSPrimitiveValue.CSS_NUMBER)", "0"); |
| 122 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(1).getStr
ingValue()", "'dummy://test.png'"); | 122 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(1).getStr
ingValue()", "'dummy://test.png'"); |
| 123 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(2).getStr
ingValue()", "'no-repeat'"); | 123 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(2).getStr
ingValue()", "'no-repeat'"); |
| 124 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(3).getStr
ingValue()", "'fixed'"); | 124 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(3).getStr
ingValue()", "'fixed'"); |
| 125 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(4).toStri
ng()", "'[object CSSValueList]'"); | 125 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(4).toStri
ng()", "'[object CSSValueList]'"); |
| 126 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(4).item(0
).getFloatValue(CSSPrimitiveValue.CSS_PERCENTAGE)", "100"); | |
| 127 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(4).item(1
).getFloatValue(CSSPrimitiveValue.CSS_PERCENTAGE)", "100"); | 126 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(4).item(1
).getFloatValue(CSSPrimitiveValue.CSS_PERCENTAGE)", "100"); |
| 127 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(4).item(3
).getFloatValue(CSSPrimitiveValue.CSS_PERCENTAGE)", "100"); |
| 128 shouldBe("computedStyle.getPropertyCSSValue('background').item(1).item(0).getStr
ingValue()", "'auto'"); | 128 shouldBe("computedStyle.getPropertyCSSValue('background').item(1).item(0).getStr
ingValue()", "'auto'"); |
| 129 shouldBe("computedStyle.getPropertyCSSValue('background').item(1).item(1).getStr
ingValue()", "'padding-box'"); | 129 shouldBe("computedStyle.getPropertyCSSValue('background').item(1).item(1).getStr
ingValue()", "'padding-box'"); |
| 130 shouldBe("computedStyle.getPropertyCSSValue('background').item(1).item(2).getStr
ingValue()", "'border-box'"); | 130 shouldBe("computedStyle.getPropertyCSSValue('background').item(1).item(2).getStr
ingValue()", "'border-box'"); |
| 131 shouldBe("checkComputedStyleValue()", "true"); | 131 shouldBe("checkComputedStyleValue()", "true"); |
| 132 | 132 |
| 133 e.style.backgroundSize = "cover"; | 133 e.style.backgroundSize = "cover"; |
| 134 shouldBe("computedStyle.getPropertyValue('background')", "'rgb(255, 0, 0) url(du
mmy://test.png) no-repeat fixed 100% 100% / cover padding-box border-box'"); | 134 shouldBe("computedStyle.getPropertyValue('background')", "'rgb(255, 0, 0) url(du
mmy://test.png) no-repeat fixed left 100% top 100% / cover padding-box border-bo
x'"); |
| 135 shouldBe("computedStyle.getPropertyCSSValue('background').toString()", "'[object
CSSValueList]'"); | 135 shouldBe("computedStyle.getPropertyCSSValue('background').toString()", "'[object
CSSValueList]'"); |
| 136 shouldBe("computedStyle.getPropertyCSSValue('background').cssText", "'rgb(255, 0
, 0) url(dummy://test.png) no-repeat fixed 100% 100% / cover padding-box border-
box'"); | 136 shouldBe("computedStyle.getPropertyCSSValue('background').cssText", "'rgb(255, 0
, 0) url(dummy://test.png) no-repeat fixed left 100% top 100% / cover padding-bo
x border-box'"); |
| 137 shouldBe("computedStyle.getPropertyCSSValue('background').length", "2"); | 137 shouldBe("computedStyle.getPropertyCSSValue('background').length", "2"); |
| 138 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).length", "5"); | 138 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).length", "5"); |
| 139 shouldBe("computedStyle.getPropertyCSSValue('background').item(1).length", "3"); | 139 shouldBe("computedStyle.getPropertyCSSValue('background').item(1).length", "3"); |
| 140 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(0).getRGB
ColorValue().red.getFloatValue(CSSPrimitiveValue.CSS_NUMBER)", "255"); | 140 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(0).getRGB
ColorValue().red.getFloatValue(CSSPrimitiveValue.CSS_NUMBER)", "255"); |
| 141 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(0).getRGB
ColorValue().green.getFloatValue(CSSPrimitiveValue.CSS_NUMBER)", "0"); | 141 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(0).getRGB
ColorValue().green.getFloatValue(CSSPrimitiveValue.CSS_NUMBER)", "0"); |
| 142 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(0).getRGB
ColorValue().blue.getFloatValue(CSSPrimitiveValue.CSS_NUMBER)", "0"); | 142 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(0).getRGB
ColorValue().blue.getFloatValue(CSSPrimitiveValue.CSS_NUMBER)", "0"); |
| 143 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(1).getStr
ingValue()", "'dummy://test.png'"); | 143 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(1).getStr
ingValue()", "'dummy://test.png'"); |
| 144 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(2).getStr
ingValue()", "'no-repeat'"); | 144 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(2).getStr
ingValue()", "'no-repeat'"); |
| 145 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(3).getStr
ingValue()", "'fixed'"); | 145 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(3).getStr
ingValue()", "'fixed'"); |
| 146 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(4).toStri
ng()", "'[object CSSValueList]'"); | 146 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(4).toStri
ng()", "'[object CSSValueList]'"); |
| 147 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(4).item(0
).getFloatValue(CSSPrimitiveValue.CSS_PERCENTAGE)", "100"); | |
| 148 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(4).item(1
).getFloatValue(CSSPrimitiveValue.CSS_PERCENTAGE)", "100"); | 147 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(4).item(1
).getFloatValue(CSSPrimitiveValue.CSS_PERCENTAGE)", "100"); |
| 148 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(4).item(3
).getFloatValue(CSSPrimitiveValue.CSS_PERCENTAGE)", "100"); |
| 149 shouldBe("computedStyle.getPropertyCSSValue('background').item(1).item(0).getStr
ingValue()", "'cover'"); | 149 shouldBe("computedStyle.getPropertyCSSValue('background').item(1).item(0).getStr
ingValue()", "'cover'"); |
| 150 shouldBe("computedStyle.getPropertyCSSValue('background').item(1).item(1).getStr
ingValue()", "'padding-box'"); | 150 shouldBe("computedStyle.getPropertyCSSValue('background').item(1).item(1).getStr
ingValue()", "'padding-box'"); |
| 151 shouldBe("computedStyle.getPropertyCSSValue('background').item(1).item(2).getStr
ingValue()", "'border-box'"); | 151 shouldBe("computedStyle.getPropertyCSSValue('background').item(1).item(2).getStr
ingValue()", "'border-box'"); |
| 152 shouldBe("checkComputedStyleValue()", "true"); | 152 shouldBe("checkComputedStyleValue()", "true"); |
| 153 | 153 |
| 154 e.style.backgroundOrigin = "content-box"; | 154 e.style.backgroundOrigin = "content-box"; |
| 155 shouldBe("computedStyle.getPropertyValue('background')", "'rgb(255, 0, 0) url(du
mmy://test.png) no-repeat fixed 100% 100% / cover content-box border-box'"); | 155 shouldBe("computedStyle.getPropertyValue('background')", "'rgb(255, 0, 0) url(du
mmy://test.png) no-repeat fixed left 100% top 100% / cover content-box border-bo
x'"); |
| 156 shouldBe("computedStyle.getPropertyCSSValue('background').toString()", "'[object
CSSValueList]'"); | 156 shouldBe("computedStyle.getPropertyCSSValue('background').toString()", "'[object
CSSValueList]'"); |
| 157 shouldBe("computedStyle.getPropertyCSSValue('background').cssText", "'rgb(255, 0
, 0) url(dummy://test.png) no-repeat fixed 100% 100% / cover content-box border-
box'"); | 157 shouldBe("computedStyle.getPropertyCSSValue('background').cssText", "'rgb(255, 0
, 0) url(dummy://test.png) no-repeat fixed left 100% top 100% / cover content-bo
x border-box'"); |
| 158 shouldBe("computedStyle.getPropertyCSSValue('background').length", "2"); | 158 shouldBe("computedStyle.getPropertyCSSValue('background').length", "2"); |
| 159 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).length", "5"); | 159 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).length", "5"); |
| 160 shouldBe("computedStyle.getPropertyCSSValue('background').item(1).length", "3"); | 160 shouldBe("computedStyle.getPropertyCSSValue('background').item(1).length", "3"); |
| 161 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(0).getRGB
ColorValue().red.getFloatValue(CSSPrimitiveValue.CSS_NUMBER)", "255"); | 161 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(0).getRGB
ColorValue().red.getFloatValue(CSSPrimitiveValue.CSS_NUMBER)", "255"); |
| 162 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(0).getRGB
ColorValue().green.getFloatValue(CSSPrimitiveValue.CSS_NUMBER)", "0"); | 162 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(0).getRGB
ColorValue().green.getFloatValue(CSSPrimitiveValue.CSS_NUMBER)", "0"); |
| 163 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(0).getRGB
ColorValue().blue.getFloatValue(CSSPrimitiveValue.CSS_NUMBER)", "0"); | 163 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(0).getRGB
ColorValue().blue.getFloatValue(CSSPrimitiveValue.CSS_NUMBER)", "0"); |
| 164 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(1).getStr
ingValue()", "'dummy://test.png'"); | 164 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(1).getStr
ingValue()", "'dummy://test.png'"); |
| 165 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(2).getStr
ingValue()", "'no-repeat'"); | 165 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(2).getStr
ingValue()", "'no-repeat'"); |
| 166 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(3).getStr
ingValue()", "'fixed'"); | 166 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(3).getStr
ingValue()", "'fixed'"); |
| 167 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(4).toStri
ng()", "'[object CSSValueList]'"); | 167 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(4).toStri
ng()", "'[object CSSValueList]'"); |
| 168 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(4).item(0
).getFloatValue(CSSPrimitiveValue.CSS_PERCENTAGE)", "100"); | |
| 169 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(4).item(1
).getFloatValue(CSSPrimitiveValue.CSS_PERCENTAGE)", "100"); | 168 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(4).item(1
).getFloatValue(CSSPrimitiveValue.CSS_PERCENTAGE)", "100"); |
| 169 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(4).item(3
).getFloatValue(CSSPrimitiveValue.CSS_PERCENTAGE)", "100"); |
| 170 shouldBe("computedStyle.getPropertyCSSValue('background').item(1).item(0).getStr
ingValue()", "'cover'"); | 170 shouldBe("computedStyle.getPropertyCSSValue('background').item(1).item(0).getStr
ingValue()", "'cover'"); |
| 171 shouldBe("computedStyle.getPropertyCSSValue('background').item(1).item(1).getStr
ingValue()", "'content-box'"); | 171 shouldBe("computedStyle.getPropertyCSSValue('background').item(1).item(1).getStr
ingValue()", "'content-box'"); |
| 172 shouldBe("computedStyle.getPropertyCSSValue('background').item(1).item(2).getStr
ingValue()", "'border-box'"); | 172 shouldBe("computedStyle.getPropertyCSSValue('background').item(1).item(2).getStr
ingValue()", "'border-box'"); |
| 173 shouldBe("checkComputedStyleValue()", "true"); | 173 shouldBe("checkComputedStyleValue()", "true"); |
| 174 | 174 |
| 175 e.style.backgroundClip = "padding-box"; | 175 e.style.backgroundClip = "padding-box"; |
| 176 shouldBe("computedStyle.getPropertyValue('background')", "'rgb(255, 0, 0) url(du
mmy://test.png) no-repeat fixed 100% 100% / cover content-box padding-box'"); | 176 shouldBe("computedStyle.getPropertyValue('background')", "'rgb(255, 0, 0) url(du
mmy://test.png) no-repeat fixed left 100% top 100% / cover content-box padding-b
ox'"); |
| 177 shouldBe("computedStyle.getPropertyCSSValue('background').toString()", "'[object
CSSValueList]'"); | 177 shouldBe("computedStyle.getPropertyCSSValue('background').toString()", "'[object
CSSValueList]'"); |
| 178 shouldBe("computedStyle.getPropertyCSSValue('background').cssText", "'rgb(255, 0
, 0) url(dummy://test.png) no-repeat fixed 100% 100% / cover content-box padding
-box'"); | 178 shouldBe("computedStyle.getPropertyCSSValue('background').cssText", "'rgb(255, 0
, 0) url(dummy://test.png) no-repeat fixed left 100% top 100% / cover content-bo
x padding-box'"); |
| 179 shouldBe("computedStyle.getPropertyCSSValue('background').length", "2"); | 179 shouldBe("computedStyle.getPropertyCSSValue('background').length", "2"); |
| 180 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).length", "5"); | 180 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).length", "5"); |
| 181 shouldBe("computedStyle.getPropertyCSSValue('background').item(1).length", "3"); | 181 shouldBe("computedStyle.getPropertyCSSValue('background').item(1).length", "3"); |
| 182 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(0).getRGB
ColorValue().red.getFloatValue(CSSPrimitiveValue.CSS_NUMBER)", "255"); | 182 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(0).getRGB
ColorValue().red.getFloatValue(CSSPrimitiveValue.CSS_NUMBER)", "255"); |
| 183 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(0).getRGB
ColorValue().green.getFloatValue(CSSPrimitiveValue.CSS_NUMBER)", "0"); | 183 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(0).getRGB
ColorValue().green.getFloatValue(CSSPrimitiveValue.CSS_NUMBER)", "0"); |
| 184 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(0).getRGB
ColorValue().blue.getFloatValue(CSSPrimitiveValue.CSS_NUMBER)", "0"); | 184 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(0).getRGB
ColorValue().blue.getFloatValue(CSSPrimitiveValue.CSS_NUMBER)", "0"); |
| 185 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(1).getStr
ingValue()", "'dummy://test.png'"); | 185 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(1).getStr
ingValue()", "'dummy://test.png'"); |
| 186 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(2).getStr
ingValue()", "'no-repeat'"); | 186 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(2).getStr
ingValue()", "'no-repeat'"); |
| 187 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(3).getStr
ingValue()", "'fixed'"); | 187 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(3).getStr
ingValue()", "'fixed'"); |
| 188 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(4).toStri
ng()", "'[object CSSValueList]'"); | 188 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(4).toStri
ng()", "'[object CSSValueList]'"); |
| 189 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(4).item(0
).getFloatValue(CSSPrimitiveValue.CSS_PERCENTAGE)", "100"); | |
| 190 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(4).item(1
).getFloatValue(CSSPrimitiveValue.CSS_PERCENTAGE)", "100"); | 189 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(4).item(1
).getFloatValue(CSSPrimitiveValue.CSS_PERCENTAGE)", "100"); |
| 190 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(4).item(3
).getFloatValue(CSSPrimitiveValue.CSS_PERCENTAGE)", "100"); |
| 191 shouldBe("computedStyle.getPropertyCSSValue('background').item(1).item(0).getStr
ingValue()", "'cover'"); | 191 shouldBe("computedStyle.getPropertyCSSValue('background').item(1).item(0).getStr
ingValue()", "'cover'"); |
| 192 shouldBe("computedStyle.getPropertyCSSValue('background').item(1).item(1).getStr
ingValue()", "'content-box'"); | 192 shouldBe("computedStyle.getPropertyCSSValue('background').item(1).item(1).getStr
ingValue()", "'content-box'"); |
| 193 shouldBe("computedStyle.getPropertyCSSValue('background').item(1).item(2).getStr
ingValue()", "'padding-box'"); | 193 shouldBe("computedStyle.getPropertyCSSValue('background').item(1).item(2).getStr
ingValue()", "'padding-box'"); |
| 194 shouldBe("checkComputedStyleValue()", "true"); | 194 shouldBe("checkComputedStyleValue()", "true"); |
| 195 | 195 |
| 196 e.style.background = "border-box padding-box url(dummy://test.png) green 45% / c
ontain repeat fixed"; | 196 e.style.background = "border-box padding-box url(dummy://test.png) green 45% / c
ontain repeat fixed"; |
| 197 shouldBe("computedStyle.getPropertyValue('background')", "'rgb(0, 128, 0) url(du
mmy://test.png) repeat fixed 45% 50% / contain border-box padding-box'"); | 197 shouldBe("computedStyle.getPropertyValue('background')", "'rgb(0, 128, 0) url(du
mmy://test.png) repeat fixed left 45% top 50% / contain border-box padding-box'"
); |
| 198 shouldBe("computedStyle.getPropertyCSSValue('background').toString()", "'[object
CSSValueList]'"); | 198 shouldBe("computedStyle.getPropertyCSSValue('background').toString()", "'[object
CSSValueList]'"); |
| 199 shouldBe("computedStyle.getPropertyCSSValue('background').cssText", "'rgb(0, 128
, 0) url(dummy://test.png) repeat fixed 45% 50% / contain border-box padding-box
'"); | 199 shouldBe("computedStyle.getPropertyCSSValue('background').cssText", "'rgb(0, 128
, 0) url(dummy://test.png) repeat fixed left 45% top 50% / contain border-box pa
dding-box'"); |
| 200 shouldBe("computedStyle.getPropertyCSSValue('background').length", "2"); | 200 shouldBe("computedStyle.getPropertyCSSValue('background').length", "2"); |
| 201 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).length", "5"); | 201 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).length", "5"); |
| 202 shouldBe("computedStyle.getPropertyCSSValue('background').item(1).length", "3"); | 202 shouldBe("computedStyle.getPropertyCSSValue('background').item(1).length", "3"); |
| 203 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(0).getRGB
ColorValue().red.getFloatValue(CSSPrimitiveValue.CSS_NUMBER)", "0"); | 203 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(0).getRGB
ColorValue().red.getFloatValue(CSSPrimitiveValue.CSS_NUMBER)", "0"); |
| 204 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(0).getRGB
ColorValue().green.getFloatValue(CSSPrimitiveValue.CSS_NUMBER)", "128"); | 204 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(0).getRGB
ColorValue().green.getFloatValue(CSSPrimitiveValue.CSS_NUMBER)", "128"); |
| 205 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(0).getRGB
ColorValue().blue.getFloatValue(CSSPrimitiveValue.CSS_NUMBER)", "0"); | 205 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(0).getRGB
ColorValue().blue.getFloatValue(CSSPrimitiveValue.CSS_NUMBER)", "0"); |
| 206 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(1).getStr
ingValue()", "'dummy://test.png'"); | 206 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(1).getStr
ingValue()", "'dummy://test.png'"); |
| 207 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(2).getStr
ingValue()", "'repeat'"); | 207 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(2).getStr
ingValue()", "'repeat'"); |
| 208 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(3).getStr
ingValue()", "'fixed'"); | 208 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(3).getStr
ingValue()", "'fixed'"); |
| 209 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(4).toStri
ng()", "'[object CSSValueList]'"); | 209 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(4).toStri
ng()", "'[object CSSValueList]'"); |
| 210 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(4).item(0
).getFloatValue(CSSPrimitiveValue.CSS_PERCENTAGE)", "45"); | 210 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(4).item(1
).getFloatValue(CSSPrimitiveValue.CSS_PERCENTAGE)", "45"); |
| 211 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(4).item(1
).getFloatValue(CSSPrimitiveValue.CSS_PERCENTAGE)", "50"); | 211 shouldBe("computedStyle.getPropertyCSSValue('background').item(0).item(4).item(3
).getFloatValue(CSSPrimitiveValue.CSS_PERCENTAGE)", "50"); |
| 212 shouldBe("computedStyle.getPropertyCSSValue('background').item(1).item(0).getStr
ingValue()", "'contain'"); | 212 shouldBe("computedStyle.getPropertyCSSValue('background').item(1).item(0).getStr
ingValue()", "'contain'"); |
| 213 shouldBe("computedStyle.getPropertyCSSValue('background').item(1).item(1).getStr
ingValue()", "'border-box'"); | 213 shouldBe("computedStyle.getPropertyCSSValue('background').item(1).item(1).getStr
ingValue()", "'border-box'"); |
| 214 shouldBe("computedStyle.getPropertyCSSValue('background').item(1).item(2).getStr
ingValue()", "'padding-box'"); | 214 shouldBe("computedStyle.getPropertyCSSValue('background').item(1).item(2).getStr
ingValue()", "'padding-box'"); |
| 215 shouldBe("checkComputedStyleValue()", "true"); | 215 shouldBe("checkComputedStyleValue()", "true"); |
| 216 | 216 |
| 217 document.body.removeChild(testContainer); | 217 document.body.removeChild(testContainer); |
| 218 | 218 |
| 219 </script> | 219 </script> |
| 220 <script src="../../js/resources/js-test-post.js"></script> | 220 <script src="../../js/resources/js-test-post.js"></script> |
| 221 </body> | 221 </body> |
| 222 </html> | 222 </html> |
| OLD | NEW |