Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(461)

Side by Side Diff: Source/core/css/html.css

Issue 100823012: Show delete button in input[type=search] only if the field is editable and focused/hovered. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * The default style sheet used to render HTML. 2 * The default style sheet used to render HTML.
3 * 3 *
4 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) 4 * Copyright (C) 2000 Lars Knoll (knoll@kde.org)
5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved. 5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 438 matching lines...) Expand 10 before | Expand all | Expand 10 after
449 -webkit-user-modify: read-only !important; 449 -webkit-user-modify: read-only !important;
450 -webkit-margin-start: 2px; 450 -webkit-margin-start: 2px;
451 } 451 }
452 452
453 input[type="search"]::-webkit-search-cancel-button { 453 input[type="search"]::-webkit-search-cancel-button {
454 -webkit-appearance: searchfield-cancel-button; 454 -webkit-appearance: searchfield-cancel-button;
455 display: block; 455 display: block;
456 flex: none; 456 flex: none;
457 -webkit-user-modify: read-only !important; 457 -webkit-user-modify: read-only !important;
458 -webkit-margin-start: 1px; 458 -webkit-margin-start: 1px;
459 opacity: 0;
keishi 2013/12/09 06:24:49 I think this should be "visibility: hidden". "opac
tkent 2013/12/09 06:45:18 Oh, touch devices.. You're right. We don't have
460 }
461
462 input[type="search"]:enabled:read-write:-webkit-any(:focus,:hover)::-webkit-sear ch-cancel-button {
463 opacity: 1;
459 } 464 }
460 465
461 input[type="search"]::-webkit-search-decoration { 466 input[type="search"]::-webkit-search-decoration {
462 -webkit-appearance: searchfield-decoration; 467 -webkit-appearance: searchfield-decoration;
463 display: block; 468 display: block;
464 flex: none; 469 flex: none;
465 -webkit-user-modify: read-only !important; 470 -webkit-user-modify: read-only !important;
466 -webkit-align-self: flex-start; 471 -webkit-align-self: flex-start;
467 margin: auto 0; 472 margin: auto 0;
468 } 473 }
(...skipping 655 matching lines...) Expand 10 before | Expand all | Expand 10 after
1124 @page { 1129 @page {
1125 /* FIXME: Define the right default values for page properties. */ 1130 /* FIXME: Define the right default values for page properties. */
1126 size: auto; 1131 size: auto;
1127 margin: auto; 1132 margin: auto;
1128 padding: 0px; 1133 padding: 0px;
1129 border-width: 0px; 1134 border-width: 0px;
1130 } 1135 }
1131 1136
1132 /* noscript is handled internally, as it depends on settings. */ 1137 /* noscript is handled internally, as it depends on settings. */
1133 1138
OLDNEW
« no previous file with comments | « LayoutTests/fast/forms/search/search-appearance-basic.html ('k') | Source/core/html/forms/SearchInputType.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698