feat: add @supports at-rule support in the Styles pane - #131
Merged
Dango-2021 merged 1 commit intoJul 14, 2026
Merged
Conversation
Display @supports CSS at-rules in the Elements Styles sidebar, mirroring the existing @media and @container query handling. - Add CSSSupports SDK model extending CSSQuery - Parse the supports payload on CSSStyleRule and rebase on edits - Render @supports queries via createSupportsList / createAtRuleLists - Add CSSSupports type and CSSRule.supports field to the CDP protocol definitions (.pdl / .json / generated protocol.d.ts) - Add an e2e test and css-supports.html fixture Ported from ChromeDevTools/devtools-frontend@5c17e46.
shangguan2024
force-pushed
the
feat/css-supports-styles-pane
branch
from
July 11, 2026 18:54
02e23e9 to
18ec439
Compare
yuweizheng
approved these changes
Jul 13, 2026
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Display
@supportsCSS at-rules in the Elements Styles sidebar, mirroring the existing@mediaand@containerquery handling.Ported from ChromeDevTools/devtools-frontend@5c17e46.
Changes
CSSSupportsmodel extendingCSSQuery; parse thesupportspayload onCSSStyleRuleand rebase it on edits; export viasdk.tsand register inBUILD.gn/devtools_grd_files.gni.@supportsqueries inStylesSidebarPanevia newcreateSupportsList/createAtRuleLists; generalize query-click/edit handlers toSDK.CSSQuery.CSSQuery.CSSSupportstype andCSSRule.supportsfield to the CDP definitions (browser_protocol.pdl/.jsonand generatedprotocol.d.ts).style-pane-properties_test.tsand acss-supports.htmlfixture.Testing
The Styles pane > can display @supports at-rulesasserts the@supports (width: 10px)query renders in the styles section.