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

Unified Diff: LayoutTests/fast/borders/border-image-width-numbers-computed-style.html

Issue 54383006: Lift integer restriction on border-image-width and border-image-outset (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@length-relative-die-step-4-4
Patch Set: Re-added reftest to test rendering 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
Index: LayoutTests/fast/borders/border-image-width-numbers-computed-style.html
diff --git a/LayoutTests/fast/borders/border-image-width-numbers-computed-style.html b/LayoutTests/fast/borders/border-image-width-numbers-computed-style.html
new file mode 100644
index 0000000000000000000000000000000000000000..241755d7f1d1c23188d86b9251fb971f43a135d0
--- /dev/null
+++ b/LayoutTests/fast/borders/border-image-width-numbers-computed-style.html
@@ -0,0 +1,23 @@
+<!doctype html>
+<html>
+<head>
+ <title>Test that numbers in border-image-{width,outset} are returned correctly</title>
+ <script src="../../resources/js-test.js"></script>
+ <style>
+ .test {
+ border-image-width: 0 5.5 4.4 3.3;
+ border-image-outset: 2.5 0 1.4 1.9;
+ border-style: solid;
+ visibility: hidden;
+ }
+ </style>
+</head>
+<body>
+ <div class="test"></div>
+ <script>
+ var elm = getComputedStyle(document.querySelector('.test'));
+ shouldBeEqualToString("elm.borderImageWidth", "0 5.5 4.4 3.3");
+ shouldBeEqualToString("elm.borderImageOutset", "2.5 0 1.4 1.9");
+ </script>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698