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 |
new file mode 100644 |
index 0000000000000000000000000000000000000000..94e6a85cc2494e6f79ca051d33f50c4734bb9fea |
--- /dev/null |
+++ b/LayoutTests/svg/css/baseline-shift-inherit.html |
@@ -0,0 +1,21 @@ |
+<!DOCTYPE html> |
+<script src="../../resources/testharness.js"></script> |
+<script src="../../resources/testharnessreport.js"></script> |
+<style> |
+text { |
+ baseline-shift: inherit; |
+} |
+</style> |
+<svg height="0"><text></text></svg> |
+<script> |
+setup(function() { |
+ window.svg = document.querySelector('svg'); |
+ window.textElement = document.querySelector('text'); |
+}); |
+['baseline', 'sub', 'super', '10px', '100%'].forEach(function(item) { |
+ test(function() { |
+ svg.style.setProperty('baseline-shift', item); |
+ assert_equals(getComputedStyle(textElement).baselineShift, item); |
+ }, 'Inheritance of the baseline-shift property - ' + item + '.'); |
+}); |
+</script> |