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

core(image-elements): surface css properties in artifact #11707

Merged
merged 23 commits into from
Dec 8, 2020
Merged

Conversation

adrianaixba
Copy link
Collaborator

Surface css properties in ImageElements artifact. Move property validation logic to audits.

First item of #11642

lighthouse-core/audits/image-aspect-ratio.js Outdated Show resolved Hide resolved
lighthouse-core/audits/image-size-responsive.js Outdated Show resolved Hide resolved
lighthouse-core/audits/image-size-responsive.js Outdated Show resolved Hide resolved
lighthouse-core/audits/image-size-responsive.js Outdated Show resolved Hide resolved
*/
usesSrcSetDensityDescriptor: boolean;
/** `object-fit` CSS property. */
ObjectFit: string;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
ObjectFit: string;
cssComputedObjectFit: string;

WDYT to match the other cssComputed* property convention?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I like this! Makes a lot more sense and matches other properties 👍

lighthouse-core/test/results/sample_v2.json Outdated Show resolved Hide resolved
Copy link
Collaborator

@patrickhulce patrickhulce left a comment

Choose a reason for hiding this comment

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

change itself looks good! 🎉

just a few leftover minor comments

lighthouse-core/audits/image-size-responsive.js Outdated Show resolved Hide resolved
lighthouse-core/audits/image-size-responsive.js Outdated Show resolved Hide resolved
lighthouse-core/test/audits/image-aspect-ratio-test.js Outdated Show resolved Hide resolved
lighthouse-core/test/audits/image-size-responsive-test.js Outdated Show resolved Hide resolved
@patrickhulce
Copy link
Collaborator

sorry @adrianaixba you'll have some conflicts with #11695 landing now, looks great though! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants