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

Unified Diff: LayoutTests/imported/csswg-test/css-writing-modes-3/text-combine-upright-parsing-valid-001.html

Issue 1344233004: update-w3c-deps import using blink 41e709df01f60521d3c9786d319cdc1690633151: (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Updated -expected Created 5 years, 3 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
Index: LayoutTests/imported/csswg-test/css-writing-modes-3/text-combine-upright-parsing-valid-001.html
diff --git a/LayoutTests/imported/csswg-test/css-writing-modes-3/text-combine-upright-parsing-valid-001.html b/LayoutTests/imported/csswg-test/css-writing-modes-3/text-combine-upright-parsing-valid-001.html
new file mode 100644
index 0000000000000000000000000000000000000000..37ebf5de6d2c0cc390667bcda985311b1098463e
--- /dev/null
+++ b/LayoutTests/imported/csswg-test/css-writing-modes-3/text-combine-upright-parsing-valid-001.html
@@ -0,0 +1,91 @@
+<!DOCTYPE html>
+<html>
+<head>
+<meta charset="utf-8">
+<title>CSS Writing Modes: parsing text-combine-upright with valid values</title>
+<link rel="author" title="Masataka Yakura" href="http://google.com/+MasatakaYakura">
+<link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#text-combine-upright">
+<meta name="assert" content="text-combine-upright supports `none`, `all`, `digits`, and `digits` followed by a digit in the range from 2 to 4.">
+<meta name="flags" content="dom">
+<script src="../../../resources/testharness.js"></script>
+<script src="../../../resources/testharnessreport.js"></script>
+
+<style>
+#valid_none {
+ -webkit-text-combine: none;
+}
+
+#valid_all {
+ -webkit-text-combine: horizontal;
+}
+
+#valid_initial {
+ -webkit-text-combine: initial;
+}
+
+#valid_inherit_outer {
+ -webkit-text-combine: horizontal;
+}
+
+#valid_inherit_inner {
+ -webkit-text-combine: inherit;
+}
+
+#valid_unset_outer {
+ -webkit-text-combine: horizontal;
+}
+
+#valid_unset_inner {
+ -webkit-text-combine: unset;
+}
+</style>
+</head>
+<body>
+
+<div id="valid_none"></div>
+<div id="valid_all"></div>
+
+<div id="valid_initial"></div>
+
+<div id="valid_inherit_outer">
+ <div id="valid_inherit_inner"></div>
+</div>
+
+<div id="valid_unset_outer">
+ <div id="valid_unset_inner"></div>
+</div>
+
+<div id="log"></div>
+
+<script>
+var getComputedValueFor = function (id) {
+ var element = document.getElementById(id);
+ return window.getComputedStyle(element).textCombineUpright;
+};
+
+test(function () {
+ assert_equals(getComputedValueFor('valid_none'), 'none');
+}, 'Computed value for `text-combine-upright: none` is `none`');
+
+test(function () {
+ assert_equals(getComputedValueFor('valid_all'), 'all');
+}, 'Computed value for `text-combine-upright: all` is `all`');
+
+
+test(function () {
+ assert_equals(getComputedValueFor('valid_initial'), 'none');
+}, 'Computed value for `text-combine-upright: initial` is `none`');
+
+
+test(function () {
+ assert_equals(getComputedValueFor('valid_inherit_outer'), 'all');
+ assert_equals(getComputedValueFor('valid_inherit_inner'), 'all');
+}, 'Computed value for `text-combine-upright: inherit` is `all` which is inherited from the parent element');
+
+test(function () {
+ assert_equals(getComputedValueFor('valid_unset_outer'), 'all');
+ assert_equals(getComputedValueFor('valid_unset_inner'), 'all');
+}, 'Computed value for `text-combine-upright: unset` is `all` which is inherited from the parent element');
+</script>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698