Index: LayoutTests/svg/css/baseline-shift-inherit.html |
diff --git a/LayoutTests/svg/css/baseline-shift-inherit.html b/LayoutTests/svg/css/baseline-shift-inherit.html |
index 94e6a85cc2494e6f79ca051d33f50c4734bb9fea..021aee6d39ec3c78f846843dc952ca7f719d67c8 100644 |
--- a/LayoutTests/svg/css/baseline-shift-inherit.html |
+++ b/LayoutTests/svg/css/baseline-shift-inherit.html |
@@ -12,10 +12,16 @@ setup(function() { |
window.svg = document.querySelector('svg'); |
window.textElement = document.querySelector('text'); |
}); |
-['baseline', 'sub', 'super', '10px', '100%'].forEach(function(item) { |
+[ |
+ {value: 'baseline', expected: '0px'}, |
+ {value: 'sub'}, |
+ {value: 'super'}, |
+ {value: '10px'}, |
+ {value: '100%'} |
+].forEach(function(item) { |
test(function() { |
- svg.style.setProperty('baseline-shift', item); |
- assert_equals(getComputedStyle(textElement).baselineShift, item); |
+ svg.style.setProperty('baseline-shift', item.value); |
+ assert_equals(getComputedStyle(textElement).baselineShift, item.expected || item.value); |
}, 'Inheritance of the baseline-shift property - ' + item + '.'); |
}); |
</script> |