Skip to content

weirdness: size maximum with picturefill_wp_apply_to_html #44

Open
@inbetweencode

Description

@inbetweencode

There is a difference in calling:

picturefill_wp_apply_to_html( get_the_post_thumbnail( null, 'medium' ) );
picturefill_wp_apply_to_html( get_the_post_thumbnail( null, 'large' ) );

When calling medium. Picturefill.js will never select the larger src, even when the -box growns beyond it. A difference can be seen in the measuring

in the . But in a sense (i guess) also has to do with the 'hardcoded' width= and height= in the tag.

Context:
I have a page that renders the images at 100% width of it's container via CSS. The container is 100% of the viewport . At 1080px a media-query kicks in setting the container at 1080px.
Sizes of image sources are: medium max 720px, large max 1080px

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions