Skip to content
This repository was archived by the owner on Jan 6, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/lib/api/flexbox/layout.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,13 @@ describe('layout directive', () => {
});
});

it('should have valid wrap with flex children', () => {
createTestComponent(`<div fxLayout='row wrap'><div fxFlex></div></div>`);
expectNativeEl(fixture).toHaveStyle({
'flex-wrap': 'wrap'
});
});

});

describe('with inline options', () => {
Expand Down
2 changes: 1 addition & 1 deletion src/lib/utils/style-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export function lookupAttributeValue(element: HTMLElement, attribute: string): s
* Find the DOM element's inline style value (if any)
*/
export function lookupInlineStyle(element: HTMLElement, styleName: string): string {
return element.style[styleName];
return element.style[styleName] || element.style.getPropertyValue(styleName);
}

/**
Expand Down