Skip to content

Commit a2a376c

Browse files
author
pstanciu
committed
Revert "Bug 1956140 - Implement active-view-transition pseudo class. r=view-transitions-reviewers,emilio" for causing WPT failures @pseudo-classes-after-part.html
This reverts commit 2d996f3.
1 parent 582bc70 commit a2a376c

8 files changed

Lines changed: 4 additions & 20 deletions

File tree

dom/base/Document.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18494,12 +18494,6 @@ already_AddRefed<ViewTransition> Document::StartViewTransition(
1849418494
// Step 6: Set document's active view transition to transition.
1849518495
mActiveViewTransition = transition;
1849618496

18497-
// Enable :active-view-transition to allow associated styles to
18498-
// be applied during the view transition.
18499-
if (auto* root = this->GetRootElement()) {
18500-
root->AddStates(ElementState::ACTIVE_VIEW_TRANSITION);
18501-
}
18502-
1850318497
EnsureViewTransitionOperationsHappen();
1850418498

1850518499
// Step 7: return transition

dom/base/rust/lib.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,6 @@ bitflags! {
137137
/// https://drafts.csswg.org/selectors-4/#open-state
138138
/// Match whether an openable element is currently open
139139
const OPEN = 1u64 << 49;
140-
/// For :active-view-transition.
141-
/// <https://www.w3.org/TR/css-view-transitions-2/#the-active-view-transition-pseudo>
142-
const ACTIVE_VIEW_TRANSITION = 1u64 << 50;
143140

144141
/// Some convenience unions.
145142
const DIR_STATES = Self::LTR.bits() | Self::RTL.bits();

dom/view-transitions/ViewTransition.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1474,12 +1474,6 @@ void ViewTransition::ClearActiveTransition(bool aIsDocumentHidden) {
14741474
MOZ_ASSERT(mDocument);
14751475
MOZ_ASSERT(mDocument->GetActiveViewTransition() == this);
14761476

1477-
// Ensure that any styles associated with :active-view-transition no longer
1478-
// apply.
1479-
if (auto* root = mDocument->GetRootElement()) {
1480-
root->RemoveStates(ElementState::ACTIVE_VIEW_TRANSITION);
1481-
}
1482-
14831477
// Step 3
14841478
ClearNamedElements();
14851479

servo/components/style/gecko/non_ts_pseudo_class_list.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ macro_rules! apply_non_ts_list {
4545
("focus-visible", FocusVisible, FOCUSRING, _),
4646
("has-slotted", HasSlotted, HAS_SLOTTED, _),
4747
("hover", Hover, HOVER, _),
48-
("active-view-transition", ActiveViewTransition, ACTIVE_VIEW_TRANSITION, _),
4948
("-moz-drag-over", MozDragOver, DRAGOVER, _),
5049
("target", Target, URLTARGET, _),
5150
("indeterminate", Indeterminate, INDETERMINATE, _),

servo/components/style/gecko/selector_parser.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,9 +157,6 @@ impl NonTSPseudoClass {
157157
if matches!(*self, Self::HasSlotted) {
158158
return static_prefs::pref!("layout.css.has-slotted-selector.enabled");
159159
}
160-
if matches!(*self, Self::ActiveViewTransition) {
161-
return static_prefs::pref!("dom.viewTransitions.enabled");
162-
}
163160
!self.has_any_flag(NonTSPseudoClassFlag::PSEUDO_CLASS_ENABLED_IN_UA_SHEETS_AND_CHROME)
164161
}
165162

servo/components/style/gecko/wrapper.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2098,7 +2098,6 @@ impl<'le> ::selectors::Element for GeckoElement<'le> {
20982098
NonTSPseudoClass::HasSlotted |
20992099
NonTSPseudoClass::MozAutofillPreview |
21002100
NonTSPseudoClass::MozRevealed |
2101-
NonTSPseudoClass::ActiveViewTransition |
21022101
NonTSPseudoClass::MozValueEmpty => self.state().intersects(pseudo_class.state_flag()),
21032102
NonTSPseudoClass::Dir(ref dir) => self.state().intersects(dir.element_state()),
21042103
NonTSPseudoClass::AnyLink => self.is_link(),
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[active-view-transition-on-non-root.html]
2+
expected: [PASS, FAIL]
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[active-view-transition-pseudo-class-match.html]
2+
expected: FAIL

0 commit comments

Comments
 (0)