File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
Libraries/LibWeb/CSS/Parser Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -877,6 +877,7 @@ RefPtr<StyleValue const> Parser::parse_anchor(TokenStream<ComponentValue>& token
877877 // <anchor()> = anchor( <anchor-name>? && <anchor-side>, <length-percentage>? )
878878
879879 auto transaction = tokens.begin_transaction ();
880+ tokens.discard_whitespace ();
880881 auto const & function_token = tokens.consume_a_token ();
881882 if (!function_token.is_function (" anchor" sv))
882883 return {};
@@ -937,6 +938,7 @@ RefPtr<StyleValue const> Parser::parse_anchor(TokenStream<ComponentValue>& token
937938 if (!anchor_side_value)
938939 return {};
939940
941+ transaction.commit ();
940942 return AnchorStyleValue::create (anchor_name, anchor_side_value.release_nonnull (), fallback_value);
941943}
942944
You can’t perform that action at this time.
0 commit comments