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

Unified Diff: LayoutTests/fast/css/variables/cssom-persistence.html

Issue 18311002: Partial implementation of CSSVariablesMap for CSS Variables CSSOM (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased onto ToT, cleaned up includes Created 7 years, 5 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/fast/css/variables/cssom-persistence.html
diff --git a/LayoutTests/fast/css/variables/cssom-persistence.html b/LayoutTests/fast/css/variables/cssom-persistence.html
new file mode 100644
index 0000000000000000000000000000000000000000..d6efcb6bcbb658c2646f39b0febf10110f23e937
--- /dev/null
+++ b/LayoutTests/fast/css/variables/cssom-persistence.html
@@ -0,0 +1,20 @@
+<!doctype html>
+
+<pre id="inline">Persistent JS object for element.style.var: </pre>
+<pre id="computed">Persistent JS object for getComputedStyle(element).var: </pre>
+
+<script>
+if (window.testRunner) {
+ window.testRunner.dumpAsText();
+}
+
+var pre = document.querySelector("#inline");
+pre.style.var.testAddingKey = "pass";
+pre.innerText += pre.style.var.testAddingKey;
+
+pre = document.querySelector("#computed");
+var style = getComputedStyle(pre)
+style.var.testAddingKey = "pass";
+pre.innerText += style.var.testAddingKey;
+
+</script>

Powered by Google App Engine
This is Rietveld 408576698