StructsΒ§
- Descriptor
- HTML
Image πElement - Image
Context π - The context required for asynchronously loading an external image.
- Image
Request π - Image
Source - Source
Set π - https://html.spec.whatwg.org/multipage/#source-set
EnumsΒ§
- Change
Type π - Image
Element πMicrotask - Image
Request πPhase - Parse
State π - 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_ HTML Image Element
TraitsΒ§
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.