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

Unified Diff: LayoutTests/fast/css/quotes-computedstyle.html

Issue 1206793002: getComputedStyle(e).quotes always return empty string (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Updating as per review comments Created 5 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 | LayoutTests/fast/css/quotes-computedstyle-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/css/quotes-computedstyle.html
diff --git a/LayoutTests/fast/css/quotes-computedstyle.html b/LayoutTests/fast/css/quotes-computedstyle.html
new file mode 100644
index 0000000000000000000000000000000000000000..29553486453d1fe025a1e86b38e48eddd6630e42
--- /dev/null
+++ b/LayoutTests/fast/css/quotes-computedstyle.html
@@ -0,0 +1,23 @@
+<!DOCTYPE html>
+<script src="../../resources/js-test.js"></script>
+
+<style>
+q:lang(no) { quotes: none }
+q:lang(qs) { quotes: "<<" ">>" "<" ">" }
+</style>
+
+<p id="p1">Before <q lang="no">q1-text <q>q2-text</q> q1-text</q> after.</p>
+<p id="p2">Before <q lang="qs">q1-text <q>q2-text</q> q1-text</q> after.</p>
+
+<script>
+
+description("Tests the computed style of quotes property.");
+var child1 = document.getElementById('p1').children[0].children[0];
+var child2 = document.getElementById('p2').children[0].children[0];
+
+shouldBeEqualToString("getComputedStyle(child1).quotes","none");
+shouldBeEqualToString("getComputedStyle(child1).getPropertyValue('quotes')", "none");
+
+shouldBeEqualToString("getComputedStyle(child2).quotes",'"<<" ">>" "<" ">"');
+shouldBeEqualToString("getComputedStyle(child2).getPropertyValue('quotes')", '"<<" ">>" "<" ">"');
+</script>
« no previous file with comments | « no previous file | LayoutTests/fast/css/quotes-computedstyle-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698