Update src/browser/webapi/css/CSSStyleDeclaration.zig

Co-authored-by: Karl Seguin <karlseguin@users.noreply.github.com>
This commit is contained in:
Pierre Tachoire
2026-02-19 15:29:36 +01:00
committed by GitHub
parent 5be977005e
commit 19fd2b12c0

View File

@@ -154,7 +154,7 @@ fn removePropertyImpl(self: *CSSStyleDeclaration, property_name: []const u8, pag
fn syncStyleAttribute(self: *CSSStyleDeclaration, page: *Page) !void {
const element = self._element orelse return;
const css_text = try self.getCssText(page);
try element.setAttributeSafe(String.wrap("style"), String.wrap(css_text), page);
try element.setAttributeSafe(comptime .wrap("style"), .wrap(css_text), page);
}
pub fn getFloat(self: *const CSSStyleDeclaration, page: *Page) []const u8 {