<source> can be visible inside a <picture/>
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
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
Comment 1•3 years ago
|
||
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.
Assignee | ||
Comment 2•3 years ago
|
||
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.
Comment 3•3 years ago
|
||
According to comment 2, I will mark for WONFIX, feel free to reopen if you think it's still an issue.
Comment 4•3 years ago
|
||
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.
Assignee | ||
Comment 6•3 years ago
|
||
Updated•3 years ago
|
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
Comment 9•3 years ago
|
||
bugherder |
Upstream PR merged by moz-wptsync-bot
Description
•