mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Make CSSConditionRule's conditionText readonly (#30768)
As per https://github.com/w3c/csswg-drafts/issues/6819 This will be needed for https://phabricator.services.mozilla.com/D179060 The test was created by Mozilla, but was not correctly synced into WPT.
This commit is contained in:
parent
604d785bad
commit
b5bd416f7c
8 changed files with 36 additions and 98 deletions
|
@ -50,15 +50,4 @@ impl CSSConditionRuleMethods for CSSConditionRule {
|
|||
unreachable!()
|
||||
}
|
||||
}
|
||||
|
||||
/// <https://drafts.csswg.org/css-conditional-3/#dom-cssconditionrule-conditiontext>
|
||||
fn SetConditionText(&self, text: DOMString) {
|
||||
if let Some(rule) = self.downcast::<CSSMediaRule>() {
|
||||
rule.set_condition_text(text)
|
||||
} else if let Some(rule) = self.downcast::<CSSSupportsRule>() {
|
||||
rule.set_condition_text(text)
|
||||
} else {
|
||||
unreachable!()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue