mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-07 21:59:54 +00:00
WebContent: Expose custom properties to DevTools
ComputedProperties doesn't contain custom properties, at least at the moment. So, we have to iterate them separately.
This commit is contained in:
parent
1ccf37a6ac
commit
b8fa9ac7e7
Notes:
github-actions[bot]
2025-09-26 20:33:04 +00:00
Author: https://github.com/AtkinsSJ
Commit: b8fa9ac7e7
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6311
1 changed files with 6 additions and 0 deletions
|
|
@ -484,6 +484,12 @@ void ConnectionFromClient::inspect_dom_node(u64 page_id, WebView::DOMNodePropert
|
|||
value.to_string(Web::CSS::SerializationMode::Normal));
|
||||
});
|
||||
|
||||
// FIXME: Custom properties are not yet included in ComputedProperties, so add them manually.
|
||||
auto custom_properties = element.custom_properties(pseudo_element);
|
||||
for (auto const& [name, value] : custom_properties) {
|
||||
serialized.set(name, value.value->to_string(Web::CSS::SerializationMode::Normal));
|
||||
}
|
||||
|
||||
return serialized;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue