1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:18:11 +00:00

LibWeb: Use serialize_a_url() to serialize @import url(...)

This commit is contained in:
Sam Atkins 2023-12-01 16:44:35 +00:00 committed by Andreas Kling
parent fbfb70f81a
commit 9c1c7720c5

View file

@ -65,10 +65,7 @@ String CSSImportRule::serialized() const
builder.append("@import "sv);
// 2. The result of performing serialize a URL on the rules location.
// FIXME: Look into the correctness of this serialization
builder.append("url("sv);
builder.append(m_url.to_deprecated_string());
builder.append(')');
serialize_a_url(builder, MUST(m_url.to_string()));
// FIXME: 3. If the rules associated media list is not empty, a single SPACE (U+0020) followed by the result of performing serialize a media query list on the media list.