"Fossies" - the Fresh Open Source Software Archive

Member "material-components-web-4.0.0/test/screenshot/spec/mdc-textfield/issues/3332.html" (2 Nov 2019, 4167 Bytes) of package /linux/www/material-components-web-4.0.0.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) HTML source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 <!DOCTYPE html>
    2 <!--
    3   Copyright 2018 Google Inc.
    4 
    5   Permission is hereby granted, free of charge, to any person obtaining a copy
    6   of this software and associated documentation files (the "Software"), to deal
    7   in the Software without restriction, including without limitation the rights
    8   to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
    9   copies of the Software, and to permit persons to whom the Software is
   10   furnished to do so, subject to the following conditions:
   11 
   12   The above copyright notice and this permission notice shall be included in
   13   all copies or substantial portions of the Software.
   14 
   15   THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
   16   IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
   17   FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
   18   AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
   19   LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
   20   OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
   21   THE SOFTWARE.
   22 -->
   23 <html lang="en">
   24   <head>
   25     <meta charset="utf-8">
   26     <title>Issue 3332 - MDC Web Screenshot Test</title>
   27     <meta name="viewport" content="width=device-width, initial-scale=1">
   28     <link rel="stylesheet" href="../../../out/mdc.textfield.css">
   29     <link rel="stylesheet" href="../../../out/mdc.typography.css">
   30     <link rel="stylesheet" href="../../../out/spec/fixture.css">
   31     <link rel="stylesheet" href="../../../out/spec/mdc-textfield/fixture.css">
   32   </head>
   33 
   34   <body class="test-container test-container--edge-fonts">
   35     <main class="test-viewport test-viewport--mobile">
   36       <div class="test-layout">
   37 
   38         <!-- This test sets `text-align: center` on the parent container to assert that the svg outline will render appropriately when focused. -->
   39         <!-- See https://github.com/material-components/material-components-web/issues/3332 -->
   40         <div class="test-cell test-cell--textfield" style="text-align: center;">
   41           <div class="mdc-text-field mdc-text-field--outlined mdc-text-field--focused test-text-field-issues-3332">
   42             <!-- The single space value is to overcome an issue where the component does not draw the SVG path when created unless there is a value. -->
   43             <input type="text" id="outlined-text-field" class="mdc-text-field__input" value=" ">
   44             <div class="mdc-notched-outline mdc-notched-outline--notched">
   45               <div class="mdc-notched-outline__leading"></div>
   46               <div class="mdc-notched-outline__notch">
   47                 <label for="outlined-text-field" class="mdc-floating-label mdc-floating-label--float-above test-font--redact-all">Label</label>
   48               </div>
   49               <div class="mdc-notched-outline__trailing"></div>
   50             </div>
   51           </div>
   52         </div>
   53 
   54         <div class="test-cell test-cell--textarea" style="text-align: center;">
   55           <div class="mdc-text-field mdc-text-field--textarea">
   56             <textarea id="textarea" class="mdc-text-field__input" rows="2" cols="40"></textarea>
   57             <div class="mdc-notched-outline">
   58               <div class="mdc-notched-outline__leading"></div>
   59               <div class="mdc-notched-outline__notch">
   60                 <label for="textarea" class="mdc-floating-label test-font--redact-all">Textarea Label</label>
   61               </div>
   62               <div class="mdc-notched-outline__trailing"></div>
   63             </div>
   64           </div>
   65         </div>
   66       </div>
   67     </main>
   68 
   69     <!-- Automatically provides/replaces `Promise` if missing or broken. -->
   70     <script src="https://cdn.jsdelivr.net/npm/es6-promise@4/dist/es6-promise.js"></script>
   71     <script src="https://cdn.jsdelivr.net/npm/es6-promise@4/dist/es6-promise.auto.js"></script>
   72     <script src="https://cdnjs.cloudflare.com/ajax/libs/fontfaceobserver/2.0.13/fontfaceobserver.standalone.js"></script>
   73     <script src="../../../out/material-components-web.js"></script>
   74     <script src="../../../out/spec/fixture.js"></script>
   75     <script src="../../../out/spec/mdc-textfield/fixture.js"></script>
   76   </body>
   77 </html>