Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 739 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 750 box-sizing: border-box; | 750 box-sizing: border-box; |
| 751 align-items: center; | 751 align-items: center; |
| 752 border: 1px solid; | 752 border: 1px solid; |
| 753 white-space: pre; | 753 white-space: pre; |
| 754 -webkit-rtl-ordering: logical; | 754 -webkit-rtl-ordering: logical; |
| 755 color: black; | 755 color: black; |
| 756 background-color: white; | 756 background-color: white; |
| 757 cursor: default; | 757 cursor: default; |
| 758 } | 758 } |
| 759 | 759 |
| 760 select[size], | 760 select:-internal-list-box { |
| 761 select[multiple], | |
| 762 select[size][multiple] { | |
| 763 -webkit-appearance: listbox; | 761 -webkit-appearance: listbox; |
| 764 align-items: flex-start; | 762 align-items: flex-start; |
| 765 border: 1px inset gray; | 763 border: 1px inset gray; |
| 766 border-radius: initial; | 764 border-radius: initial; |
| 767 overflow-x: hidden; | 765 overflow-x: hidden; |
| 768 overflow-y: scroll; | 766 overflow-y: scroll; |
| 769 vertical-align: text-bottom; | 767 vertical-align: text-bottom; |
| 770 -webkit-user-select: none; | 768 -webkit-user-select: none; |
| 771 white-space: nowrap; | 769 white-space: nowrap; |
| 772 } | 770 } |
| 773 | 771 |
| 774 select[size="0"], | |
| 775 select[size="1"] { | |
| 776 -webkit-appearance: menulist; | |
| 777 align-items: center; | |
| 778 border-width: 1px; | |
| 779 border-style: solid; | |
| 780 border-color: initial; | |
| 781 border-radius: 5px; | |
| 782 overflow-x: initial; | |
| 783 overflow-y: initial; | |
| 784 vertical-align: initial; | |
| 785 -webkit-user-select: initial; | |
| 786 white-space: pre; | |
| 787 } | |
| 788 | |
| 789 optgroup { | 772 optgroup { |
| 790 font-weight: bolder; | 773 font-weight: bolder; |
| 791 display: block; | 774 display: block; |
| 792 } | 775 } |
| 793 | 776 |
| 794 option { | 777 option { |
| 795 font-weight: normal; | 778 font-weight: normal; |
| 796 display: block; | 779 display: block; |
| 797 padding: 0 2px 1px 2px; | 780 padding: 0 2px 1px 2px; |
| 798 white-space: pre; | 781 white-space: pre; |
| 799 min-height: 1.2em; | 782 min-height: 1.2em; |
| 800 } | 783 } |
| 801 | 784 |
| 802 select:focus[size] option:checked, | 785 select:-internal-list-box:focus option:checked { |
| 803 select:focus[multiple] option:checked, | 786 background-color: -internal-active-list-box-selection !important; |
|
tkent
2014/08/07 08:08:58
Does this mean web authors can't specify option:ch
| |
| 804 select:focus[size][multiple] option:checked { | 787 color: -internal-active-list-box-selection-text !important; |
| 805 background-color: -internal-active-list-box-selection; | |
| 806 color: -internal-active-list-box-selection-text; | |
| 807 } | 788 } |
| 808 | 789 |
| 809 select[size] option:checked, | 790 select:-internal-list-box option:checked { |
| 810 select[multiple] option:checked, | 791 background-color: -internal-inactive-list-box-selection !important; |
| 811 select[size][multiple] option:checked { | 792 color: -internal-inactive-list-box-selection-text !important; |
| 812 background-color: -internal-inactive-list-box-selection; | |
| 813 color: -internal-inactive-list-box-selection-text; | |
| 814 } | 793 } |
| 815 | 794 |
| 816 select[size="0"] option:checked, | 795 select:-internal-list-box:disabled option:checked, |
| 817 select[size="1"] option:checked, | 796 select:-internal-list-box option:checked:disabled { |
| 818 select:focus[size="0"] option:checked, | 797 color: gray !important; |
| 819 select:focus[size="1"] option:checked { | |
| 820 background-color: initial; | |
| 821 color: initial; | |
| 822 } | 798 } |
| 823 | 799 |
| 824 select:disabled option:checked, | |
| 825 select:disabled[size] option:checked, | |
| 826 select:disabled[multiple] option:checked, | |
| 827 select:disabled[size][multiple] option:checked, | |
| 828 option:checked:disabled, | |
| 829 select[size] option:checked:disabled, | |
| 830 select[multiple] option:checked:disabled, | |
| 831 select[size][multiple] option:checked:disabled { | |
| 832 color: gray; | |
| 833 } | |
| 834 | 800 |
| 835 output { | 801 output { |
| 836 display: inline; | 802 display: inline; |
| 837 } | 803 } |
| 838 | 804 |
| 839 /* meter */ | 805 /* meter */ |
| 840 | 806 |
| 841 meter { | 807 meter { |
| 842 -webkit-appearance: meter; | 808 -webkit-appearance: meter; |
| 843 box-sizing: border-box; | 809 box-sizing: border-box; |
| (...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1092 @page { | 1058 @page { |
| 1093 /* FIXME: Define the right default values for page properties. */ | 1059 /* FIXME: Define the right default values for page properties. */ |
| 1094 size: auto; | 1060 size: auto; |
| 1095 margin: auto; | 1061 margin: auto; |
| 1096 padding: 0px; | 1062 padding: 0px; |
| 1097 border-width: 0px; | 1063 border-width: 0px; |
| 1098 } | 1064 } |
| 1099 | 1065 |
| 1100 /* noscript is handled internally, as it depends on settings. */ | 1066 /* noscript is handled internally, as it depends on settings. */ |
| 1101 | 1067 |
| OLD | NEW |