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

Unified Diff: LayoutTests/fast/borders/empty-border-radius.html

Issue 25977004: Should not use clipOutRoundedRect when a given rounded rect is empty. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Patch for landing Created 7 years, 2 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/borders/empty-border-radius.html
diff --git a/LayoutTests/fast/borders/empty-border-radius.html b/LayoutTests/fast/borders/empty-border-radius.html
new file mode 100644
index 0000000000000000000000000000000000000000..f187f25aa3c82c49a704399713cce86f87134570
--- /dev/null
+++ b/LayoutTests/fast/borders/empty-border-radius.html
@@ -0,0 +1,28 @@
+<!doctype html>
+<html>
+<head>
+<script>
+if (window.testRunner)
+ testRunner.dumpAsTextWithPixelResults();
+</script>
+<style>
+.line {
+ border-style: solid;
+ border-width: 1px 0;
+}
+
+#line2 {
+ border-color: green;
+ border-radius: 1px;
+}
+
+span {
+ font-size: 0px;
+}
+</style>
+</head>
+<body>
+ <div class="line" id="line2"></div>
+ <span>Test for crbug.com/303383: elements with border radius and 0px height are invisible. If this test passes, we can see a line with green color.</span>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698