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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/css/cssText-shorthand.html

Issue 2249653002: border-foo WIP Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: V9 Created 4 years, 3 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
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <script src="../../resources/testharness.js"></script> 2 <script src="../../resources/testharness.js"></script>
3 <script src="../../resources/testharnessreport.js"></script> 3 <script src="../../resources/testharnessreport.js"></script>
4 <script> 4 <script>
5 5
6 var tests = [ 6 var tests = [
7 ['border: 1px; border-top: 1px;', 'border: 1px;'], 7 ['border: 1px; border-top: 1px;', 'border: 1px;'],
8 ['border: 1px solid red;', 'border: 1px solid red;'], 8 ['border: 1px solid red;', 'border: 1px solid red;'],
9 ['border: 1px red;', 'border: 1px red;'], 9 ['border: 1px red;', 'border: 1px red;'],
10 ['border: red;', 'border: red;'], 10 ['border: red;', 'border: red;'],
11 ['border-top: 1px; border-right: 1px; border-bottom: 1px; border-left: 1px;' , 11 ['border-top: 1px; border-right: 1px; border-bottom: 1px; border-left: 1px;' ,
12 'border-color: initial; border-style: initial; border-width: 1px;'], 12 'border-color: currentcolor; border-style: none; border-width: 1px;'],
13 ['border-top: 1px; border-right: 2px; border-bottom: 3px; border-left: 4px;' , 'border-color: initial; border-style: initial; border-width: 1px 2px 3px 4px;' ], 13 ['border-top: 1px; border-right: 2px; border-bottom: 3px; border-left: 4px;' , 'border-color: currentcolor; border-style: none; border-width: 1px 2px 3px 4px ;'],
14 ['border: 1px; border-top: 2px;', 'border-color: initial; border-style: init ial; border-width: 2px 1px 1px; border-image: initial;'], 14 ['border: 1px; border-top: 2px;', 'border-color: currentcolor; border-style: none; border-width: 2px 1px 1px; border-image: none;'],
15 ['border: 1px; border-top: 1px !important;', 15 ['border: 1px; border-top: 1px !important;',
16 'border-right: 1px; border-bottom: 1px; border-left: 1px; border-top: 1px !i mportant; border-image: initial;'], 16 'border-right: 1px; border-bottom: 1px; border-left: 1px; border-top: 1px !i mportant; border-image: initial;'],
17 17
18 ['border: 1px; border-top-color: red;', 18 ['border: 1px; border-top-color: red;',
19 'border-bottom-color: initial; border-image: initial; border-left-color: ini tial; border-right-color: initial; border-style: initial; border-top-color: red; border-width: 1px;'], 19 'border-bottom-color: initial; border-image: initial; border-left-color: ini tial; border-right-color: initial; border-style: initial; border-top-color: red; border-width: 1px;'],
20 ['border: solid; border-style: dotted', 'border: dotted;'], 20 ['border: solid; border-style: dotted', 'border: dotted;'],
21 ['border-width: 1px;', 'border-width: 1px;'], 21 ['border-width: 1px;', 'border-width: 1px;'],
22 22
23 ['-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 2 px;', 'border-spacing: 1px 2px;'], 23 ['-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 2 px;', 'border-spacing: 1px 2px;'],
24 24
(...skipping 23 matching lines...) Expand all
48 test(function() { 48 test(function() {
49 49
50 element = document.createElement('div'); 50 element = document.createElement('div');
51 element.setAttribute('style', styleAttribute); 51 element.setAttribute('style', styleAttribute);
52 52
53 assert_equals(normalizeCssText(element.style.cssText), normalizeCssText( expectedCssText)); 53 assert_equals(normalizeCssText(element.style.cssText), normalizeCssText( expectedCssText));
54 }, "cssText set to " + JSON.stringify(styleAttribute) + " is read back as " + JSON.stringify(expectedCssText)); 54 }, "cssText set to " + JSON.stringify(styleAttribute) + " is read back as " + JSON.stringify(expectedCssText));
55 }); 55 });
56 56
57 </script> 57 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698