LibWeb: Import typo fix from the spec

This commit is contained in:
Psychpsyo (Cameron) 2025-03-19 16:21:19 +01:00 committed by Sam Atkins
parent 5d57723ebf
commit 2f6de5d9ac
Notes: github-actions[bot] 2025-03-19 17:37:51 +00:00

View file

@ -1223,7 +1223,7 @@ GC::Ref<CSS::CSSStyleDeclaration> Window::get_computed_style(DOM::Element& eleme
// 1. Parse pseudoElt as a <pseudo-element-selector>, and let type be the result.
auto type = parse_pseudo_element_selector(CSS::Parser::ParsingParams(associated_document()), pseudo_element.value());
// 2. If type is failure, or is an ::slotted() or ::part() pseudo-element, let obj be null.
// 2. If type is failure, or is a ::slotted() or ::part() pseudo-element, let obj be null.
// FIXME: We can't pass a null element to CSSStyleProperties::create_resolved_style()
if (!type.has_value()) {
}