Index: third_party/WebKit/LayoutTests/fast/sub-pixel/sub-pixel-border-2-expected.html |
diff --git a/third_party/WebKit/LayoutTests/fast/sub-pixel/sub-pixel-border-2-expected.html b/third_party/WebKit/LayoutTests/fast/sub-pixel/sub-pixel-border-2-expected.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..27818681899216121fd5e103eae5b611eeea01d1 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/fast/sub-pixel/sub-pixel-border-2-expected.html |
@@ -0,0 +1,41 @@ |
+<!DOCTYPE html> |
+<html> |
+ <head> |
+ <meta charset="utf-8"> |
+ <title>Test rendering of sub-pixel borders</title> |
+ <style> |
+ .test { |
+ box-sizing: content-box; |
+ display: inline-block; |
+ margin: 5px; |
+ width: 80px; |
+ height: 80px; |
+ border: 1px solid green; |
+ background: lightgreen; |
+ text-align: center; |
+ line-height: 80px; |
+ } |
+ </style> |
+ </head> |
+ <body> |
+ <div class="test" style="border-width: 1px">0.25px</div> |
+ <div class="test" style="border-width: 1px">0.5px</div> |
+ <div class="test" style="border-width: 1px">0.75px</div> |
+ <div class="test" style="border-width: 1px">1px</div> |
+ <div class="test" style="border-width: 1px; width: 80.5px; height: 80.5px">1.25px</div> |
+ <br> |
+ <div class="test" style="border-width: 2px; width: 79px; height: 79px">1.5px</div> |
+ <div class="test" style="border-width: 2px; width: 79.5px; height: 79.5px">1.75px</div> |
+ <div class="test" id="reference-2" style="border-width: 2px">2px</div> |
+ <div class="test" style="border-width: 2px; width: 80.5px; height: 80.5px">2.25px</div> |
+ <br> |
+ <div class="test" style="border-width: 3px; width: 79px; height: 79px">2.5px</div> |
+ <div class="test" style="border-width: 3px; width: 79.5px; height: 79.5px">2.75px</div> |
+ <div class="test" id="reference-3" style="border-width: 3px">3px</div> |
+ <div class="test" style="border-width: 3px; width: 80.5px; height: 80.5px">3.25px</div> |
+ <p> |
+ Border thickness should be rounded, not floored, with the exception of |
+ values below 1px where it should always round up. |
+ </p> |
+ </body> |
+</html> |