Chromium Code Reviews

Side by Side Diff: LayoutTests/svg/css/baseline-shift-inherit.html

Issue 330913005: Fix inheritance of baseline-shift <length> values (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | | Annotate | Revision Log
OLDNEW
(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>
OLDNEW
« no previous file with comments | « no previous file | Source/core/css/CSSProperties.in » ('j') | Source/core/css/resolver/StyleBuilderCustom.cpp » ('J')

Powered by Google App Engine