frenic / csstype

Strict TypeScript and Flow types for style based on MDN data
MIT License
1.73k stars 72 forks source link

Patch missing shorthands for border-[inline|block]-* properties #188

Open jesstelford opened 10 months ago

jesstelford commented 10 months ago

As per the CSS Logical spec, border-block-color, border-block-style, border-block-width, border-inline-color, border-inline-style and border-inline-width are all shorthand properties.

However, they're currently showing up in the StandardLonghandProperties type which is incorrect:

export interface StandardLonghandProperties<TLength = (string & {}) | 0, TTime = string & {}> {
  // ...
  borderBlockColor?: Property.BorderBlockColor | undefined;
  // ...
}

This PR aims to patch in the missing data so they are moved to the StandardShorthandProperties type.