1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/css-placeholder/css-simple-styling.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,32 @@ 1.4 +<!DOCTYPE html> 1.5 +<html> 1.6 + <!-- 1.7 + This test checks that a few allowed CSS properties have an effect when 1.8 + applied to ::-moz-placeholder. 1.9 + --> 1.10 + <style> 1.11 + /* 1.12 + * We need to set some properties on the <input> because its size will 1.13 + * depend on its font. 1.14 + */ 1.15 + input, textarea { 1.16 + font: -moz-list; 1.17 + font-family: mono; 1.18 + font-style: italic; 1.19 + } 1.20 + 1.21 + :-moz-any(input, textarea)::-moz-placeholder { 1.22 + opacity: 1.0; 1.23 + font: -moz-list; 1.24 + font-family: mono; 1.25 + font-style: italic; 1.26 + color: blue; 1.27 + word-spacing: 5px; 1.28 + text-shadow: 1px 1px 1px red; 1.29 + } 1.30 + </style> 1.31 + <body> 1.32 + <input placeholder='foo bar'> 1.33 + <textarea placeholder='foo bar'></textarea> 1.34 + </body> 1.35 +</html>