Subpixel rendering: Add hidpi fieldset/legend test case to check fieldset's cliprect...
authorzalan@apple.com <zalan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 3 May 2014 17:36:45 +0000 (17:36 +0000)
committerzalan@apple.com <zalan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 3 May 2014 17:36:45 +0000 (17:36 +0000)
https://bugs.webkit.org/show_bug.cgi?id=132524

Reviewed by Simon Fraser.

This is the hidpi test for r168221. (Fieldset legend has a horizontal line
through, when the fieldset is painted on odd device pixel position.)

* fast/forms/hidpi-fieldset-on-subpixel-position-when-legend-is-present-expected.html: Added.
* fast/forms/hidpi-fieldset-on-subpixel-position-when-legend-is-present.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@168223 268f45cc-cd09-0410-ab3c-d52691b4dbfc

LayoutTests/ChangeLog
LayoutTests/fast/forms/hidpi-fieldset-on-subpixel-position-when-legend-is-present-expected.html [new file with mode: 0644]
LayoutTests/fast/forms/hidpi-fieldset-on-subpixel-position-when-legend-is-present.html [new file with mode: 0644]

index 43781cc..d7dc718 100644 (file)
@@ -1,3 +1,16 @@
+2014-05-03  Zalan Bujtas  <zalan@apple.com>
+
+        Subpixel rendering: Add hidpi fieldset/legend test case to check fieldset's cliprect when legend text is present.
+        https://bugs.webkit.org/show_bug.cgi?id=132524
+
+        Reviewed by Simon Fraser.
+
+        This is the hidpi test for r168221. (Fieldset legend has a horizontal line 
+        through, when the fieldset is painted on odd device pixel position.)
+
+        * fast/forms/hidpi-fieldset-on-subpixel-position-when-legend-is-present-expected.html: Added.
+        * fast/forms/hidpi-fieldset-on-subpixel-position-when-legend-is-present.html: Added.
+
 2014-05-02  Zalan Bujtas  <zalan@apple.com>
 
         [Mac] Unreviewed gardening.
diff --git a/LayoutTests/fast/forms/hidpi-fieldset-on-subpixel-position-when-legend-is-present-expected.html b/LayoutTests/fast/forms/hidpi-fieldset-on-subpixel-position-when-legend-is-present-expected.html
new file mode 100644 (file)
index 0000000..113cb90
--- /dev/null
@@ -0,0 +1,27 @@
+<!DOCTYPE html>
+<head>
+  <title>This tests that the fieldset's border gets properly clipped out when legend text is present</title>
+  <style>
+    fieldset {
+      position: fixed;
+      top: 8.5px;
+      left: 0px;
+      width: 25px;
+      height: 8px;
+    }
+    
+    div {
+      position: fixed;
+      top: 0px;
+      left: 16px;
+      width: 25px;
+      height: 20px;
+      background-color: white;
+    }
+  </style>
+</head>
+<body>
+  <fieldset></fieldset>
+  <div></div>
+</body>
+</html>
diff --git a/LayoutTests/fast/forms/hidpi-fieldset-on-subpixel-position-when-legend-is-present.html b/LayoutTests/fast/forms/hidpi-fieldset-on-subpixel-position-when-legend-is-present.html
new file mode 100644 (file)
index 0000000..097f867
--- /dev/null
@@ -0,0 +1,31 @@
+<!DOCTYPE html>
+<head>
+  <title>This tests that the fieldset's border gets properly clipped out when legend text is present</title>
+  <style>
+    fieldset {
+      position: fixed;
+      top: 0.5px;
+      left: 0px;
+    }
+    
+    legend {
+      font-size: 16px;
+    }
+    
+    div {
+      position: fixed;
+      top: 0px;
+      left: 18px;
+      width: 21px;
+      height: 20px;
+      background-color: white;
+    }
+  </style>
+</head>
+<body>
+  <fieldset>
+    <legend align="left">foo</legend>
+  </fieldset>
+  <div></div>
+</body>
+</html>