Skip to content

Introduce CSSStyleDeclarationBase - #2174

Merged
github-actions[bot] merged 3 commits into
microsoft:mainfrom
saschanaz:css-decl
Oct 1, 2025
Merged

Introduce CSSStyleDeclarationBase#2174
github-actions[bot] merged 3 commits into
microsoft:mainfrom
saschanaz:css-decl

Conversation

@saschanaz

Copy link
Copy Markdown
Contributor

This should reduce DT breakage. But note that this would make CSSPageDescriptors extends CSSStyleDeclaration to false. Authors would need to use CSSStyleDeclarationBase for that.

This should reduce DT breakage. But note that this would make `CSSPageDescriptors extends CSSStyleDeclaration` to `false`. Authors would need to use CSSStyleDeclarationBase for that.
@github-actions

Copy link
Copy Markdown
Contributor

Thanks for the PR!

This section of the codebase is owned by Kagami Sascha Rosylight (@saschanaz) - if they write a comment saying "LGTM" then it will be merged.

@jakebailey

Copy link
Copy Markdown
Member

CSSStyleDeclaration doesn't add anything to CSSStyleProperties so I think it technically still works?

@saschanaz

Copy link
Copy Markdown
ContributorAuthor

With this PR it's CSSStyleDeclarationBase -> CSSStyleProperties -> CSSStyleDeclaration, so yeah it can't add anything to it's now-parent.

image

@saschanaz

Copy link
Copy Markdown
ContributorAuthor

Jake Bailey (@jakebailey) 🤞🏻

Comment threadinputfiles/patches/cssom.kdl
Comment threadsrc/build/emitter.ts
Comment threadsrc/build/types.ts
@Bashamega

Copy link
Copy Markdown
Contributor

Just a few nits that I found

@jakebaileyJake Bailey (jakebailey) left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Based on microsoft/TypeScript#62496, it seems like this is working fine. If you're happy, then I think this is okay.

@saschanaz

Copy link
Copy Markdown
ContributorAuthor

LGTM, let's go 🙂

@github-actions
github-actionsBot merged commit 77e5897 into microsoft:mainOct 1, 2025
20 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

Merging because Kagami Sascha Rosylight (@saschanaz) is a code-owner of all the changes - thanks!

@github-actions
github-actionsBot deleted the css-decl branch October 1, 2025 23:56
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@saschanaz@jakebailey@Bashamega