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

Unified Diff: LayoutTests/fast/css/border-image-value-grammar.html

Issue 471893002: Support consecutive slash operators for border-image value (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Remove white spaces Created 6 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/css/border-image-value-grammar.html
diff --git a/LayoutTests/fast/css/border-image-value-grammar.html b/LayoutTests/fast/css/border-image-value-grammar.html
new file mode 100644
index 0000000000000000000000000000000000000000..4d060cb0b37e3b6874b386dd316fb26fcdfbe46b
--- /dev/null
+++ b/LayoutTests/fast/css/border-image-value-grammar.html
@@ -0,0 +1,28 @@
+<!DOCTYPE html>
+<script>
+function print_output(elem) {
+ style = elem.style;
+ elem.insertAdjacentHTML('BeforeEnd', 'BorderImageSlice: ' + style.borderImageSlice);
+ elem.insertAdjacentHTML('BeforeEnd', '<br>BorderImageOutset: ' + style.borderImageOutset);
+}
+
+document.addEventListener('DOMContentLoaded', function () {
+ var element =document.getElementById('check1');
+ var style = element.style;
+ style.borderImage = '3 / / 2';
+ print_output(element)
+
+ element =document.getElementById('check2');
+ style = element.style;
+ style.borderImage = '4 / 5';
+ print_output(element)
+
+ element =document.getElementById('check3');
+ style = element.style;
+ style.borderImage = '1 / 2 / 3';
+ print_output(element)
+});
+</script>
+<div id="check1"></div>
+<div id="check2"></div>
+<div id="check3"></div>

Powered by Google App Engine
This is Rietveld 408576698