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

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: Update touchadjustment/search-cancel.html 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;
460 pointer-events: none;
461 }
462
463 input[type="search"]:enabled:read-write:-webkit-any(:focus,:hover)::-webkit-sear ch-cancel-button {
464 opacity: 1;
465 pointer-events: auto;
459 } 466 }
460 467
461 input[type="search"]::-webkit-search-decoration { 468 input[type="search"]::-webkit-search-decoration {
462 -webkit-appearance: searchfield-decoration; 469 -webkit-appearance: searchfield-decoration;
463 display: block; 470 display: block;
464 flex: none; 471 flex: none;
465 -webkit-user-modify: read-only !important; 472 -webkit-user-modify: read-only !important;
466 -webkit-align-self: flex-start; 473 -webkit-align-self: flex-start;
467 margin: auto 0; 474 margin: auto 0;
468 } 475 }
(...skipping 655 matching lines...) Expand 10 before | Expand all | Expand 10 after
1124 @page { 1131 @page {
1125 /* FIXME: Define the right default values for page properties. */ 1132 /* FIXME: Define the right default values for page properties. */
1126 size: auto; 1133 size: auto;
1127 margin: auto; 1134 margin: auto;
1128 padding: 0px; 1135 padding: 0px;
1129 border-width: 0px; 1136 border-width: 0px;
1130 } 1137 }
1131 1138
1132 /* noscript is handled internally, as it depends on settings. */ 1139 /* noscript is handled internally, as it depends on settings. */
1133 1140
OLDNEW
« no previous file with comments | « LayoutTests/touchadjustment/search-cancel.html ('k') | Source/core/html/forms/SearchInputType.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698