Francis Dominic Fajardo
2026586ce1
Issue #2835 - Follow-up: Guard against import rules with no attached style sheet
2025-08-04 21:33:14 +08:00
Francis Dominic Fajardo
37230e7b21
Issue #2835 - Part 2: Implement processing of import rules based on order of appearance
2025-07-29 10:08:01 +08:00
Francis Dominic Fajardo
a922ec0823
Issue #2828 – Part 10: Clean up cascade layer constructor
...
This also renames mIsWeak to mIsStrong. Cascade layers are weak by default and there's no point in always setting this to true.
2025-07-25 20:52:35 +08:00
Francis Dominic Fajardo
1655a5a4a9
Issue #2828 - Part 9: Rename CascadeEnumData to CascadeLayer
2025-07-25 20:52:08 +08:00
Francis Dominic Fajardo
3605630f4e
Issue #2828 - Part 8: Extract RuleProcessorGroup (formerly ResolvedRuleCascades) into separate file
...
The struct no longer holds rule cascades since part 5 anyway, and extracting it to a separate file allows it to be reused in the future.
2025-07-25 20:51:45 +08:00
Francis Dominic Fajardo
e05d4d8306
Issue #2828 - Part 5: Implement child rule processors
2025-07-25 20:50:57 +08:00
Francis Dominic Fajardo
aab9cdf9bd
Issue #2828 - Part 4: Move cache key storage to ResolvedRuleCascades
2025-07-25 20:47:31 +08:00
Francis Dominic Fajardo
03f29e75ec
Issue #2828 - Part 3: Refactor selector matching and rule cascade data into separate files/classes
2025-07-25 20:47:06 +08:00
Francis Dominic Fajardo
7b51aa7ca1
Issue #2828 - Part 2: Collect and hold rule cascade data per cascade layer
2025-07-25 20:14:14 +08:00
Martok
77728935ef
Issue #2078 - Follow-up: Don't try to resolve ancestor link elements when matching for Has*DependentStyle
2025-01-23 09:38:58 +08:00
Moonchild
7b6e3a2d4a
Issue #2653 - Part 1: Initial cleanup of AppId and isolated mozbrowser.
...
This removes a lot of the plumbing for having the platform embed itself
through IPC which was required for B2G running the browser as both
shell and browser application.
2024-11-21 21:01:27 +08:00
FranklinDM
9630698d31
Issue #2486 - Part 2: Implement parser support for layer block and layer statements
...
This does not deal with layer specificity.
2024-07-18 22:31:34 +08:00
FranklinDM
3d917c9965
Issue #2250 - Part 2: Ignore the ancestor filter assertion if rule matching is restricted or if the current element is under a shadow host
...
This only affects debug builds.
2023-05-24 09:02:22 +08:00
FranklinDM
1c2dd6aee0
Issue #2250 - Part 1: Return early if the element being tested for is likely an ancestor and does not have an assigned slot
2023-05-24 09:02:07 +08:00
Moonchild
2f117eecaa
Issue #1656 - Remove more vim control lines.
...
Vim control lines were re-introduced or not entirely cleaned up.
This nukes them again.
Removing from embedding, extensions, gfx, hal, ipc, layout, mailnews,
media and memory. More to come.
2023-05-05 22:57:19 +08:00
FranklinDM
f169940742
Issue #2135 - Don't discard event state mask when matching ::slotted() or :host arguments
...
This should fix issues with selectors like :host(:hover) that continue to be matched although the cursor is no longer hovering over those elements.
2023-03-24 23:32:36 +08:00
FranklinDM
4cd0de04d0
Issue #1592 - Part 8: Test the assigned slot for type/class/ID/attribute instead of the slottable when matching ::slotted()
2023-03-24 09:12:35 +08:00
FranklinDM
19226fd560
Issue #1592 - Part 7: Slottables cannot be matched from the outer tree.
2023-03-24 09:12:15 +08:00
FranklinDM
8d2533ad70
Issue #1592 - Part 5: Use flattened element tree when looking for a parent while matching ::slotted()
2023-03-24 09:11:26 +08:00
FranklinDM
518c41fd7a
Issue #1592 - Part 4: Walk ::slotted()-containing rules for slottables
...
- Check against all selector parts and not the leftmost selector only for ::slotted()
- Walk rules for ::slotted() regardless if the shadow root is opened/closed
- Ensure that ::slotted() rules are walked in the right order
- Fix ::slotted inheritance from topmost shadow root
2023-03-24 09:11:07 +08:00
FranklinDM
92b31dd255
Issue #1592 - Part 3: Ensure only tree-abiding pseudo-elements will follow ::slotted()
2023-03-24 09:10:42 +08:00
FranklinDM
77ad970db6
Issue #1592 - Part 2: Parse ::slotted() pseudo-element as if it were a pseudo-class
...
- Block slot elements from being matched by ::slotted
- Ensure ::slotted() is serialized as a pseudo-element
- Add pref to control whether the pseudo-class is enabled
2023-03-24 09:07:36 +08:00
FranklinDM
7374ca6716
Issue #1593 - Follow-up: Fix :host matching from inside the shadow tree
...
Previously, we'd match :host despite the element having a different shadow root from the one that we currently have. Also, there's a test where :host should be blocked from matching if it is a descendant of an explicit universal selector.
2023-03-23 09:02:47 +08:00
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