layout/reftests/css-placeholder/css-background.html

Thu, 15 Jan 2015 15:55:04 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 15:55:04 +0100
branch
TOR_BUG_9701
changeset 9
a63d609f5ebe
permissions
-rw-r--r--

Back out 97036ab72558 which inappropriately compared turds to third parties.

     1 <!DOCTYPE html>
     2 <html>
     3   <!--
     4     This test checks that setting a background on a ::-moz-placeholder works.
     5     However, given that it is not possible to do an actualy equality check, we
     6     have te check that setting a background doesn't produce the same result
     7     as not setting it.
     8   -->
     9   <style>
    10     :-moz-any(input, textarea).color::-moz-placeholder {
    11       background-color: blue;
    12     }
    13     :-moz-any(input, textarea).gradient::-moz-placeholder {
    14       background: linear-gradient(to right, blue, white, red);
    15     }
    16   </style>
    17   <body>
    18     <input class="color" placeholder='foo'>
    19     <textarea class="color" placeholder='foo'></textarea>
    20     <input class="gradient" placeholder='foo'>
    21     <textarea class="gradient" placeholder='foo'></textarea>
    22   </body>
    23 </html>

mercurial