File tree Expand file tree Collapse file tree 3 files changed +1
-24
lines changed Expand file tree Collapse file tree 3 files changed +1
-24
lines changed Original file line number Diff line number Diff line change @@ -4,8 +4,3 @@ export function hyphenToCamelCase(name: string): string {
44 . replace ( / - ( \w ) / g, ( _ , c ) => c . toUpperCase ( ) ) ;
55 return camel === "float" ? "_float" : camel ;
66}
7-
8- export function camelToHyphenCase ( name : string ) : string {
9- const dashPrefix = name . startsWith ( "webkit" ) ? "-" : "" ;
10- return dashPrefix + name . replace ( / [ A - Z ] / g, ( c ) => "-" + c . toLowerCase ( ) ) ;
11- }
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1- function hyphenToCamelCase ( name : string ) {
2- const camel = name
3- . replace ( / ^ - ( \w ) / , ( _ , c ) => c )
4- . replace ( / - ( \w ) / g, ( _ , c ) => c . toUpperCase ( ) ) ;
5- return camel === "float" ? "_float" : camel ;
6- }
1+ import { hyphenToCamelCase } from "../utils/css.js" ;
72
83export function generateWebIdlFromCssProperties ( properties : string [ ] ) : string {
94 return `partial interface CSSStyleProperties {${ properties
You can’t perform that action at this time.
0 commit comments