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

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

Issue 174833002: Move UA style rulesets for <datalist> and input[type=color][list] to html.css (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 months 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
« no previous file with comments | « no previous file | Source/core/rendering/RenderTheme.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 753 matching lines...) Expand 10 before | Expand all | Expand 10 after
764 } 764 }
765 765
766 input[type="button"]:active, input[type="submit"]:active, input[type="reset"]:ac tive, input[type="file"]:active::-webkit-file-upload-button, button:active { 766 input[type="button"]:active, input[type="submit"]:active, input[type="reset"]:ac tive, input[type="file"]:active::-webkit-file-upload-button, button:active {
767 border-style: inset 767 border-style: inset
768 } 768 }
769 769
770 input[type="button"]:active:disabled, input[type="submit"]:active:disabled, inpu t[type="reset"]:active:disabled, input[type="file"]:active:disabled::-webkit-fil e-upload-button, button:active:disabled { 770 input[type="button"]:active:disabled, input[type="submit"]:active:disabled, inpu t[type="reset"]:active:disabled, input[type="file"]:active:disabled::-webkit-fil e-upload-button, button:active:disabled {
771 border-style: outset 771 border-style: outset
772 } 772 }
773 773
774 datalist {
775 display: none
776 }
777
774 area, param { 778 area, param {
775 display: none 779 display: none
776 } 780 }
777 781
778 input[type="checkbox"] { 782 input[type="checkbox"] {
779 -webkit-appearance: checkbox; 783 -webkit-appearance: checkbox;
780 box-sizing: border-box; 784 box-sizing: border-box;
781 } 785 }
782 786
783 input[type="radio"] { 787 input[type="radio"] {
(...skipping 16 matching lines...) Expand all
800 height: 100% 804 height: 100%
801 } 805 }
802 806
803 input[type="color"]::-webkit-color-swatch { 807 input[type="color"]::-webkit-color-swatch {
804 background-color: #000000; 808 background-color: #000000;
805 border: 1px solid #777777; 809 border: 1px solid #777777;
806 flex: 1; 810 flex: 1;
807 -webkit-user-modify: read-only !important; 811 -webkit-user-modify: read-only !important;
808 } 812 }
809 813
814 input[type="color"][list] {
815 -webkit-appearance: menulist;
816 width: 88px;
817 height: 23px
818 }
819
820 input[type="color"][list]::-webkit-color-swatch-wrapper {
821 padding-left: 8px;
822 padding-right: 24px;
823 }
824
825 input[type="color"][list]::-webkit-color-swatch {
826 border-color: #000000;
tkent 2014/02/21 07:33:39 Why we use a border color different from input[typ
keishi 2014/02/25 01:37:02 When we have a list attribute the button looks lik
827 }
828
810 input::-webkit-calendar-picker-indicator { 829 input::-webkit-calendar-picker-indicator {
811 display: inline-block; 830 display: inline-block;
812 width: 0.66em; 831 width: 0.66em;
813 height: 0.66em; 832 height: 0.66em;
814 padding: 0.17em 0.34em; 833 padding: 0.17em 0.34em;
815 -webkit-user-modify: read-only !important; 834 -webkit-user-modify: read-only !important;
816 opacity: 0; 835 opacity: 0;
817 pointer-events: none; 836 pointer-events: none;
818 } 837 }
819 838
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after
1146 @page { 1165 @page {
1147 /* FIXME: Define the right default values for page properties. */ 1166 /* FIXME: Define the right default values for page properties. */
1148 size: auto; 1167 size: auto;
1149 margin: auto; 1168 margin: auto;
1150 padding: 0px; 1169 padding: 0px;
1151 border-width: 0px; 1170 border-width: 0px;
1152 } 1171 }
1153 1172
1154 /* noscript is handled internally, as it depends on settings. */ 1173 /* noscript is handled internally, as it depends on settings. */
1155 1174
OLDNEW
« no previous file with comments | « no previous file | Source/core/rendering/RenderTheme.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698