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

Side by Side Diff: LayoutTests/fast/css/variables/cssom-read.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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 <!doctype html>
2
3 <pre style="var-a: override me; var-a: apple; var-b: banana;"></pre>
4
5 <script>
6 if (window.testRunner) {
7 window.testRunner.dumpAsText();
8 }
9
10 var pre = document.querySelector("pre");
11
12 pre.innerText += "Count vars: " + pre.style.var.size + "\n";
13 pre.innerText += "\n";
14
15 pre.innerText += "Access vars directly:\n";
16 pre.innerText += "a: " + pre.style.var.get("a") + "\n";
17 pre.innerText += "b: " + pre.style.var.get("b") + "\n";
18 pre.innerText += "\n";
19
20 pre.innerText += "Access non existent var:\n";
21 pre.innerText += "z: " + pre.style.var.get("z") + "\n";
22 pre.innerText += "\n";
23
24 pre.innerText += "Setting c to carrot and d to dog...\n";
25 pre.style.var.set("c", "carrot");
26 pre.style.var.set("d", "dog");
27 pre.innerText += "\n";
28
29 pre.innerText += "Count vars: " + pre.style.var.size + "\n";
30 pre.innerText += "\n";
31
32 pre.innerText += "Access vars directly:\n";
33 pre.innerText += "a: " + pre.style.var.get("a") + "\n";
34 pre.innerText += "b: " + pre.style.var.get("b") + "\n";
35 pre.innerText += "c: " + pre.style.var.get("c") + "\n";
36 pre.innerText += "d: " + pre.style.var.get("d") + "\n";
37
38 </script>
OLDNEW
« no previous file with comments | « LayoutTests/fast/css/variables/cssom-persistence-expected.txt ('k') | LayoutTests/fast/css/variables/cssom-read-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698