Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support calculated values in sizes and heights #3078

Merged
merged 1 commit into from May 5, 2016

Conversation

dvoytenko
Copy link
Contributor

Closes #1428.


it('should accept CSS functions', () => {
const res = parseSizeList('screen calc(111vw + 10px) \n' +
', ca_1-C((50vw+20px) / 2) ');
Copy link
Member

Choose a reason for hiding this comment

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

slightly unrelated but just curious, why do we not allow absolute lengths (in, q, cm, pt etc)? is it supposed to be not supported? https://github.com/ampproject/amphtml/blob/master/src/layout.js#L172

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hmm. Good question. Please file the bug - we'll see. I think we should allow them.

@erwinmombay
Copy link
Member

@dvoytenko LGTM

@dvoytenko dvoytenko merged commit df2081f into ampproject:master May 5, 2016
@dvoytenko dvoytenko deleted the media1-calc branch May 5, 2016 00:26
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.

None yet

2 participants