Skip to content

Conversation

erickok
Copy link
Contributor

@erickok erickok commented Sep 1, 2021

Although we say the in README that we support the height and width css properties, we actually don't. This PR contains a basic implementation where we at least apply any exactly-defined width or height on the html element (container). You can now, for example, set the size of images.

It only works on block style elements. This (to the best of my knowledge) is the same in browsers.

However, it does not implement support for percentage-based height/width as it is not as easy as setting this percentage on a Container. We could use a LayoutBuilder and then use the maxWidth * percentage, but this would not work if nested I think. Remains to be seen. Also, more work may be needed for elements such as tables. See #811 for a discussion specifically on tables.

Copy link
Contributor

@ryan-berger ryan-berger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, merge at your own convenience

@erickok erickok merged commit 59118cd into Sub6Resources:master Oct 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants