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

Unified Diff: LayoutTests/fast/css/variables/cssom-create.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-create.html
diff --git a/LayoutTests/fast/css/variables/cssom-create.html b/LayoutTests/fast/css/variables/cssom-create.html
new file mode 100644
index 0000000000000000000000000000000000000000..3e86839d38612416de290588e89480d7da21b5d5
--- /dev/null
+++ b/LayoutTests/fast/css/variables/cssom-create.html
@@ -0,0 +1,20 @@
+<!doctype html>
+
+<style>
+ div {
+ var-color: darkred;
+ background-color: darkred;
+ background-color: var(color);
+ }
+</style>
+
+<div id="div1" style="background-color: white;">This line should end with a stringified CSSVariablesMap: </div>
+<div id="div2">Testing set method. This div should be green.</div>
+
+<script>
+var div1 = document.querySelector("#div1");
+var div2 = document.querySelector("#div2");
+
+div1.innerText += div1.style.var;
+div2.style.var.set("color", "green");
+</script>

Powered by Google App Engine
This is Rietveld 408576698