зеркало из https://github.com/mozilla/pjs.git
Apply the quirk that simple selectors of the form ':hover' apply only to links to those of the form '.class:hover' as well. b=169078 r+sr=bzbarsky
This commit is contained in:
Родитель
3d4836da75
Коммит
23fb9bee1a
|
@ -3814,9 +3814,8 @@ static PRBool SelectorMatches(RuleProcessorData &data,
|
|||
else if (IsEventPseudo(pseudoClass->mAtom)) {
|
||||
// check if the element is event-sensitive
|
||||
if (data.mCompatMode == eCompatibility_NavQuirks &&
|
||||
// global selector:
|
||||
!aSelector->mTag && !aSelector->mClassList &&
|
||||
!aSelector->mIDList && !aSelector->mAttrList &&
|
||||
// global selector (but don't check .class):
|
||||
!aSelector->mTag && !aSelector->mIDList && !aSelector->mAttrList &&
|
||||
// :hover or :active
|
||||
(nsCSSPseudoClasses::active == pseudoClass->mAtom ||
|
||||
nsCSSPseudoClasses::hover == pseudoClass->mAtom) &&
|
||||
|
|
|
@ -3814,9 +3814,8 @@ static PRBool SelectorMatches(RuleProcessorData &data,
|
|||
else if (IsEventPseudo(pseudoClass->mAtom)) {
|
||||
// check if the element is event-sensitive
|
||||
if (data.mCompatMode == eCompatibility_NavQuirks &&
|
||||
// global selector:
|
||||
!aSelector->mTag && !aSelector->mClassList &&
|
||||
!aSelector->mIDList && !aSelector->mAttrList &&
|
||||
// global selector (but don't check .class):
|
||||
!aSelector->mTag && !aSelector->mIDList && !aSelector->mAttrList &&
|
||||
// :hover or :active
|
||||
(nsCSSPseudoClasses::active == pseudoClass->mAtom ||
|
||||
nsCSSPseudoClasses::hover == pseudoClass->mAtom) &&
|
||||
|
|
Загрузка…
Ссылка в новой задаче