Skip to content

Commit 80cc029

Browse files
Add todo notes for follow-up
1 parent 454c669 commit 80cc029

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

plugins/auto-sizes/includes/improve-calculate-sizes.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@ function auto_sizes_calculate_better_sizes( int $id, $size, string $align, int $
200200

201201
case 'wide':
202202
$layout_width = auto_sizes_get_layout_width( 'wide' );
203+
// TODO: Add support for em, rem, vh, and vw.
203204
if (
204205
str_ends_with( $layout_width, 'px' ) &&
205206
( $container_relative_width > 0.0 ||
@@ -223,6 +224,8 @@ function auto_sizes_calculate_better_sizes( int $id, $size, string $align, int $
223224
/*
224225
* If the layout width is in pixels, we can compare against the image width
225226
* on the server. Otherwise, we need to rely on CSS functions.
227+
*
228+
* TODO: Add support for em, rem, vh, and vw.
226229
*/
227230
if (
228231
str_ends_with( $layout_width, 'px' ) &&

0 commit comments

Comments
 (0)