Skip to content

Conversation

@Bashamega
Copy link
Contributor

No description provided.

@github-actions
Copy link
Contributor

github-actions bot commented Nov 1, 2025

Thanks for the PR!

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

return camel === "float" ? "_float" : camel;
}

export function generateWebIdlFromCssProperties(properties: string[]): string {
Copy link
Contributor

Choose a reason for hiding this comment

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

This is webref specific and I'd rather keep it here. Maybe import the case conversion function?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

Copy link
Contributor

@saschanaz saschanaz Nov 1, 2025

Choose a reason for hiding this comment

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

Eh, actually, the utils/css module is totally unused. Let's remove that and keep this one.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have updated it @saschanaz

Bashamega and others added 2 commits November 1, 2025 17:44
Co-authored-by: Kagami Sascha Rosylight <saschanaz@outlook.com>
Removed the camelToHyphenCase function from css.ts.
jakebailey
jakebailey previously approved these changes Nov 1, 2025
@saschanaz
Copy link
Contributor

#2218 started to use hyphenToCamelCase, merging this would break it

@Bashamega
Copy link
Contributor Author

#2218 started to use hyphenToCamelCase, merging this would break it

I will later update it in the other PR. You can merge this now

@saschanaz
Copy link
Contributor

Why remove it when we need it?

@Bashamega
Copy link
Contributor Author

I have added it @saschanaz

@@ -1,4 +1,4 @@
function hyphenToCamelCase(name: string) {
export function hyphenToCamelCase(name: string): string {
Copy link
Contributor

Choose a reason for hiding this comment

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

I thought only webref would use it, thus the build/webref/css. If not it should be in build/utils/css.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@Bashamega
Copy link
Contributor Author

Is there anything missing here @saschanaz

.replace(/-(\w)/g, (_, c) => c.toUpperCase());
return camel === "float" ? "_float" : camel;
import { hyphenToCamelCase } from "../utils/css.js";
export function camelToHyphenCase(name: string): string {
Copy link
Contributor

Choose a reason for hiding this comment

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

We don't use this one, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yup, I have updated it

Removed the camelToHyphenCase function from css.ts.
@saschanaz
Copy link
Contributor

LGTM

@github-actions
Copy link
Contributor

github-actions bot commented Nov 2, 2025

There was an issue merging, maybe try again saschanaz. Details

@Bashamega
Copy link
Contributor Author

Did you forget this @jakebailey

@jakebailey jakebailey merged commit 7179603 into microsoft:main Nov 2, 2025
7 checks passed
@Bashamega Bashamega deleted the css-refractor branch November 2, 2025 16:16
Sign up for free to 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