FranklinDM
82fa9fb80b
Issue #2137 - Part 1: Modify :not() selector to accept a complex selector list
2023-03-12 07:09:00 +08:00
FranklinDM
edc45f6849
Issue #1593 - Follow-up: Fix :host selector matching
...
Previously, we would match `:host` if:
(a) we don't have any arguments and our parent is the shadow root, or;
(b) if any of the arguments match, then reject if we don't have a containing shadow
Revised, we would match `:host` if:
(Preconditions) The element must have a shadow root, the selector must not have any feature selectors, and it is not blocked from matching `:host` (e.g. .matches outside of the shadow root context)
(a) The selector does not have any arguments, or;
(b) It matches any of its arguments in the functional part of the pseudo-class
With this, we now pass these tests that were previously failing:
http://wpt.live/css/css-scoping/css-scoping-shadow-host-rule.html
http://wpt.live/css/css-scoping/host-descendant-002.html
http://wpt.live/css/css-scoping/host-multiple-001.html
Improved (1 less red box):
http://wpt.live/css/css-scoping/css-scoping-shadow-host-namespace.html
2023-02-27 11:03:50 +08:00
FranklinDM
83484a34f5
Issue #2078 - Follow-up: aPreventComplexSelectors should be passed
2023-02-23 21:15:12 +08:00
FranklinDM
0391e8ab09
Issue #1593 - Follow-up: Copy mIsRelevantLink value over rather than calling IsLink
...
Calling IsLink ignores whatever state we have for aTreeMatchContext and will trigger an assertion if aTreeMatchContext.mForStyling is false. This also adds a comment about what that line effectively does.
2023-02-22 07:07:21 +08:00
FranklinDM
9bebb3a61a
Issue #1593 - Follow-up: :host() should not automatically match if we have a non-empty selector list
2023-02-22 07:07:01 +08:00
FranklinDM
1c1473166f
Issue #2078 - Part 4: Unify selector list matching
...
This should allow pseudo-classes that accept selector lists to properly handle complex selectors. `:visited` is also matched inside selector lists.
A previous iteration of this commit had incorrect matching behavior when called from `RestrictedSelectorListMatches`.
2023-02-22 07:05:44 +08:00
FranklinDM
14e8922dca
Issue #2078 - Part 3: Rename nsCSSRuleProcessor::SelectorListMatches to RestrictedSelectorListMatches
...
This is in preparation for merging the logic of RestrictedSelectorListMatches and AnySelectorInArgListMatches.
2023-02-22 07:05:25 +08:00
FranklinDM
0648ec64bb
Issue #2078 - Part 2: Rename nsPseudoClassList->u.mSelectors to mSelectorList
...
This makes it clear that we're accessing a selector list (nsCSSSelectorList), which is different from the selectors (nsCSSSelector) contained inside a selector list. Previously, both were confusingly referred to as mSelectors.
2023-02-22 07:05:08 +08:00
FranklinDM
453b715ef6
Issue #2078 - Part 1: Update CSS rule processor to handle :is() and :where() CSS pseudo-classes
...
This modifies selector list parsing to accommodate being "forgiving". Aliases for the :is selector's former names were also included. Note that the older and prefixed variant `-moz-any` remains unforgiving.
2023-02-22 07:04:49 +08:00
Jeremy Andrews
9bf01d6708
Issue #1593 - Part 4: Make :host pass DOM parsing test and basic specificity tests.
2022-04-21 21:52:56 +08:00
Jeremy Andrews
c373707516
Issue #1593 - Part 3: Add selector logic for :host and :host-context.
2022-04-21 21:52:52 +08:00
Jeremy Andrews
7472bc02be
Issue #1593 - Part 1: Import William Chen's patches w/o selector implementation, fixed up.
2022-04-21 21:52:40 +08:00
roytam1
ecdf4bfb29
Revert "Issue #3024 - First pass support for :host and :host-context"
...
This reverts commit 4cc56c2cb6 .
2022-04-21 21:51:52 +08:00
Matt A. Tobin
4cc56c2cb6
Issue #3024 - First pass support for :host and :host-context
2022-03-22 22:57:05 +08:00
SpockMan02
2d708bf86c
Undo Mozilla Bug 1302937; Reinstate -moz-mac-lion-theme media query
2019-02-16 00:06:39 +08:00
wolfbeast
8aa201ff06
Add -moz-windows-accent-color-is-dark
...
#31 point 4
2019-02-15 23:29:12 +08:00
wolfbeast
6a03b3bc1a
Add @media(-moz-windows-accent-color-applies)
...
#31 point 3
2019-02-15 23:29:05 +08:00
roytam1
dcd9973243
import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo
2018-01-19 03:59:58 +08:00