1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/css-placeholder/css-background.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,23 @@ 1.4 +<!DOCTYPE html> 1.5 +<html> 1.6 + <!-- 1.7 + This test checks that setting a background on a ::-moz-placeholder works. 1.8 + However, given that it is not possible to do an actualy equality check, we 1.9 + have te check that setting a background doesn't produce the same result 1.10 + as not setting it. 1.11 + --> 1.12 + <style> 1.13 + :-moz-any(input, textarea).color::-moz-placeholder { 1.14 + background-color: blue; 1.15 + } 1.16 + :-moz-any(input, textarea).gradient::-moz-placeholder { 1.17 + background: linear-gradient(to right, blue, white, red); 1.18 + } 1.19 + </style> 1.20 + <body> 1.21 + <input class="color" placeholder='foo'> 1.22 + <textarea class="color" placeholder='foo'></textarea> 1.23 + <input class="gradient" placeholder='foo'> 1.24 + <textarea class="gradient" placeholder='foo'></textarea> 1.25 + </body> 1.26 +</html>