From fdae3a0a4ec21026ee65ce3e9c05944c157a07dc Mon Sep 17 00:00:00 2001 From: Jess Telford Date: Fri, 17 Nov 2023 00:21:57 +1100 Subject: [PATCH] Patch missing shorthands for border-[inline|block]-* properties As per [the CSS Logical spec](https://drafts.csswg.org/css-logical), `border-block-color`, `border-block-style`, `border-block-width`, `border-inline-color`, `border-inline-style` and `border-inline-width` are all shorthand properties. --- src/data/patches.ts | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/src/data/patches.ts b/src/data/patches.ts index 368e355..78973da 100644 --- a/src/data/patches.ts +++ b/src/data/patches.ts @@ -9,6 +9,42 @@ export const properties: { [property: string]: IExtendedProperty } = { 'line-clamp': { shorthand: true, }, + /** + * https://drafts.csswg.org/css-logical/#propdef-border-block-color + */ + 'border-block-color': { + shorthand: true, + }, + /** + * https://drafts.csswg.org/css-logical/#propdef-border-inline-color + */ + 'border-inline-color': { + shorthand: true, + }, + /** + * https://drafts.csswg.org/css-logical/#propdef-border-block-width + */ + 'border-block-width': { + shorthand: true, + }, + /** + * https://drafts.csswg.org/css-logical/#propdef-border-inline-width + */ + 'border-inline-width': { + shorthand: true, + }, + /** + * https://drafts.csswg.org/css-logical/#propdef-border-block-width + */ + 'border-block-width': { + shorthand: true, + }, + /** + * https://drafts.csswg.org/css-logical/#propdef-border-inline-width + */ + 'border-inline-width': { + shorthand: true, + }, }; export const syntaxes: { [property: string]: MDN.Syntax } = {