From dc47c81bdb27dca1132ec6af1efcbee103903493 Mon Sep 17 00:00:00 2001 From: Tyler Rockwood Date: Wed, 9 Jun 2021 09:24:08 -0500 Subject: [PATCH] Correctly expand CSS `border-width` property According to https://developer.mozilla.org/en-US/docs/Web/CSS/border-width should support 2 value and 3 value variants and right now it doesn't. --- .../com/helger/css/decl/shorthand/CSSShortHandRegistry.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ph-css/src/main/java/com/helger/css/decl/shorthand/CSSShortHandRegistry.java b/ph-css/src/main/java/com/helger/css/decl/shorthand/CSSShortHandRegistry.java index 4374a06f..06ea5028 100644 --- a/ph-css/src/main/java/com/helger/css/decl/shorthand/CSSShortHandRegistry.java +++ b/ph-css/src/main/java/com/helger/css/decl/shorthand/CSSShortHandRegistry.java @@ -110,7 +110,7 @@ public final class CSSShortHandRegistry CCSSValue.SOLID), new CSSPropertyWithDefaultValue (CCSSProperties.BORDER_LEFT_COLOR, ECSSColor.BLACK.getName ()))); - registerShortHandDescriptor (new CSSShortHandDescriptor (ECSSProperty.BORDER_WIDTH, + registerShortHandDescriptor (new CSSShortHandDescriptorWithAlignment (ECSSProperty.BORDER_WIDTH, new CSSPropertyWithDefaultValue (CCSSProperties.BORDER_TOP_WIDTH, ECSSUnit.px (3)), new CSSPropertyWithDefaultValue (CCSSProperties.BORDER_RIGHT_WIDTH,