Index: LayoutTests/fast/css/placeholder-shown-basics.html |
diff --git a/LayoutTests/fast/css/placeholder-shown-basics.html b/LayoutTests/fast/css/placeholder-shown-basics.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..050a2c49cdb1cd4045119daffd6ca58d6799b783 |
--- /dev/null |
+++ b/LayoutTests/fast/css/placeholder-shown-basics.html |
@@ -0,0 +1,112 @@ |
+<!DOCTYPE html> |
+<html> |
+<head> |
esprehn
2015/08/21 10:18:10
leave out html, head and body
ramya.v
2015/08/25 10:24:45
Done.
|
+ <style> |
+ input, textarea { |
+ height: 8px; |
+ } |
+ :placeholder-shown { |
+ background-color: green; |
+ } |
+ </style> |
+</head> |
+<body> |
+ <p>This test checks how various input elements are styled when :placeholder-shown is applied.</p> |
+ <div> |
+ <textarea></textarea> |
+ <textarea placeholder></textarea> |
+ <textarea placeholder="WebKit"></textarea> |
alancutter (OOO until 2018)
2015/08/20 23:36:45
s/WebKit/Placeholder text/
ramya.v
2015/08/25 10:24:45
Done.
|
+ <textarea placeholder="WebKit">Foobar</textarea> |
+ </div> |
+ <div> |
+ <input> |
+ <input placeholder> |
+ <input placeholder="WebKit"> |
+ <input placeholder="WebKit" value="Foobar"> |
+ </div> |
+ <div> |
+ <input type=""> |
+ <input type="" placeholder> |
+ <input type="" placeholder="WebKit"> |
+ <input type="" placeholder="WebKit" value="Foobar"> |
+ </div> |
+ <div> |
+ <input type="hidden"> |
+ <input type="hidden" placeholder> |
+ <input type="hidden" placeholder="WebKit"> |
+ <input type="hidden" placeholder="WebKit" value="Foobar"> |
+ </div> |
+ <div> |
+ <input type="text"> |
+ <input type="text" placeholder> |
+ <input type="text" placeholder="WebKit"> |
+ <input type="text" placeholder="WebKit" value="Foobar"> |
+ </div> |
+ <div> |
+ <input type="tel"> |
+ <input type="tel" placeholder> |
+ <input type="tel" placeholder="WebKit"> |
+ <input type="tel" placeholder="WebKit" value="Foobar"> |
+ </div> |
+ <div> |
+ <input type="url"> |
+ <input type="url" placeholder> |
+ <input type="url" placeholder="WebKit"> |
+ <input type="url" placeholder="WebKit" value="Foobar"> |
+ </div> |
+ <div> |
+ <input type="email"> |
+ <input type="email" placeholder> |
+ <input type="email" placeholder="WebKit"> |
+ <input type="email" placeholder="WebKit" value="Foobar"> |
+ </div> |
+ <div> |
+ <input type="password"> |
+ <input type="password" placeholder> |
+ <input type="password" placeholder="WebKit"> |
+ <input type="password" placeholder="WebKit" value="Foobar"> |
+ </div> |
+ <div> |
+ <input type="datetime"> |
+ <input type="datetime" placeholder> |
+ <input type="datetime" placeholder="WebKit"> |
+ <input type="datetime" placeholder="WebKit" value="Foobar"> |
+ </div> |
+ <div> |
+ <input type="number"> |
+ <input type="number" placeholder> |
+ <input type="number" placeholder="WebKit"> |
+ <input type="number" placeholder="WebKit" value="0"> |
+ </div> |
+ <div> |
+ <input type="range"> |
+ <input type="range" placeholder> |
+ <input type="range" placeholder="WebKit"> |
+ <input type="range" placeholder="WebKit" value="1"> |
+ </div> |
+ <div> |
+ <input type="checkbox"> |
+ <input type="checkbox" placeholder> |
+ <input type="checkbox" placeholder="WebKit"> |
+ <input type="checkbox" placeholder="WebKit" value="Foobar"> |
+ </div> |
+ <div> |
+ <input type="radio"> |
+ <input type="radio" placeholder> |
+ <input type="radio" placeholder="WebKit"> |
+ <input type="radio" placeholder="WebKit" value="Foobar"> |
+ </div> |
+ <div> |
+ <input type="submit"> |
+ <input type="submit" placeholder> |
+ <input type="submit" placeholder="WebKit"> |
+ <input type="submit" placeholder="WebKit" value="Foobar"> |
+ </div> |
+ <div> |
+ <input type="color"> |
+ <input type="color" placeholder> |
+ <input type="color" placeholder="WebKit"> |
+ <input type="color" placeholder="WebKit" value="Foobar"> |
+ </div> |
+</body> |
+</html> |