1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/css-placeholder/css-restrictions.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,24 @@ 1.4 +<!DOCTYPE html> 1.5 +<html> 1.6 + <style> 1.7 + :-moz-any(input, textarea)::-moz-placeholder { 1.8 + visibility: hidden; 1.9 + padding: 20px; 1.10 + float: right; 1.11 + overflow: visible; 1.12 + white-space: pre; 1.13 + 1.14 + /* 1.15 + * This list could be endless given that all non-whitelisted properties 1.16 + * are restricted. 1.17 + */ 1.18 + } 1.19 + </style> 1.20 + <body> 1.21 + <input placeholder='foo'> 1.22 + <textarea placeholder='foo'></textarea> 1.23 + <!-- for overflow and white-space --> 1.24 + <input placeholder='this is a quitelongetextforasmallelement'> 1.25 + <textarea placeholder='this is a quitelongetextforasmallelement'></textarea> 1.26 + </body> 1.27 +</html>