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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/css/border-image-style-none.html

Issue 1457323004: Don't render border images when border-style is none (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased, removed unnecessary border colors, etc. Created 5 years 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 <title>Test UseCounters for border-image with border-style: none</title> 2 <title>Test UseCounters for border-image with border-style: none</title>
3 <script src="../../resources/js-test.js"></script> 3 <script src="../../resources/js-test.js"></script>
4 <script src="../../resources/run-after-layout-and-paint.js"></script> 4 <script src="../../resources/run-after-layout-and-paint.js"></script>
5 <style> 5 <style>
6 .test { 6 .test {
7 width: 100px; 7 width: 100px;
8 height: 100px; 8 height: 100px;
9 } 9 }
10 </style> 10 </style>
(...skipping 25 matching lines...) Expand all
36 style.borderImage = 'linear-gradient(to bottom, blue, white) fill 1 repeat'; 36 style.borderImage = 'linear-gradient(to bottom, blue, white) fill 1 repeat';
37 37
38 runAfterLayoutAndPaint(function() { 38 runAfterLayoutAndPaint(function() {
39 shouldBeFalse("window.internals.isUseCounted(document, BorderIma geWithBorderStyleNone)"); 39 shouldBeFalse("window.internals.isUseCounted(document, BorderIma geWithBorderStyleNone)");
40 40
41 // Add a top border width that according to spec should be clamp ed to zero because 41 // Add a top border width that according to spec should be clamp ed to zero because
42 // border-top-style is none; expect hit 42 // border-top-style is none; expect hit
43 style.borderTopWidth = '10px'; 43 style.borderTopWidth = '10px';
44 44
45 runAfterLayoutAndPaint(function() { 45 runAfterLayoutAndPaint(function() {
46 shouldBeTrue("window.internals.isUseCounted(document, Border ImageWithBorderStyleNone)"); 46 shouldBeFalse("window.internals.isUseCounted(document, Borde rImageWithBorderStyleNone)");
47 finishJSTest(); 47 finishJSTest();
48 }); 48 });
49 }); 49 });
50 }); 50 });
51 }); 51 });
52 </script> 52 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698