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

Side by Side Diff: LayoutTests/fast/css/getComputedStyle/getComputedStyle-all.html

Issue 216803002: Implement all shorthand property. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed ASSERT_NOT_REACH in linux_blink_dbg Created 6 years, 7 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 <html>
3 <head>
4 <script src="../../../resources/js-test.js"></script>
5 <style>
6 #initial { all: initial; }
7 #inherit { all: inherit; }
8 #invalid { all: green; }
9 #notOnlyInitial { all: initial; color: green; }
10 #notOnlyInherit { all: inherit; color: green; }
11 </style>
12 <script type="text/javascript">
13 function getPropertyValueAll(id)
14 {
15 var ob = document.getElementById(id);
16 return document.defaultView.getComputedStyle(ob, null).getPropertyValue('all ');
esprehn 2014/05/30 00:59:22 you don't need this document.defaultView stuff. Ju
tasak 2014/06/04 09:37:40 Done.
17 }
18 </script>
19 </head>
20 <body>
21 <div id="initial"></div>
22 <div id="inherit"></div>
23 <div id="invalid"></div>
24 <div id="notOnlyInitial"></div>
25 <div id="notOnlyInherit"></div>
26 <pre id="console"></pre>
27 </body>
28 <script>
29 description('Test calling getPropertyValue on computed styles for all shorthand property.');
30
31 shouldBe('getPropertyValueAll("initial")', '""');
esprehn 2014/05/30 00:59:22 This can be much simpler, I'd just write: 'getCom
tasak 2014/06/04 09:37:40 Done.
32 shouldBe('getPropertyValueAll("inherit")', '""');
esprehn 2014/05/30 00:59:22 shouldBeEqualToString()
tasak 2014/06/04 09:37:40 Done.
33 shouldBe('getPropertyValueAll("invalid")', '""');
34 shouldBe('getPropertyValueAll("notOnlyInitial")', '""');
35 shouldBe('getPropertyValueAll("notOnlyInherit")', '""');
36 </script>
37 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698