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

Side by Side Diff: third_party/WebKit/LayoutTests/css3/calc/letter-spacing.html

Issue 1348363004: Add consumeInteger/consumeLength (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Patch for landing Created 5 years, 2 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
OLDNEW
(Empty)
1 <!DOCTYPE HTML>
2 <style>
3 .invalid {
4 letter-spacing: 20px;
5 letter-spacing: calc(1 + 1px);
6 letter-spacing: calc(1 + 100%);
7 letter-spacing: calc(100%);
8 letter-spacing: calc(10px) bla;
9 letter-spacing: calc(bla) 10px;
10 }
11 .valid {
12 letter-spacing: calc(10px);
13 }
14 </style>
15 <div class="invalid"></div>
16 <div class="valid"></div>
17 <script src="../../resources/js-test.js"></script>
18 <script>
19 if (window.testRunner)
20 testRunner.dumpAsText();
21
22 function getComputedValue(selector, property) {
23 return getComputedStyle(document.querySelector(selector))[property];
24 }
25
26 shouldBe('getComputedValue(".invalid", "letterSpacing")', '"20px"');
27 shouldBe('getComputedValue(".valid", "letterSpacing")', '"10px"');
28 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698