Module htmlimageelement

Source

StructsΒ§

Descriptor
HTMLImageElement πŸ”’
ImageContext πŸ”’
The context required for asynchronously loading an external image.
ImageRequest πŸ”’
ImageSource
SourceSet πŸ”’
https://html.spec.whatwg.org/multipage/#source-set

EnumsΒ§

ChangeType πŸ”’
ImageElementMicrotask πŸ”’
ImageRequestPhase πŸ”’
ParseState πŸ”’
State πŸ”’

ConstantsΒ§

SUPPORTED_IMAGE_MIME_TYPES πŸ”’
Supported image MIME types as defined by https://mimesniff.spec.whatwg.org/#image-mime-type. Keep this in sync with β€˜detect_image_format’ from components/pixels/lib.rs
_IMPL_DOMOBJECT_FOR_HTMLImageElement πŸ”’

TraitsΒ§

LayoutHTMLImageElementHelpers πŸ”’

FunctionsΒ§

collect_sequence_characters πŸ”’
Collect sequence of code points https://infra.spec.whatwg.org/#collect-a-sequence-of-code-points
get_correct_referrerpolicy_from_raw_token πŸ”’
image_dimension_setter πŸ”’
is_supported_image_mime_type πŸ”’
Returns true if the given image MIME type is supported.
is_valid_floating_point_number_string πŸ”’
https://html.spec.whatwg.org/multipage/#valid-floating-point-number TODO(#39315): Use the validation rule from Stylo
is_valid_non_negative_integer_string πŸ”’
https://html.spec.whatwg.org/multipage/#valid-non-negative-integer TODO(#39315): Use the validation rule from Stylo
parse_a_sizes_attribute πŸ”’
https://html.spec.whatwg.org/multipage/#parse-a-sizes-attribute
parse_a_srcset_attribute
Parse an srcset attribute: https://html.spec.whatwg.org/multipage/#parsing-a-srcset-attribute.