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

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     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