mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:27:35 +00:00
LibWeb: Make CSSConditionRule.conditionText
read-only
Previously @media rule conditions could be updated by assigning to `conditionText`. This change aligns our implementation with the CSSOM specification, which says `CSSConditionRule.conditionText` should be read-only.
This commit is contained in:
parent
b08fd1b9ae
commit
4646a87eba
8 changed files with 29 additions and 15 deletions
|
@ -35,12 +35,6 @@ String CSSSupportsRule::condition_text() const
|
|||
return m_supports->to_string();
|
||||
}
|
||||
|
||||
void CSSSupportsRule::set_condition_text(String const& text)
|
||||
{
|
||||
if (auto new_supports = parse_css_supports(Parser::ParsingContext { realm() }, text))
|
||||
m_supports = new_supports.release_nonnull();
|
||||
}
|
||||
|
||||
// https://www.w3.org/TR/cssom-1/#serialize-a-css-rule
|
||||
String CSSSupportsRule::serialized() const
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue