mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:57: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
|
@ -42,11 +42,6 @@ String CSSMediaRule::condition_text() const
|
|||
return m_media->media_text();
|
||||
}
|
||||
|
||||
void CSSMediaRule::set_condition_text(String const& text)
|
||||
{
|
||||
m_media->set_media_text(text);
|
||||
}
|
||||
|
||||
// https://www.w3.org/TR/cssom-1/#serialize-a-css-rule
|
||||
String CSSMediaRule::serialized() const
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue