Open Bug 1770438 Opened 2 years ago Updated 2 years ago

Allow relative sizing for the <img> shadow DOM elements

Categories

(Core :: DOM: Core & HTML, enhancement, P3)

enhancement

Tracking

()

People

(Reporter: gregtatum, Unassigned)

References

(Depends on 1 open bug, Blocks 1 open bug)

Details

In Bug 1759504 I am landing an initial prototype of text recognition for images. Currently images do not allow for relative sizing of child elements in the shadow DOM. For the prototype I used absolute px values, but % values could be used.

    // The <img> element does not currently let child elements be sized relative to
    // the size of the containing <img> element. It would be better to teach the <img>
    // element how to do this. For the prototype, do the more expensive operation of
    // getting the bounding client rect, and handle the positioning manually.
Blocks: 1782574
No longer blocks: 1759199

This probably doesn't need to happen since we'll most likely remove this code path. See Bug 1782582.

Depends on: 1782582
Priority: P2 → P3
You need to log in before you can comment on or make changes to this bug.