OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <script src="../../resources/testharness.js"></script> |
| 3 <script src="../../resources/testharnessreport.js"></script> |
| 4 <style> |
| 5 text { |
| 6 baseline-shift: inherit; |
| 7 } |
| 8 </style> |
| 9 <svg height="0"><text></text></svg> |
| 10 <script> |
| 11 setup(function() { |
| 12 window.svg = document.querySelector('svg'); |
| 13 window.textElement = document.querySelector('text'); |
| 14 }); |
| 15 ['baseline', 'sub', 'super', '10px', '100%'].forEach(function(item) { |
| 16 test(function() { |
| 17 svg.style.setProperty('baseline-shift', item); |
| 18 assert_equals(getComputedStyle(textElement).baselineShift, item); |
| 19 }, 'Inheritance of the baseline-shift property - ' + item + '.'); |
| 20 }); |
| 21 </script> |
OLD | NEW |