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

Unified Diff: LayoutTests/fast/borders/border-image-width-negative.html

Issue 79543006: Add tests for negative border-image-width and border-image-outset (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/fast/borders/border-image-width-negative-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/borders/border-image-width-negative.html
diff --git a/LayoutTests/fast/borders/border-image-width-negative.html b/LayoutTests/fast/borders/border-image-width-negative.html
new file mode 100644
index 0000000000000000000000000000000000000000..d85a27c88412106f5f761f88b306c2d0434da0ee
--- /dev/null
+++ b/LayoutTests/fast/borders/border-image-width-negative.html
@@ -0,0 +1,31 @@
+<!doctype html>
+<html>
+ <head>
+ <title>Test that negative border image width values are ignored</title>
Julien - ping for review 2013/11/21 21:30:33 I usually advice people not to use <title> as they
+ <script src="../../resources/js-test.js"></script>
+ <style>
+ .test {
+ border-image-width: 2 3 4 5;
+ border-image-width: -1;
+ border-image-width: -1 2;
+ border-image-width: 1 2 3 -0.1;
+
+ border-image-outset: 6 7 8 9;
+ border-image-outset: -1;
+ border-image-outset: -1 2;
+ border-image-outset: 1 2 3 -0.1;
Julien - ping for review 2013/11/21 21:30:33 Shouldn't you also test the 3 number parsing? (sam
+
+ border-style: solid;
+ visibility: hidden;
+ }
+ </style>
+ </head>
+ <body>
+ <div class="test"></div>
+ <script>
+ var elm = getComputedStyle(document.querySelector('.test'));
+ shouldBeEqualToString("elm.borderImageWidth", "2 3 4 5");
+ shouldBeEqualToString("elm.borderImageOutset", "6 7 8 9");
+ </script>
+ </body>
+</html>
« no previous file with comments | « no previous file | LayoutTests/fast/borders/border-image-width-negative-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698