| OLD | NEW | 
|---|
| 1 <!DOCTYPE HTML> | 1 <!DOCTYPE HTML> | 
| 2 </html> | 2 </html> | 
| 3   <head> | 3   <head> | 
| 4     <title>-webkit-margin-collapse shorthand getPropertyValue test</title> | 4     <title>-webkit-margin-collapse shorthand getPropertyValue test</title> | 
| 5     <style> | 5     <style> | 
| 6       .test { | 6       .test { | 
| 7         display: inline-block; | 7         display: inline-block; | 
| 8         width: 5em; | 8         width: 5em; | 
| 9         height: 10em; | 9         height: 10em; | 
| 10       } | 10       } | 
| (...skipping 15 matching lines...) Expand all  Loading... | 
| 26 | 26 | 
| 27       function webkitMarginCollapseValue(id) { | 27       function webkitMarginCollapseValue(id) { | 
| 28         var element = document.getElementById(id); | 28         var element = document.getElementById(id); | 
| 29         return element.style.getPropertyValue("-webkit-margin-collapse"); | 29         return element.style.getPropertyValue("-webkit-margin-collapse"); | 
| 30       } | 30       } | 
| 31 | 31 | 
| 32       shouldBe('webkitMarginCollapseValue("margin-collapse1")', "'collapse separ
    ate'"); | 32       shouldBe('webkitMarginCollapseValue("margin-collapse1")', "'collapse separ
    ate'"); | 
| 33       shouldBe('webkitMarginCollapseValue("margin-collapse2")', "'discard discar
    d'"); | 33       shouldBe('webkitMarginCollapseValue("margin-collapse2")', "'discard discar
    d'"); | 
| 34       shouldBe('webkitMarginCollapseValue("margin-collapse3")', "'discard separa
    te'"); | 34       shouldBe('webkitMarginCollapseValue("margin-collapse3")', "'discard separa
    te'"); | 
| 35       debug("NOTE: 'foo' is an illegal CSS value for '-webkit-margin-collapse'."
    ); | 35       debug("NOTE: 'foo' is an illegal CSS value for '-webkit-margin-collapse'."
    ); | 
| 36       shouldBe('webkitMarginCollapseValue("margin-collapse4")', "null"); | 36       shouldBeEqualToString('webkitMarginCollapseValue("margin-collapse4")', "")
    ; | 
| 37       debug("NOTE: If only few longhand properties are specified, getPropertyVal
    ue for shorthand property returns null.") | 37       debug("NOTE: If only few longhand properties are specified, getPropertyVal
    ue for shorthand property returns empty string.") | 
| 38       shouldBe('webkitMarginCollapseValue("margin-collapse5")', "null"); | 38       shouldBeEqualToString('webkitMarginCollapseValue("margin-collapse5")', "")
    ; | 
| 39     </script> | 39     </script> | 
| 40   </body> | 40   </body> | 
| 41 </html> | 41 </html> | 
| OLD | NEW | 
|---|