Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(171)

Unified 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. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Source/core/css/CSSProperties.in » ('j') | Source/core/css/resolver/StyleBuilderCustom.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« 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
This is Rietveld 408576698