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

Unified Diff: LayoutTests/fast/sub-pixel/focus-ring-around-sub-pixel-layer.html

Issue 492053002: Use LayoutRect during addFocusRingRects to avoid loss of precision (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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/sub-pixel/focus-ring-around-sub-pixel-layer.html
diff --git a/LayoutTests/fast/sub-pixel/focus-ring-around-sub-pixel-layer.html b/LayoutTests/fast/sub-pixel/focus-ring-around-sub-pixel-layer.html
new file mode 100644
index 0000000000000000000000000000000000000000..8ee54d5621e0a8b04132bce277bf04b20196b55a
--- /dev/null
+++ b/LayoutTests/fast/sub-pixel/focus-ring-around-sub-pixel-layer.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<style>
+.focus {
+ position: absolute;
+ top: 50.5px;
+ left: 10.5px;
+ width: 100.6px;
+ outline: red auto 4px;
+}
+.layer {
+ position: relative;
+ height: 20px;
+}
+</style>
+Tests focus ring around sub-pixel positioned and sized element containing layers.
+The focus ring should be rectangular.
+<div class="focus">
+ Text
+ <div class="layer"></div>
+</div>

Powered by Google App Engine
This is Rietveld 408576698