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

Unified Diff: LayoutTests/fast/css/variables/cssom-update.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-update.html
diff --git a/LayoutTests/fast/css/variables/cssom-update.html b/LayoutTests/fast/css/variables/cssom-update.html
new file mode 100644
index 0000000000000000000000000000000000000000..eb899b08547563dc76d586bea52b570e744bb5a1
--- /dev/null
+++ b/LayoutTests/fast/css/variables/cssom-update.html
@@ -0,0 +1,21 @@
+<!doctype html>
+
+<style>
+ div {
+ background-color: var(color);
+ border-style: var(border);
+ }
+</style>
+
+<div id="outer" style="var-color: darkred; var-border: dashed">
+ This div should be green with a solid border.
+ <div>This div should also be green with a solid border.</div>
+</div>
+
+<script>
+var outer = document.querySelector("#outer");
+
+outer.style.var.set("color", "green");
+outer.style.var.set("border", "solid");
+
+</script>
« no previous file with comments | « LayoutTests/fast/css/variables/cssom-read-expected.txt ('k') | LayoutTests/fast/css/variables/cssom-update-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698