Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parsing all selectors unforgiving way for @supports selector() #35770

Merged
merged 1 commit into from Sep 7, 2022

Conversation

chromium-wpt-export-bot
Copy link
Collaborator

@chromium-wpt-export-bot chromium-wpt-export-bot commented Sep 2, 2022

To detect errors in forgiving parsing selectors (e.g. :is(), :has())
with '@supports selector()', CSSSelectorParser parses all selectors
unforgiving way to raise error while checking the selectors with
'@supports selector()` according to the csswg issue resolution:

  • csswg-drafts/issues/7280#issuecomment-1143852187

An experimental feature flag 'CSSAtSupportsAlwaysNonForgivingParsing'
is added to enable this behavior when the experimental-web-platform-
features flag is enabled.

This is the chrome platform feature for the flag:

Bug: 1358953, 1359396
Change-Id: If203c8d6124edbf67b1ebf0f58cf1a01b31c90a6
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3872106
Reviewed-by: Anders Hartvoll Ruud <andruud@chromium.org>
Commit-Queue: Byungwoo Lee <blee@igalia.com>
Cr-Commit-Position: refs/heads/main@{#1043758}

Copy link
Collaborator

@wpt-pr-bot wpt-pr-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The review process for this patch is being conducted in the Chromium project.

@chromium-wpt-export-bot chromium-wpt-export-bot changed the title Always do unforgiving parsing for all selectors inside @supports Detecting errors while forgiving parsing with @supports selector() Sep 3, 2022
@chromium-wpt-export-bot chromium-wpt-export-bot changed the title Detecting errors while forgiving parsing with @supports selector() Parsing all selectors unforgiving way for @supports selector() Sep 3, 2022
@chromium-wpt-export-bot chromium-wpt-export-bot force-pushed the chromium-export-cl-3872106 branch 6 times, most recently from ea90080 to 6c11931 Compare September 6, 2022 11:22
To detect errors in forgiving parsing selectors (e.g. :is(), :has())
with '@supports selector()', CSSSelectorParser parses all selectors
unforgiving way to raise error while checking the selectors with
'@supports selector()` according to the csswg issue resolution:
- csswg-drafts/issues/7280#issuecomment-1143852187

An experimental feature flag 'CSSAtSupportsAlwaysNonForgivingParsing'
is added to enable this behavior when the experimental-web-platform-
features flag is enabled.

This is the chrome platform feature for the flag:
- https://chromestatus.com/feature/6177049203441664

Bug: 1358953, 1359396
Change-Id: If203c8d6124edbf67b1ebf0f58cf1a01b31c90a6
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3872106
Reviewed-by: Anders Hartvoll Ruud <andruud@chromium.org>
Commit-Queue: Byungwoo Lee <blee@igalia.com>
Cr-Commit-Position: refs/heads/main@{#1043758}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants