| OLD | NEW | 
|---|
| 1 description("Test the computed style of the -webkit-filter property."); | 1 description("Test the computed style of the -webkit-filter property."); | 
| 2 | 2 | 
| 3 // These have to be global for the test helpers to see them. | 3 // These have to be global for the test helpers to see them. | 
| 4 var stylesheet, filterStyle, subRule; | 4 var stylesheet, filterStyle, subRule; | 
| 5 var styleElement = document.createElement("style"); | 5 var styleElement = document.createElement("style"); | 
| 6 document.head.appendChild(styleElement); | 6 document.head.appendChild(styleElement); | 
| 7 stylesheet = styleElement.sheet; | 7 stylesheet = styleElement.sheet; | 
| 8 | 8 | 
| 9 function testComputedFilterRule(description, rule, expectedLength, expectedTypes
     , expectedTexts) | 9 function testComputedFilterRule(description, rule, expectedLength, expectedTypes
     , expectedTexts) | 
| 10 { | 10 { | 
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 134                        ["hue-rotate(10deg)"]); | 134                        ["hue-rotate(10deg)"]); | 
| 135 | 135 | 
| 136 testComputedFilterRule("Degrees float value converts to integer", | 136 testComputedFilterRule("Degrees float value converts to integer", | 
| 137                        "hue-rotate(10.0deg)", 1, | 137                        "hue-rotate(10.0deg)", 1, | 
| 138                        ["WebKitCSSFilterValue.CSS_FILTER_HUE_ROTATE"], | 138                        ["WebKitCSSFilterValue.CSS_FILTER_HUE_ROTATE"], | 
| 139                        ["hue-rotate(10deg)"]); | 139                        ["hue-rotate(10deg)"]); | 
| 140 | 140 | 
| 141 testComputedFilterRule("Radians value", | 141 testComputedFilterRule("Radians value", | 
| 142                        "hue-rotate(10rad)", 1, | 142                        "hue-rotate(10rad)", 1, | 
| 143                        ["WebKitCSSFilterValue.CSS_FILTER_HUE_ROTATE"], | 143                        ["WebKitCSSFilterValue.CSS_FILTER_HUE_ROTATE"], | 
| 144                        ["hue-rotate(572.9577951308232deg)"]); | 144                        ["hue-rotate(572.957795130823deg)"]); | 
| 145 | 145 | 
| 146 testComputedFilterRule("Gradians value", | 146 testComputedFilterRule("Gradians value", | 
| 147                        "hue-rotate(10grad)", 1, | 147                        "hue-rotate(10grad)", 1, | 
| 148                        ["WebKitCSSFilterValue.CSS_FILTER_HUE_ROTATE"], | 148                        ["WebKitCSSFilterValue.CSS_FILTER_HUE_ROTATE"], | 
| 149                        ["hue-rotate(9deg)"]); | 149                        ["hue-rotate(9deg)"]); | 
| 150 | 150 | 
| 151 testComputedFilterRule("Turns value", | 151 testComputedFilterRule("Turns value", | 
| 152                        "hue-rotate(0.5turn)", 1, | 152                        "hue-rotate(0.5turn)", 1, | 
| 153                        ["WebKitCSSFilterValue.CSS_FILTER_HUE_ROTATE"], | 153                        ["WebKitCSSFilterValue.CSS_FILTER_HUE_ROTATE"], | 
| 154                        ["hue-rotate(180deg)"]); | 154                        ["hue-rotate(180deg)"]); | 
| (...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 374                           "grayscale(0.5)", | 374                           "grayscale(0.5)", | 
| 375                           "sepia(0.25)", | 375                           "sepia(0.25)", | 
| 376                           "saturate(0.75)", | 376                           "saturate(0.75)", | 
| 377                           "invert(0.2)", | 377                           "invert(0.2)", | 
| 378                           "opacity(0.9)", | 378                           "opacity(0.9)", | 
| 379                           "brightness(0.6)", | 379                           "brightness(0.6)", | 
| 380                           "contrast(0.3)" | 380                           "contrast(0.3)" | 
| 381               ]); | 381               ]); | 
| 382 | 382 | 
| 383 successfullyParsed = true; | 383 successfullyParsed = true; | 
| OLD | NEW | 
|---|