Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: ae311f82a32c766b6cc28a4761a7a6e9a153bca9
      
https://github.com/WebKit/WebKit/commit/ae311f82a32c766b6cc28a4761a7a6e9a153bca9
  Author: Matthieu Dubet <[email protected]>
  Date:   2025-01-27 (Mon, 27 Jan 2025)

  Changed paths:
    A 
LayoutTests/imported/w3c/web-platform-tests/css/css-nesting/nested-error-recovery-expected.txt
    A 
LayoutTests/imported/w3c/web-platform-tests/css/css-nesting/nested-error-recovery.html
    M Source/WebCore/css/parser/CSSParserImpl.cpp

  Log Message:
  -----------
  [CSS] Fix error recovery of invalid content in block
https://bugs.webkit.org/show_bug.cgi?id=285114
rdar://142187930

Reviewed by Antti Koivisto.

https://drafts.csswg.org/css-syntax/#block-contents

While parsing invalid content inside a block,
we use qualified rule error recovery.
For the more specific case that the block is a <declaration-list>,
we use the "consume until semicolon" error recovery.

* 
LayoutTests/imported/w3c/web-platform-tests/css/css-nesting/nested-error-recovery-expected.txt:
 Added.
* 
LayoutTests/imported/w3c/web-platform-tests/css/css-nesting/nested-error-recovery.html:
 Added.
* Source/WebCore/css/parser/CSSParserImpl.cpp:
(WebCore::CSSParserImpl::consumeBlockContent):

Canonical link: https://commits.webkit.org/289429@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to