2009-03-29 Darin Adler <darin@apple.com>
authordarin@apple.com <darin@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 29 Mar 2009 15:17:35 +0000 (15:17 +0000)
committerdarin@apple.com <darin@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 29 Mar 2009 15:17:35 +0000 (15:17 +0000)
        Bug 12104: Native Slider: When the thumb's height is specified as a percentage, it is not centered properly
        https://bugs.webkit.org/show_bug.cgi?id=12104

        Landed the test case from this bug. The bug was fixed by the fix for bug 24740 below.

        * fast/forms/range-thumb-height-percentage.html: Added.
        * platform/mac/fast/forms/range-thumb-height-percentage-expected.checksum: Added.
        * platform/mac/fast/forms/range-thumb-height-percentage-expected.png: Added.
        * platform/mac/fast/forms/range-thumb-height-percentage-expected.txt: Added.

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

LayoutTests/ChangeLog
LayoutTests/fast/forms/range-thumb-height-percentage.html [new file with mode: 0644]
LayoutTests/platform/mac/fast/forms/range-thumb-height-percentage-expected.checksum [new file with mode: 0644]
LayoutTests/platform/mac/fast/forms/range-thumb-height-percentage-expected.png [new file with mode: 0644]
LayoutTests/platform/mac/fast/forms/range-thumb-height-percentage-expected.txt [new file with mode: 0644]

index c3a0a16..3e3b1d0 100644 (file)
@@ -1,3 +1,15 @@
+2009-03-29  Darin Adler  <darin@apple.com>
+
+        Bug 12104: Native Slider: When the thumb's height is specified as a percentage, it is not centered properly
+        https://bugs.webkit.org/show_bug.cgi?id=12104
+
+        Landed the test case from this bug. The bug was fixed by the fix for bug 24740 below.
+
+        * fast/forms/range-thumb-height-percentage.html: Added.
+        * platform/mac/fast/forms/range-thumb-height-percentage-expected.checksum: Added.
+        * platform/mac/fast/forms/range-thumb-height-percentage-expected.png: Added.
+        * platform/mac/fast/forms/range-thumb-height-percentage-expected.txt: Added.
+
 2009-03-28  Alexey Proskuryakov  <ap@webkit.org>
 
         Reviewed by Darin Adler.
         https://bugs.webkit.org/show_bug.cgi?id=24740
         rdar://problem/6679873
 
-        Bug 12104: Native Slider: When the thumb's height is specified as a percentage, it is not centered properly
-        https://bugs.webkit.org/show_bug.cgi?id=12104
-
         * media/video-display-none-crash-expected.txt: Added.
         * media/video-display-none-crash.html: Added.
 
diff --git a/LayoutTests/fast/forms/range-thumb-height-percentage.html b/LayoutTests/fast/forms/range-thumb-height-percentage.html
new file mode 100644 (file)
index 0000000..fde2750
--- /dev/null
@@ -0,0 +1,6 @@
+<style>
+    input { -webkit-appearance: none; background: silver; height: 20px; width: 200px; }
+    input::-webkit-slider-thumb { -webkit-appearance: none; background: green; width: 10px; height: 50%; }
+</style>
+<p>The slider thumb below has a height specified as 50%. It should be a 10 pixel square.</p>
+<input type="range">
diff --git a/LayoutTests/platform/mac/fast/forms/range-thumb-height-percentage-expected.checksum b/LayoutTests/platform/mac/fast/forms/range-thumb-height-percentage-expected.checksum
new file mode 100644 (file)
index 0000000..041f802
--- /dev/null
@@ -0,0 +1 @@
+9fd5285b5cf77e926c6065f9353f9bb7
\ No newline at end of file
diff --git a/LayoutTests/platform/mac/fast/forms/range-thumb-height-percentage-expected.png b/LayoutTests/platform/mac/fast/forms/range-thumb-height-percentage-expected.png
new file mode 100644 (file)
index 0000000..5153c1b
Binary files /dev/null and b/LayoutTests/platform/mac/fast/forms/range-thumb-height-percentage-expected.png differ
diff --git a/LayoutTests/platform/mac/fast/forms/range-thumb-height-percentage-expected.txt b/LayoutTests/platform/mac/fast/forms/range-thumb-height-percentage-expected.txt
new file mode 100644 (file)
index 0000000..c198ec6
--- /dev/null
@@ -0,0 +1,12 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x18
+        RenderText {#text} at (0,0) size 536x18
+          text run at (0,0) width 536: "The slider thumb below has a height specified as 50%. It should be a 10 pixel square."
+      RenderBlock (anonymous) at (0,34) size 784x24
+        RenderSlider {INPUT} at (2,2) size 200x20 [bgcolor=#C0C0C0]
+          RenderBlock {DIV} at (95,5) size 10x10 [bgcolor=#008000]
+        RenderText {#text} at (0,0) size 0x0