layout/reftests/css-placeholder/css-simple-styling.html

Thu, 15 Jan 2015 21:03:48 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 21:03:48 +0100
branch
TOR_BUG_9701
changeset 11
deefc01c0e14
permissions
-rw-r--r--

Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)

     1 <!DOCTYPE html>
     2 <html>
     3   <!--
     4     This test checks that a few allowed CSS properties have an effect when
     5     applied to ::-moz-placeholder.
     6   -->
     7   <style>
     8     /*
     9      * We need to set some properties on the <input> because its size will
    10      * depend on its font.
    11      */
    12     input, textarea {
    13       font: -moz-list;
    14       font-family: mono;
    15       font-style: italic;
    16     }
    18     :-moz-any(input, textarea)::-moz-placeholder {
    19       opacity: 1.0;
    20       font: -moz-list;
    21       font-family: mono;
    22       font-style: italic;
    23       color: blue;
    24       word-spacing: 5px;
    25       text-shadow: 1px 1px 1px red;
    26     }
    27   </style>
    28   <body>
    29     <input placeholder='foo bar'>
    30     <textarea placeholder='foo bar'></textarea>
    31   </body>
    32 </html>

mercurial