OLD | NEW |
| (Empty) |
1 <!DOCTYPE html> | |
2 <body> | |
3 | |
4 <p>1. If an input element has a shadow tree containing a <shadow> element, it
should get the value text of the input element.</p> | |
5 <div id="shadow"> | |
6 <input value="[Foo]" type="button"><input type="button" value="[]"> | |
7 <input value="[Foo]" type="reset"><input type="reset" value="[Reset]"> | |
8 <input value="[Foo]" type="submit"><input type="submit" value="[Submit]"> | |
9 </div> | |
10 | |
11 <p>2. If an author shadow tree contains no <shadow> element, the button value
should not be rendered.</p> | |
12 <div id="no-shadow"> | |
13 <input type="button" value="[]"><input type="button" value="[]"> | |
14 <input type="reset" value="[]"><input type="reset" value="[]"> | |
15 <input type="submit" value="[]"><input type="submit" value="[]"> | |
16 </div> | |
17 | |
18 <p>3. If an author shadow tree contains only <shadow> element, the button sho
uld be rendered as it didn't have shadow trees.</p> | |
19 <div id="only-shadow"> | |
20 <input type="button" value="Foo"><input type="button"> | |
21 <input type="reset" value="Foo"><input type="reset"> | |
22 <input type="submit" value="Foo"><input type="submit"> | |
23 </div> | |
24 | |
25 <p>4. Complex shadow tree.</p> | |
26 <div id="complex-shadow"> | |
27 <style> | |
28 button { -webkit-appearance: push-button; } | |
29 </style> | |
30 <button>prefix <span style="color:red;">♥</span>Foo suffix</button> | |
31 <button>prefix <span style="color:red;">♥</span> suffix</button> | |
32 <button>prefix <span style="color:red;">♥</span>Foo suffix</button> | |
33 <button>prefix <span style="color:red;">♥</span>Reset suffix</button> | |
34 <button>prefix <span style="color:red;">♥</span>Foo suffix</button> | |
35 <button>prefix <span style="color:red;">♥</span>Submit suffix</button> | |
36 </div> | |
37 | |
38 </body> | |
OLD | NEW |