Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(202)

Side by Side Diff: LayoutTests/fast/dom/shadow/shadowdom-for-input-button-expected.html

Issue 22852020: Only allow reprojecting shadows between ShadowRoots of the same type (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Delete another test Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <body>
3
4 <p>1. If an input element has a shadow tree containing a &lt;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 &lt;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 &lt;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;">&hearts;</span>Foo suffix</button>
31 <button>prefix <span style="color:red;">&hearts;</span> suffix</button>
32 <button>prefix <span style="color:red;">&hearts;</span>Foo suffix</button>
33 <button>prefix <span style="color:red;">&hearts;</span>Reset suffix</button>
34 <button>prefix <span style="color:red;">&hearts;</span>Foo suffix</button>
35 <button>prefix <span style="color:red;">&hearts;</span>Submit suffix</button>
36 </div>
37
38 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698