diff --git a/src/border-spacing.ts b/src/border-spacing.ts new file mode 100644 index 000000000..b8e771840 --- /dev/null +++ b/src/border-spacing.ts @@ -0,0 +1,7 @@ +import { Style } from '@master/style'; +import { BORDER, DASH, SPACING } from './constants/css-property-keyword'; + +export class BorderSpacingStyle extends Style { + static override matches = /^b-spacing:./; + static override key = BORDER + DASH + SPACING; +} \ No newline at end of file diff --git a/src/index.ts b/src/index.ts index 4179e35b3..a2ea98e58 100644 --- a/src/index.ts +++ b/src/index.ts @@ -132,6 +132,7 @@ import { OutlineStyleStyle } from './outline-style'; import { OutlineWidthStyle } from './outline-width'; import { OutlineStyle } from './outline'; import { BorderCollapseStyle } from './border-collapse'; +import { BorderSpacingStyle } from './border-spacing'; import { TableLayoutStyle } from './table-layout'; import { AccentColorStyle } from './accent-color'; import { AppearanceStyle } from './appearance'; @@ -246,6 +247,7 @@ StyleSheet.Styles.push( BorderStyleStyle, BorderWidthStyle, BorderCollapseStyle, + BorderSpacingStyle, BorderStyle, // background BackgroundAttachmentStyle,