Skip to content

Commit

Permalink
css: accept 'display: inline-block' as valid CSS.
Browse files Browse the repository at this point in the history
This is used by FontAwesome which in turn is used by Mermaid.

Related to #35
  • Loading branch information
carlosame committed Aug 11, 2022
1 parent 77b1506 commit 1e31278
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,11 @@ public interface ValueConstants {
*/
Value INLINE_VALUE = new StringValue(CSSPrimitiveValue.CSS_IDENT, CSSConstants.CSS_INLINE_VALUE);

/**
* The 'inline-block' keyword.
*/
Value INLINE_BLOCK_VALUE = new StringValue(CSSPrimitiveValue.CSS_IDENT, CSSConstants.CSS_INLINE_BLOCK_VALUE);

/**
* The 'inline-table' keyword.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,12 @@ public class DisplayManager extends IdentifierManager {
/**
* The identifier values.
*/
protected static final StringMap values = new StringMap();
protected static final StringMap values = new StringMap(19);
static {
values.put(CSSConstants.CSS_BLOCK_VALUE, ValueConstants.BLOCK_VALUE);
values.put(CSSConstants.CSS_COMPACT_VALUE, ValueConstants.COMPACT_VALUE);
values.put(CSSConstants.CSS_INLINE_VALUE, ValueConstants.INLINE_VALUE);
values.put(CSSConstants.CSS_INLINE_BLOCK_VALUE, ValueConstants.INLINE_BLOCK_VALUE);
values.put(CSSConstants.CSS_INLINE_TABLE_VALUE, ValueConstants.INLINE_TABLE_VALUE);
values.put(CSSConstants.CSS_LIST_ITEM_VALUE, ValueConstants.LIST_ITEM_VALUE);
values.put(CSSConstants.CSS_MARKER_VALUE, ValueConstants.MARKER_VALUE);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ public interface CSSConstants {
String CSS_INFOBACKGROUND_VALUE = "infobackground";
String CSS_INFOTEXT_VALUE = "infotext";
String CSS_INLINE_TABLE_VALUE = "inline-table";
String CSS_INLINE_BLOCK_VALUE = "inline-block";
String CSS_INLINE_VALUE = "inline";
String CSS_ITALIC_VALUE = "italic";
String CSS_IVORY_VALUE = "ivory";
Expand Down

0 comments on commit 1e31278

Please sign in to comment.