Closed Bug 1720703 Opened 3 years ago Closed 3 years ago

<source> can be visible inside a <picture/>

Categories

(Core :: DOM: Core & HTML, defect)

Firefox 89
defect

Tracking

()

RESOLVED FIXED
92 Branch
Tracking Status
firefox92 --- fixed

People

(Reporter: sic.popper, Assigned: emilio)

References

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:89.0) Gecko/20100101 Firefox/89.0

Steps to reproduce:

picture element with display: flex and box size setted to the children

https://codepen.io/51ck/pen/xxdqpYX

Actual results:

The source element becomes visible

Expected results:

I think the source element shouldn't be visible

The Bugbug bot thinks this bug should belong to the 'Core::Graphics: WebRender' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.

Component: Untriaged → Graphics: WebRender
Product: Firefox → Core

Why not? <source> has no UA styles in the HTML spec, so it is a regular inline element: https://html.spec.whatwg.org/#the-source-element

On a flex container elements are blockified, and thus it becomes a block.

Component: Graphics: WebRender → DOM: Core & HTML

According to comment 2, I will mark for WONFIX, feel free to reopen if you think it's still an issue.

Status: UNCONFIRMED → RESOLVED
Closed: 3 years ago
Resolution: --- → WONTFIX

It would be INVALID, not WONTFIX, but https://html.spec.whatwg.org/#hidden-elements does have display: none for source elements. Also, Chrome and Safari behave differently which is enough reason to keep this open.

Status: RESOLVED → REOPENED
Ever confirmed: true
Flags: needinfo?(emilio)
Resolution: WONTFIX → ---

Huh, not sure how I missed that one.

Flags: needinfo?(emilio)
Assignee: nobody → emilio
Pushed by ealvarez@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/7a6b0696b90c
Sync the list of hidden elements with the HTML spec. r=annevk
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/29703 for changes under testing/web-platform/tests
Status: REOPENED → RESOLVED
Closed: 3 years ago3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 92 Branch
Upstream PR merged by moz-wptsync-bot
Regressions: 1721370
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: