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

Unified Diff: third_party/WebKit/LayoutTests/fast/text/hyphens/hyphens-parsing-001.html

Issue 1915343003: Add CSS hyphens property behind the test flag (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Split histograms.xml to a separate CL Created 4 years, 8 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: third_party/WebKit/LayoutTests/fast/text/hyphens/hyphens-parsing-001.html
diff --git a/third_party/WebKit/LayoutTests/fast/text/hyphens/hyphens-parsing-001.html b/third_party/WebKit/LayoutTests/fast/text/hyphens/hyphens-parsing-001.html
new file mode 100644
index 0000000000000000000000000000000000000000..51c0320bf8c1b1eb9379ab7dd639dd1b67528ccf
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/text/hyphens/hyphens-parsing-001.html
@@ -0,0 +1,23 @@
+<!DOCTYPE html>
+<script src="../../../resources/testharness.js"></script>
+<script src="../../../resources/testharnessreport.js"></script>
+
+<div data-expected="manual" title="Initial value"></div>
+
+<div style="hyphens: auto" data-expected="auto"></div>
+<div style="hyphens: manual" data-expected="manual"></div>
+<div style="hyphens: none" data-expected="none"></div>
+
+<div style="hyphens: auto">
+ <div data-expected="auto" title="hyphens should inherit"></div>
+</div>
+
+<script>
+Array.prototype.forEach.call(document.querySelectorAll("[data-expected]"), function (element) {
+ test(function () {
+ var actual = getComputedStyle(element).hyphens;
+ assert_equals(actual, element.dataset.expected);
+ }, element.title || element.getAttribute("style"));
+});
+</script>
+

Powered by Google App Engine
This is Rietveld 408576698