Move to the double-'::' notation for various pseudo-elements.

Bug 211657, r+sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@144534 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bzbarsky%mit.edu 2003-07-07 21:57:01 +00:00
parent 562c0c2d09
commit 4f63a75a74
21 changed files with 136 additions and 136 deletions

View File

@ -95,7 +95,7 @@ label {
-moz-user-select: all !important; -moz-user-select: all !important;
} }
:-moz-display-comboboxcontrol-frame { ::-moz-display-comboboxcontrol-frame {
-moz-user-select: text !important; -moz-user-select: text !important;
} }

View File

@ -2509,16 +2509,16 @@ nsresult PresShell::SetPrefFocusRules(void)
NS_ENSURE_SUCCESS(result, result); NS_ENSURE_SUCCESS(result, result);
if (focusRingWidth != 1) { if (focusRingWidth != 1) {
// If the focus ring width is different from the default, fix buttons with rings // If the focus ring width is different from the default, fix buttons with rings
strRule.Assign(NS_LITERAL_STRING("button:-moz-focus-inner, input[type=\"reset\"]:-moz-focus-inner,")); strRule.Assign(NS_LITERAL_STRING("button::-moz-focus-inner, input[type=\"reset\"]::-moz-focus-inner,"));
strRule.Append(NS_LITERAL_STRING("input[type=\"button\"]:-moz-focus-inner, ")); strRule.Append(NS_LITERAL_STRING("input[type=\"button\"]::-moz-focus-inner, "));
strRule.Append(NS_LITERAL_STRING("input[type=\"submit\"]:-moz-focus-inner { padding: 1px 2px 1px 2px; border: ")); strRule.Append(NS_LITERAL_STRING("input[type=\"submit\"]::-moz-focus-inner { padding: 1px 2px 1px 2px; border: "));
strRule.AppendInt(focusRingWidth); strRule.AppendInt(focusRingWidth);
strRule.Append(NS_LITERAL_STRING("px dotted transparent !important; } ")); strRule.Append(NS_LITERAL_STRING("px dotted transparent !important; } "));
result = sheet->InsertRule(strRule,0,&index); result = sheet->InsertRule(strRule,0,&index);
NS_ENSURE_SUCCESS(result, result); NS_ENSURE_SUCCESS(result, result);
strRule.Assign(NS_LITERAL_STRING("button:focus:-moz-focus-inner, input[type=\"reset\"]:focus:-moz-focus-inner,")); strRule.Assign(NS_LITERAL_STRING("button:focus::-moz-focus-inner, input[type=\"reset\"]:focus::-moz-focus-inner,"));
strRule.Append(NS_LITERAL_STRING("input[type=\"button\"]:focus:-moz-focus-inner, input[type=\"submit\"]:focus:-moz-focus-inner {")); strRule.Append(NS_LITERAL_STRING("input[type=\"button\"]:focus::-moz-focus-inner, input[type=\"submit\"]:focus::-moz-focus-inner {"));
strRule.Append(NS_LITERAL_STRING("border-color: ButtonText !important; }")); strRule.Append(NS_LITERAL_STRING("border-color: ButtonText !important; }"));
result = sheet->InsertRule(strRule,0,&index); result = sheet->InsertRule(strRule,0,&index);
} }
@ -4825,8 +4825,8 @@ PresShell::SetAnonymousContentFor(nsIContent* aContent, nsISupportsArray* aAnony
oldAnonymousElements->Count(&count); oldAnonymousElements->Count(&count);
while (PRInt32(--count) >= 0) { while (PRInt32(--count) >= 0) {
nsCOMPtr<nsISupports> isupports( getter_AddRefs(oldAnonymousElements->ElementAt(count)) ); nsCOMPtr<nsIContent> content = do_QueryElementAt(oldAnonymousElements,
nsCOMPtr<nsIContent> content( do_QueryInterface(isupports) ); count);
NS_ASSERTION(content != nsnull, "not an nsIContent"); NS_ASSERTION(content != nsnull, "not an nsIContent");
if (! content) if (! content)
continue; continue;
@ -4865,8 +4865,7 @@ ClearDocumentEnumerator(nsHashKey* aKey, void* aData, void* aClosure)
PRUint32 count; PRUint32 count;
anonymousElements->Count(&count); anonymousElements->Count(&count);
while (PRInt32(--count) >= 0) { while (PRInt32(--count) >= 0) {
nsCOMPtr<nsISupports> isupports( getter_AddRefs(anonymousElements->ElementAt(count)) ); nsCOMPtr<nsIContent> content = do_QueryElementAt(anonymousElements, count);
nsCOMPtr<nsIContent> content( do_QueryInterface(isupports) );
NS_ASSERTION(content != nsnull, "not an nsIContent"); NS_ASSERTION(content != nsnull, "not an nsIContent");
if (! content) if (! content)
continue; continue;

View File

@ -159,8 +159,9 @@ input[type="file"] > input[type="button"] {
* The following rules are copied from forms.css, for widgets that aren't yet * The following rules are copied from forms.css, for widgets that aren't yet
* defined in XBL. * defined in XBL.
*/ */
*|*:-moz-fieldset-content { *|*::-moz-fieldset-content {
display: block; display: block;
height: inherit; /* Need this so percentage heights of kids work right */
} }
form { form {
@ -224,7 +225,7 @@ textarea > scrollbar {
cursor: default; cursor: default;
} }
*|*:-moz-singleline-textcontrol-frame { *|*::-moz-singleline-textcontrol-frame {
overflow: hidden; overflow: hidden;
white-space: nowrap; white-space: nowrap;
background-color: inherit; background-color: inherit;
@ -236,7 +237,7 @@ textarea[disabled],
option[disabled], option[disabled],
optgroup[disabled], optgroup[disabled],
select[disabled], select[disabled],
select[disabled]:-moz-display-comboboxcontrol-frame { select[disabled]::-moz-display-comboboxcontrol-frame {
color: GrayText; color: GrayText;
cursor: default; cursor: default;
} }
@ -281,7 +282,7 @@ input[type="file"] > input[type="button"] {
height: inherit; height: inherit;
} }
input[type="file"] > input[type="button"]:-moz-focus-inner input[type="file"] > input[type="button"]::-moz-focus-inner
{ {
padding: 0px 2px 0px 2px; padding: 0px 2px 0px 2px;
border: 1px dotted transparent; border: 1px dotted transparent;

View File

@ -2509,16 +2509,16 @@ nsresult PresShell::SetPrefFocusRules(void)
NS_ENSURE_SUCCESS(result, result); NS_ENSURE_SUCCESS(result, result);
if (focusRingWidth != 1) { if (focusRingWidth != 1) {
// If the focus ring width is different from the default, fix buttons with rings // If the focus ring width is different from the default, fix buttons with rings
strRule.Assign(NS_LITERAL_STRING("button:-moz-focus-inner, input[type=\"reset\"]:-moz-focus-inner,")); strRule.Assign(NS_LITERAL_STRING("button::-moz-focus-inner, input[type=\"reset\"]::-moz-focus-inner,"));
strRule.Append(NS_LITERAL_STRING("input[type=\"button\"]:-moz-focus-inner, ")); strRule.Append(NS_LITERAL_STRING("input[type=\"button\"]::-moz-focus-inner, "));
strRule.Append(NS_LITERAL_STRING("input[type=\"submit\"]:-moz-focus-inner { padding: 1px 2px 1px 2px; border: ")); strRule.Append(NS_LITERAL_STRING("input[type=\"submit\"]::-moz-focus-inner { padding: 1px 2px 1px 2px; border: "));
strRule.AppendInt(focusRingWidth); strRule.AppendInt(focusRingWidth);
strRule.Append(NS_LITERAL_STRING("px dotted transparent !important; } ")); strRule.Append(NS_LITERAL_STRING("px dotted transparent !important; } "));
result = sheet->InsertRule(strRule,0,&index); result = sheet->InsertRule(strRule,0,&index);
NS_ENSURE_SUCCESS(result, result); NS_ENSURE_SUCCESS(result, result);
strRule.Assign(NS_LITERAL_STRING("button:focus:-moz-focus-inner, input[type=\"reset\"]:focus:-moz-focus-inner,")); strRule.Assign(NS_LITERAL_STRING("button:focus::-moz-focus-inner, input[type=\"reset\"]:focus::-moz-focus-inner,"));
strRule.Append(NS_LITERAL_STRING("input[type=\"button\"]:focus:-moz-focus-inner, input[type=\"submit\"]:focus:-moz-focus-inner {")); strRule.Append(NS_LITERAL_STRING("input[type=\"button\"]:focus::-moz-focus-inner, input[type=\"submit\"]:focus::-moz-focus-inner {"));
strRule.Append(NS_LITERAL_STRING("border-color: ButtonText !important; }")); strRule.Append(NS_LITERAL_STRING("border-color: ButtonText !important; }"));
result = sheet->InsertRule(strRule,0,&index); result = sheet->InsertRule(strRule,0,&index);
} }
@ -4825,8 +4825,8 @@ PresShell::SetAnonymousContentFor(nsIContent* aContent, nsISupportsArray* aAnony
oldAnonymousElements->Count(&count); oldAnonymousElements->Count(&count);
while (PRInt32(--count) >= 0) { while (PRInt32(--count) >= 0) {
nsCOMPtr<nsISupports> isupports( getter_AddRefs(oldAnonymousElements->ElementAt(count)) ); nsCOMPtr<nsIContent> content = do_QueryElementAt(oldAnonymousElements,
nsCOMPtr<nsIContent> content( do_QueryInterface(isupports) ); count);
NS_ASSERTION(content != nsnull, "not an nsIContent"); NS_ASSERTION(content != nsnull, "not an nsIContent");
if (! content) if (! content)
continue; continue;
@ -4865,8 +4865,7 @@ ClearDocumentEnumerator(nsHashKey* aKey, void* aData, void* aClosure)
PRUint32 count; PRUint32 count;
anonymousElements->Count(&count); anonymousElements->Count(&count);
while (PRInt32(--count) >= 0) { while (PRInt32(--count) >= 0) {
nsCOMPtr<nsISupports> isupports( getter_AddRefs(anonymousElements->ElementAt(count)) ); nsCOMPtr<nsIContent> content = do_QueryElementAt(anonymousElements, count);
nsCOMPtr<nsIContent> content( do_QueryInterface(isupports) );
NS_ASSERTION(content != nsnull, "not an nsIContent"); NS_ASSERTION(content != nsnull, "not an nsIContent");
if (! content) if (! content)
continue; continue;

View File

@ -42,7 +42,7 @@
@namespace url(http://www.w3.org/1999/xhtml); /* set default namespace to HTML */ @namespace url(http://www.w3.org/1999/xhtml); /* set default namespace to HTML */
@namespace xul url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul); @namespace xul url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);
*|*:-moz-fieldset-content { *|*::-moz-fieldset-content {
display: block; display: block;
height: inherit; /* Need this so percentage heights of kids work right */ height: inherit; /* Need this so percentage heights of kids work right */
} }
@ -119,7 +119,7 @@ textarea > scrollbar {
cursor: default; cursor: default;
} }
*|*:-moz-singleline-textcontrol-frame { *|*::-moz-singleline-textcontrol-frame {
overflow: hidden; overflow: hidden;
white-space: nowrap; white-space: nowrap;
background-color: inherit; background-color: inherit;
@ -179,12 +179,12 @@ select[size] {
-moz-appearance: listbox; -moz-appearance: listbox;
} }
select:-moz-dummy-option { select::-moz-dummy-option {
visibility: hidden; visibility: hidden;
content: "XX"; /* demo 8, edge case test 1 */ content: "XX"; /* demo 8, edge case test 1 */
} }
*|*:-moz-display-comboboxcontrol-frame { *|*::-moz-display-comboboxcontrol-frame {
overflow: hidden; overflow: hidden;
/* This top/bottom padding plus the combobox top/bottom border need to /* This top/bottom padding plus the combobox top/bottom border need to
add up to the top/bottom borderpadding of text inputs and buttons */ add up to the top/bottom borderpadding of text inputs and buttons */
@ -234,7 +234,7 @@ optgroup:before {
content: attr(label); content: attr(label);
} }
*|*:-moz-dropdown-list { *|*::-moz-dropdown-list {
z-index: 2147483647; z-index: 2147483647;
background-color: inherit; background-color: inherit;
-moz-user-select: none; -moz-user-select: none;
@ -380,7 +380,7 @@ input[type="radio"]:hover:active {
border-style: inset !important; border-style: inset !important;
} }
*|*:-moz-radio { *|*::-moz-radio {
width: 4px; width: 4px;
height: 4px; height: 4px;
background-color: -moz-FieldText ! important; background-color: -moz-FieldText ! important;
@ -419,7 +419,7 @@ button {
white-space: normal; white-space: normal;
} }
*|*:-moz-button-content { *|*::-moz-button-content {
display: block; display: block;
text-align: center; text-align: center;
} }
@ -432,20 +432,20 @@ input[type="submit"]:active:hover {
border-style: inset; border-style: inset;
} }
button:-moz-focus-inner, button::-moz-focus-inner,
input[type="reset"]:-moz-focus-inner, input[type="reset"]::-moz-focus-inner,
input[type="button"]:-moz-focus-inner, input[type="button"]::-moz-focus-inner,
input[type="submit"]:-moz-focus-inner, input[type="submit"]::-moz-focus-inner,
input[type="file"] > input[type="button"]:-moz-focus-inner { input[type="file"] > input[type="button"]::-moz-focus-inner {
padding: 0px 2px 0px 2px; padding: 0px 2px 0px 2px;
border: 1px dotted transparent; border: 1px dotted transparent;
} }
button:focus:-moz-focus-inner, button:focus::-moz-focus-inner,
input[type="reset"]:focus:-moz-focus-inner, input[type="reset"]:focus::-moz-focus-inner,
input[type="button"]:focus:-moz-focus-inner, input[type="button"]:focus::-moz-focus-inner,
input[type="submit"]:focus:-moz-focus-inner, input[type="submit"]:focus::-moz-focus-inner,
input[type="file"] > input[type="button"]:focus:-moz-focus-inner { input[type="file"] > input[type="button"]:focus::-moz-focus-inner {
border-color: ButtonText; border-color: ButtonText;
} }

View File

@ -120,11 +120,11 @@ input[type="submit"]:active:hover {
padding: 0; padding: 0;
} }
button:-moz-focus-inner, button::-moz-focus-inner,
input[type="reset"]:-moz-focus-inner, input[type="reset"]::-moz-focus-inner,
input[type="button"]:-moz-focus-inner, input[type="button"]::-moz-focus-inner,
input[type="submit"]:-moz-focus-inner, input[type="submit"]::-moz-focus-inner,
input[type="file"] > input[type="button"]:-moz-focus-inner { input[type="file"] > input[type="button"]::-moz-focus-inner {
padding: 0; padding: 0;
border: 0; border: 0;
} }

View File

@ -89,7 +89,7 @@ li > ol:first-node {
/* Quirk: prevent bullet from resizing with the list item /* Quirk: prevent bullet from resizing with the list item
* see bug 97351 * see bug 97351
*/ */
li:-moz-list-bullet { li::-moz-list-bullet {
font-size: -moz-initial; font-size: -moz-initial;
} }

View File

@ -46,12 +46,12 @@
/* Tables */ /* Tables */
*|*:-moz-table { *|*::-moz-table {
display: table !important; display: table !important;
-moz-box-sizing: border-box; /* XXX do we really want this? */ -moz-box-sizing: border-box; /* XXX do we really want this? */
} }
*|*:-moz-table-outer { *|*::-moz-table-outer {
display: table !important; display: table !important;
margin: 0; margin: 0;
padding: 0; padding: 0;
@ -76,34 +76,35 @@
-moz-opacity: inherit; -moz-opacity: inherit;
page-break-before: inherit; page-break-before: inherit;
page-break-after: inherit; page-break-after: inherit;
table-layout: inherit;
} }
*|*:-moz-table-row { *|*::-moz-table-row {
display: table-row !important; display: table-row !important;
} }
/* The :-moz-table-column pseudo-element is for extra columns at the end /* The ::-moz-table-column pseudo-element is for extra columns at the end
of a table. */ of a table. */
*|*:-moz-table-column { *|*::-moz-table-column {
display: table-column !important; display: table-column !important;
} }
*|*:-moz-table-column-group { *|*::-moz-table-column-group {
display: table-column-group !important; display: table-column-group !important;
} }
*|*:-moz-table-row-group { *|*::-moz-table-row-group {
display: table-row-group !important; display: table-row-group !important;
} }
*|*:-moz-table-cell { *|*::-moz-table-cell {
display: table-cell !important; display: table-cell !important;
white-space: inherit; white-space: inherit;
} }
/* Lists */ /* Lists */
*|*:-moz-list-bullet, *|*:-moz-list-number { *|*::-moz-list-bullet, *|*::-moz-list-number {
display: inline; display: inline;
vertical-align: baseline; vertical-align: baseline;
margin-right: 8px; margin-right: 8px;
@ -126,20 +127,20 @@
/* Miscellaneous */ /* Miscellaneous */
*|*:-moz-anonymous-block, *|*:-moz-cell-content { *|*::-moz-anonymous-block, *|*::-moz-cell-content {
display: block !important; display: block !important;
} }
*|*:-moz-viewport, *|*:-moz-viewport-scroll, *|*:-moz-canvas { *|*::-moz-viewport, *|*::-moz-viewport-scroll, *|*::-moz-canvas {
display: block !important; display: block !important;
background-color: inherit; background-color: inherit;
} }
*|*:-moz-viewport-scroll { *|*::-moz-viewport-scroll {
overflow: auto; overflow: auto;
} }
*|*:-moz-scrolled-content { *|*::-moz-scrolled-content {
/* e.g., text inputs, select boxes */ /* e.g., text inputs, select boxes */
background: inherit; background: inherit;
padding: inherit; padding: inherit;
@ -147,20 +148,20 @@
-moz-box-orient: inherit; -moz-box-orient: inherit;
} }
*|*:-moz-page, *|*:-moz-page-sequence { *|*::-moz-page, *|*::-moz-page-sequence {
display: block !important; display: block !important;
background: transparent; background: transparent;
} }
*|*:-moz-pagecontent { *|*::-moz-pagecontent {
display: block !important; display: block !important;
} }
*|*:-moz-pagebreak { *|*::-moz-pagebreak {
display: -moz-page-break !important; display: -moz-page-break !important;
} }
*|*:-moz-anonymous-positioned-block { *|*::-moz-anonymous-positioned-block {
display: block !important; display: block !important;
position: relative; position: relative;
top: inherit; top: inherit;
@ -172,7 +173,7 @@
-moz-opacity: inherit; -moz-opacity: inherit;
} }
*|*:-moz-gc-wrapper-block { *|*::-moz-gc-wrapper-block {
display: block !important; display: block !important;
} }
@ -184,7 +185,7 @@
cursor: default !important; cursor: default !important;
} }
*|*:-moz-viewport, *|*:-moz-viewport-scroll, *|*:-moz-canvas { *|*::-moz-viewport, *|*::-moz-viewport-scroll, *|*::-moz-canvas {
background-color: #737373 !important; background-color: #737373 !important;
} }

View File

@ -159,8 +159,9 @@ input[type="file"] > input[type="button"] {
* The following rules are copied from forms.css, for widgets that aren't yet * The following rules are copied from forms.css, for widgets that aren't yet
* defined in XBL. * defined in XBL.
*/ */
*|*:-moz-fieldset-content { *|*::-moz-fieldset-content {
display: block; display: block;
height: inherit; /* Need this so percentage heights of kids work right */
} }
form { form {
@ -224,7 +225,7 @@ textarea > scrollbar {
cursor: default; cursor: default;
} }
*|*:-moz-singleline-textcontrol-frame { *|*::-moz-singleline-textcontrol-frame {
overflow: hidden; overflow: hidden;
white-space: nowrap; white-space: nowrap;
background-color: inherit; background-color: inherit;
@ -236,7 +237,7 @@ textarea[disabled],
option[disabled], option[disabled],
optgroup[disabled], optgroup[disabled],
select[disabled], select[disabled],
select[disabled]:-moz-display-comboboxcontrol-frame { select[disabled]::-moz-display-comboboxcontrol-frame {
color: GrayText; color: GrayText;
cursor: default; cursor: default;
} }
@ -281,7 +282,7 @@ input[type="file"] > input[type="button"] {
height: inherit; height: inherit;
} }
input[type="file"] > input[type="button"]:-moz-focus-inner input[type="file"] > input[type="button"]::-moz-focus-inner
{ {
padding: 0px 2px 0px 2px; padding: 0px 2px 0px 2px;
border: 1px dotted transparent; border: 1px dotted transparent;

View File

@ -409,12 +409,11 @@ nsTableOuterFrame::GetParentStyleContextFrame(nsIPresContext* aPresContext,
// data by giving the table frame the style context associated with // data by giving the table frame the style context associated with
// the table content node and creating a style context for the outer // the table content node and creating a style context for the outer
// frame that is a *child* of the table frame's style context, // frame that is a *child* of the table frame's style context,
// matching the :table-outer (should be :-moz-table-outer!) // matching the ::-moz-table-outer pseudo-element. html.css has a
// pseudo-element. html.css has a rule that causes that // rule that causes that pseudo-element (and thus the outer table)
// pseudo-element (and thus the outer table) to inherit *some* style // to inherit *some* style properties from the table frame. The
// properties from the table frame. The children of the table inherit // children of the table inherit directly from the inner table, and
// directly from the inner table, and the outer table's style context // the outer table's style context is a leaf.
// is a leaf.
if (!mInnerTableFrame) { if (!mInnerTableFrame) {
*aProviderFrame = this; *aProviderFrame = this;

View File

@ -3,13 +3,13 @@
<HEAD> <HEAD>
<TITLE></TITLE> <TITLE></TITLE>
<STYLE> <STYLE>
*:focus:-moz-display-comboboxcontrol-frame { *:focus::-moz-display-comboboxcontrol-frame {
background-color: #FFCC99 !important; background-color: #FFCC99 !important;
} }
</STYLE> </STYLE>
</HEAD> </HEAD>
<BODY> <BODY>
<H3>Very strange effect when using *:focus:-moz-display-comboboxcontrol-frame</H3> <H3>Very strange effect when using *:focus::-moz-display-comboboxcontrol-frame</H3>
<P>Move the pointer into and out of the table</P> <P>Move the pointer into and out of the table</P>
<P>Move the pointer over the controls in the second table and compare. The only difference between both tables is, that the first one has "align=left"</P> <P>Move the pointer over the controls in the second table and compare. The only difference between both tables is, that the first one has "align=left"</P>
<TABLE border align="left"> <TABLE border align="left">

View File

@ -42,7 +42,7 @@
@namespace url(http://www.w3.org/1999/xhtml); /* set default namespace to HTML */ @namespace url(http://www.w3.org/1999/xhtml); /* set default namespace to HTML */
@namespace xul url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul); @namespace xul url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);
*|*:-moz-fieldset-content { *|*::-moz-fieldset-content {
display: block; display: block;
height: inherit; /* Need this so percentage heights of kids work right */ height: inherit; /* Need this so percentage heights of kids work right */
} }
@ -119,7 +119,7 @@ textarea > scrollbar {
cursor: default; cursor: default;
} }
*|*:-moz-singleline-textcontrol-frame { *|*::-moz-singleline-textcontrol-frame {
overflow: hidden; overflow: hidden;
white-space: nowrap; white-space: nowrap;
background-color: inherit; background-color: inherit;
@ -179,12 +179,12 @@ select[size] {
-moz-appearance: listbox; -moz-appearance: listbox;
} }
select:-moz-dummy-option { select::-moz-dummy-option {
visibility: hidden; visibility: hidden;
content: "XX"; /* demo 8, edge case test 1 */ content: "XX"; /* demo 8, edge case test 1 */
} }
*|*:-moz-display-comboboxcontrol-frame { *|*::-moz-display-comboboxcontrol-frame {
overflow: hidden; overflow: hidden;
/* This top/bottom padding plus the combobox top/bottom border need to /* This top/bottom padding plus the combobox top/bottom border need to
add up to the top/bottom borderpadding of text inputs and buttons */ add up to the top/bottom borderpadding of text inputs and buttons */
@ -234,7 +234,7 @@ optgroup:before {
content: attr(label); content: attr(label);
} }
*|*:-moz-dropdown-list { *|*::-moz-dropdown-list {
z-index: 2147483647; z-index: 2147483647;
background-color: inherit; background-color: inherit;
-moz-user-select: none; -moz-user-select: none;
@ -380,7 +380,7 @@ input[type="radio"]:hover:active {
border-style: inset !important; border-style: inset !important;
} }
*|*:-moz-radio { *|*::-moz-radio {
width: 4px; width: 4px;
height: 4px; height: 4px;
background-color: -moz-FieldText ! important; background-color: -moz-FieldText ! important;
@ -419,7 +419,7 @@ button {
white-space: normal; white-space: normal;
} }
*|*:-moz-button-content { *|*::-moz-button-content {
display: block; display: block;
text-align: center; text-align: center;
} }
@ -432,20 +432,20 @@ input[type="submit"]:active:hover {
border-style: inset; border-style: inset;
} }
button:-moz-focus-inner, button::-moz-focus-inner,
input[type="reset"]:-moz-focus-inner, input[type="reset"]::-moz-focus-inner,
input[type="button"]:-moz-focus-inner, input[type="button"]::-moz-focus-inner,
input[type="submit"]:-moz-focus-inner, input[type="submit"]::-moz-focus-inner,
input[type="file"] > input[type="button"]:-moz-focus-inner { input[type="file"] > input[type="button"]::-moz-focus-inner {
padding: 0px 2px 0px 2px; padding: 0px 2px 0px 2px;
border: 1px dotted transparent; border: 1px dotted transparent;
} }
button:focus:-moz-focus-inner, button:focus::-moz-focus-inner,
input[type="reset"]:focus:-moz-focus-inner, input[type="reset"]:focus::-moz-focus-inner,
input[type="button"]:focus:-moz-focus-inner, input[type="button"]:focus::-moz-focus-inner,
input[type="submit"]:focus:-moz-focus-inner, input[type="submit"]:focus::-moz-focus-inner,
input[type="file"] > input[type="button"]:focus:-moz-focus-inner { input[type="file"] > input[type="button"]:focus::-moz-focus-inner {
border-color: ButtonText; border-color: ButtonText;
} }

View File

@ -89,7 +89,7 @@ li > ol:first-node {
/* Quirk: prevent bullet from resizing with the list item /* Quirk: prevent bullet from resizing with the list item
* see bug 97351 * see bug 97351
*/ */
li:-moz-list-bullet { li::-moz-list-bullet {
font-size: -moz-initial; font-size: -moz-initial;
} }

View File

@ -46,12 +46,12 @@
/* Tables */ /* Tables */
*|*:-moz-table { *|*::-moz-table {
display: table !important; display: table !important;
-moz-box-sizing: border-box; /* XXX do we really want this? */ -moz-box-sizing: border-box; /* XXX do we really want this? */
} }
*|*:-moz-table-outer { *|*::-moz-table-outer {
display: table !important; display: table !important;
margin: 0; margin: 0;
padding: 0; padding: 0;
@ -76,34 +76,35 @@
-moz-opacity: inherit; -moz-opacity: inherit;
page-break-before: inherit; page-break-before: inherit;
page-break-after: inherit; page-break-after: inherit;
table-layout: inherit;
} }
*|*:-moz-table-row { *|*::-moz-table-row {
display: table-row !important; display: table-row !important;
} }
/* The :-moz-table-column pseudo-element is for extra columns at the end /* The ::-moz-table-column pseudo-element is for extra columns at the end
of a table. */ of a table. */
*|*:-moz-table-column { *|*::-moz-table-column {
display: table-column !important; display: table-column !important;
} }
*|*:-moz-table-column-group { *|*::-moz-table-column-group {
display: table-column-group !important; display: table-column-group !important;
} }
*|*:-moz-table-row-group { *|*::-moz-table-row-group {
display: table-row-group !important; display: table-row-group !important;
} }
*|*:-moz-table-cell { *|*::-moz-table-cell {
display: table-cell !important; display: table-cell !important;
white-space: inherit; white-space: inherit;
} }
/* Lists */ /* Lists */
*|*:-moz-list-bullet, *|*:-moz-list-number { *|*::-moz-list-bullet, *|*::-moz-list-number {
display: inline; display: inline;
vertical-align: baseline; vertical-align: baseline;
margin-right: 8px; margin-right: 8px;
@ -126,20 +127,20 @@
/* Miscellaneous */ /* Miscellaneous */
*|*:-moz-anonymous-block, *|*:-moz-cell-content { *|*::-moz-anonymous-block, *|*::-moz-cell-content {
display: block !important; display: block !important;
} }
*|*:-moz-viewport, *|*:-moz-viewport-scroll, *|*:-moz-canvas { *|*::-moz-viewport, *|*::-moz-viewport-scroll, *|*::-moz-canvas {
display: block !important; display: block !important;
background-color: inherit; background-color: inherit;
} }
*|*:-moz-viewport-scroll { *|*::-moz-viewport-scroll {
overflow: auto; overflow: auto;
} }
*|*:-moz-scrolled-content { *|*::-moz-scrolled-content {
/* e.g., text inputs, select boxes */ /* e.g., text inputs, select boxes */
background: inherit; background: inherit;
padding: inherit; padding: inherit;
@ -147,20 +148,20 @@
-moz-box-orient: inherit; -moz-box-orient: inherit;
} }
*|*:-moz-page, *|*:-moz-page-sequence { *|*::-moz-page, *|*::-moz-page-sequence {
display: block !important; display: block !important;
background: transparent; background: transparent;
} }
*|*:-moz-pagecontent { *|*::-moz-pagecontent {
display: block !important; display: block !important;
} }
*|*:-moz-pagebreak { *|*::-moz-pagebreak {
display: -moz-page-break !important; display: -moz-page-break !important;
} }
*|*:-moz-anonymous-positioned-block { *|*::-moz-anonymous-positioned-block {
display: block !important; display: block !important;
position: relative; position: relative;
top: inherit; top: inherit;
@ -172,7 +173,7 @@
-moz-opacity: inherit; -moz-opacity: inherit;
} }
*|*:-moz-gc-wrapper-block { *|*::-moz-gc-wrapper-block {
display: block !important; display: block !important;
} }
@ -184,7 +185,7 @@
cursor: default !important; cursor: default !important;
} }
*|*:-moz-viewport, *|*:-moz-viewport-scroll, *|*:-moz-canvas { *|*::-moz-viewport, *|*::-moz-viewport-scroll, *|*::-moz-canvas {
background-color: #737373 !important; background-color: #737373 !important;
} }

View File

@ -409,12 +409,11 @@ nsTableOuterFrame::GetParentStyleContextFrame(nsIPresContext* aPresContext,
// data by giving the table frame the style context associated with // data by giving the table frame the style context associated with
// the table content node and creating a style context for the outer // the table content node and creating a style context for the outer
// frame that is a *child* of the table frame's style context, // frame that is a *child* of the table frame's style context,
// matching the :table-outer (should be :-moz-table-outer!) // matching the ::-moz-table-outer pseudo-element. html.css has a
// pseudo-element. html.css has a rule that causes that // rule that causes that pseudo-element (and thus the outer table)
// pseudo-element (and thus the outer table) to inherit *some* style // to inherit *some* style properties from the table frame. The
// properties from the table frame. The children of the table inherit // children of the table inherit directly from the inner table, and
// directly from the inner table, and the outer table's style context // the outer table's style context is a leaf.
// is a leaf.
if (!mInnerTableFrame) { if (!mInnerTableFrame) {
*aProviderFrame = this; *aProviderFrame = this;

View File

@ -16,7 +16,7 @@ input[type="radio"] {
background-color:white; background-color:white;
} }
:-moz-radio { ::-moz-radio {
-moz-border-radius:1px; -moz-border-radius:1px;
border: 2px solid black; border: 2px solid black;
} }
@ -62,7 +62,7 @@ select[size="1"] option:checked {
color: white; color: white;
} }
:-moz-dropdown-list { ::-moz-dropdown-list {
border: 1px solid black; border: 1px solid black;
background-color:white; background-color:white;
} }

View File

@ -28,7 +28,7 @@ select {
background-color:rgb(200, 200, 200); background-color:rgb(200, 200, 200);
} }
:-moz-dropdown-list { ::-moz-dropdown-list {
border-color:black; border-color:black;
background-color:rgb(200, 200, 200); background-color:rgb(200, 200, 200);
} }

View File

@ -33,7 +33,7 @@ select {
background-color:rgb(200, 200, 200); background-color:rgb(200, 200, 200);
} }
:-moz-dropdown-list { ::-moz-dropdown-list {
border-color:black; border-color:black;
background-color:rgb(200, 200, 200); background-color:rgb(200, 200, 200);
} }

View File

@ -16,7 +16,7 @@ input[type="radio"] {
-moz-border-radius:0; -moz-border-radius:0;
} }
:-moz-radio { ::-moz-radio {
width:8px; width:8px;
width:8px; width:8px;
background-color:yellow; background-color:yellow;
@ -47,7 +47,7 @@ select {
background-color:#0000cc; background-color:#0000cc;
} }
:-moz-dropdown-list { ::-moz-dropdown-list {
background-color:#0000cc; background-color:#0000cc;
border:4px inset green; border:4px inset green;
} }

View File

@ -36,7 +36,7 @@ input[type=radio]:hover {
border : 2px solid black; border : 2px solid black;
} }
:-moz-radio { ::-moz-radio {
background-color:black; background-color:black;
width:6px; width:6px;
height:6px; height:6px;
@ -78,7 +78,7 @@ input[type="button"][disabled]:active {
padding: 1px; padding: 1px;
} }
input[type="button"]:-moz-focus-inner { input[type="button"]::-moz-focus-inner {
padding-left : 2px; padding-left : 2px;
padding-right : 2px; padding-right : 2px;
padding-top : 1px; padding-top : 1px;
@ -86,7 +86,7 @@ input[type="button"]:-moz-focus-inner {
margin: 0px; margin: 0px;
} }
input[type="button"]:focus:-moz-focus-inner { input[type="button"]:focus::-moz-focus-inner {
padding-left : 1px; padding-left : 1px;
padding-right : 1px; padding-right : 1px;
padding-top : 0px; padding-top : 0px;
@ -137,7 +137,7 @@ button[disabled]:active {
padding: 1px; padding: 1px;
} }
button:-moz-focus-inner { button::-moz-focus-inner {
padding-left : 2px; padding-left : 2px;
padding-right : 2px; padding-right : 2px;
padding-top : 1px; padding-top : 1px;
@ -145,7 +145,7 @@ button:-moz-focus-inner {
margin: 0px; margin: 0px;
} }
button:focus:-moz-focus-inner { button:focus::-moz-focus-inner {
padding-left : 1px; padding-left : 1px;
padding-right : 1px; padding-right : 1px;
padding-top : 0px; padding-top : 0px;
@ -155,7 +155,7 @@ button:focus:-moz-focus-inner {
border : 1px dotted black; border : 1px dotted black;
} }
:-moz-dropdown-list { ::-moz-dropdown-list {
border-color:black; border-color:black;
-moz-border-radius:4px; -moz-border-radius:4px;
background-color:rgb(200, 200, 200); background-color:rgb(200, 200, 200);

View File

@ -110,19 +110,19 @@ titledbutton[pseudoclass~="active"]:-moz-outline {
border : 1px solid black; border : 1px solid black;
} }
titledbutton:-moz-focus-inner { titledbutton::-moz-focus-inner {
} }
titledbutton:-moz-focus-outer { titledbutton::-moz-focus-outer {
} }
titledbutton[pseudoclass~="focus"] { titledbutton[pseudoclass~="focus"] {
} }
titledbutton[pseudoclass~="focus"]:-moz-focus-inner { titledbutton[pseudoclass~="focus"]::-moz-focus-inner {
} }
titledbutton[pseudoclass~="focus"]:-moz-focus-outer { titledbutton[pseudoclass~="focus"]::-moz-focus-outer {
} }
titledbutton[pseudoclass~="disabled"] { titledbutton[pseudoclass~="disabled"] {