mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-03-22 04:34:44 +00:00
Update src/browser/webapi/css/CSSStyleDeclaration.zig
Co-authored-by: Karl Seguin <karlseguin@users.noreply.github.com>
This commit is contained in:
@@ -43,7 +43,7 @@ pub fn init(element: ?*Element, is_computed: bool, page: *Page) !*CSSStyleDeclar
|
||||
// added ones. Computed styles have no inline attribute to parse.
|
||||
if (!is_computed) {
|
||||
if (element) |el| {
|
||||
if (el.getAttributeSafe(String.wrap("style"))) |attr_value| {
|
||||
if (el.getAttributeSafe(comptime .wrap("style"))) |attr_value| {
|
||||
var it = CssParser.parseDeclarationsList(attr_value);
|
||||
while (it.next()) |declaration| {
|
||||
const priority: ?[]const u8 = if (declaration.important) "important" else null;
|
||||
|
||||
Reference in New Issue
Block a user