|
| 1 | +<!DOCTYPE html> |
| 2 | +<!-- |
| 3 | + Copyright 2018 Google Inc. All rights reserved. |
| 4 | +
|
| 5 | + Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | + you may not use this file except in compliance with the License. |
| 7 | + You may obtain a copy of the License at |
| 8 | +
|
| 9 | + https://www.apache.org/licenses/LICENSE-2.0 |
| 10 | +
|
| 11 | + Unless required by applicable law or agreed to in writing, software |
| 12 | + distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | + See the License for the specific language governing permissions and |
| 15 | + limitations under the License |
| 16 | +--> |
| 17 | +<html lang="en"> |
| 18 | +<head> |
| 19 | + <meta charset="utf-8"> |
| 20 | + <title>Issue 3332 - MDC Web Screenshot Test</title> |
| 21 | + <meta name="viewport" content="width=device-width, initial-scale=1"> |
| 22 | + <link rel="stylesheet" href="../../../out/mdc.textfield.css"> |
| 23 | + <link rel="stylesheet" href="../../../out/mdc.typography.css"> |
| 24 | + <link rel="stylesheet" href="../../../out/spec/fixture.css"> |
| 25 | + <link rel="stylesheet" href="../../../out/spec/mdc-textfield/fixture.css"> |
| 26 | +</head> |
| 27 | + |
| 28 | +<body class="test-container mdc-typography"> |
| 29 | +<main class="test-viewport test-viewport--mobile"> |
| 30 | + <div class="test-layout"> |
| 31 | + |
| 32 | + <!--This test sets `text-align: center` on the parent container to assert that the svg outline will render appropriately when focused. --> |
| 33 | + <!-- See https://github.com/material-components/material-components-web/issues/3332 --> |
| 34 | + <div class="test-cell test-cell--issues" style="text-align: center;"> |
| 35 | + <div class="mdc-text-field mdc-text-field--outlined mdc-text-field--focused"> |
| 36 | + <!-- 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. --> |
| 37 | + <input type="text" id="outlined-text-field" class="mdc-text-field__input" value=" "> |
| 38 | + <label for="outlined-text-field" class="mdc-floating-label mdc-floating-label--float-above">Label</label> |
| 39 | + <div class="mdc-notched-outline"> |
| 40 | + <svg> |
| 41 | + <path class="mdc-notched-outline__path"/> |
| 42 | + </svg> |
| 43 | + </div> |
| 44 | + <div class="mdc-notched-outline__idle"></div> |
| 45 | + </div> |
| 46 | + </div> |
| 47 | + |
| 48 | + </div> |
| 49 | +</main> |
| 50 | + |
| 51 | +<!-- Automatically provides/replaces `Promise` if missing or broken. --> |
| 52 | +<script src="https://cdn.jsdelivr.net/npm/es6-promise@4/dist/es6-promise.js"></script> |
| 53 | +<script src="https://cdn.jsdelivr.net/npm/es6-promise@4/dist/es6-promise.auto.js"></script> |
| 54 | +<script src="https://cdnjs.cloudflare.com/ajax/libs/fontfaceobserver/2.0.13/fontfaceobserver.standalone.js"></script> |
| 55 | +<script src="../../../out/material-components-web.js"></script> |
| 56 | +<script src="../../../out/spec/fixture.js"></script> |
| 57 | +<script src="../../../out/spec/mdc-textfield/fixture.js"></script> |
| 58 | +</body> |
| 59 | +</html> |
0 commit comments