Implement aspect-ratio for basic blocks and replaced elements
Categories
(Core :: Layout, enhancement, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox81 | --- | fixed |
People
(Reporter: boris, Assigned: boris)
References
(Blocks 1 open bug)
Details
(Keywords: dev-doc-complete)
Attachments
(12 files, 2 obsolete files)
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review |
Let aspect-ratio support the basic block cases in this bug (excluding flex and grid).
There are some tentative wpts there, so we could use them as the first draft version.
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Comment 1•4 years ago
|
||
Assignee | ||
Comment 2•4 years ago
|
||
Assignee | ||
Comment 3•4 years ago
|
||
Assignee | ||
Comment 4•4 years ago
|
||
Will set the correct return value in the latter patch.
Assignee | ||
Comment 5•4 years ago
|
||
Assignee | ||
Comment 6•4 years ago
|
||
Assignee | ||
Comment 7•4 years ago
|
||
Assignee | ||
Comment 8•4 years ago
|
||
Updated•4 years ago
|
Updated•4 years ago
|
Assignee | ||
Comment 9•4 years ago
|
||
Assignee | ||
Comment 10•4 years ago
|
||
This should be very simliar with <object> with image example.
We use nsImageFrame to represent this embed element.
Just make sure wpt covers all the typical replaced elements, based on
MDN (https://developer.mozilla.org/en-US/docs/Web/CSS/Replaced_element).
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Comment 11•4 years ago
|
||
This is related to the spec issue:
https://github.com/w3c/csswg-drafts/issues/4572.
We could revert this patch or update the condition once this spec issue
has been resolved.
Updated•4 years ago
|
Updated•4 years ago
|
Assignee | ||
Comment 12•4 years ago
|
||
Updated•4 years ago
|
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Comment 14•4 years ago
|
||
Basically, we treat aspect-ratio (together with inline size) as a
non-auto block size. This means the block is not empty when using
aspect-ratio.
Also, add 3 tentative wpts for this, based on the current spec issue
examples.
Assignee | ||
Updated•4 years ago
|
Updated•4 years ago
|
Comment 15•4 years ago
|
||
Comment 17•4 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/8cb2a9e57cba
https://hg.mozilla.org/mozilla-central/rev/a5e9b2bede3a
https://hg.mozilla.org/mozilla-central/rev/b7f8a00c7278
https://hg.mozilla.org/mozilla-central/rev/c26b41b07084
https://hg.mozilla.org/mozilla-central/rev/8e3ff3f26946
https://hg.mozilla.org/mozilla-central/rev/a37073226eb7
https://hg.mozilla.org/mozilla-central/rev/8326d6db2755
https://hg.mozilla.org/mozilla-central/rev/802185dc6fff
https://hg.mozilla.org/mozilla-central/rev/00fac1d4990f
https://hg.mozilla.org/mozilla-central/rev/15dfbfd21a51
https://hg.mozilla.org/mozilla-central/rev/2da97f87cae2
Assignee | ||
Comment 18•4 years ago
|
||
(In reply to Web Platform Test Sync Bot (Matrix: #interop:mozilla.org) from comment #16)
Failed to create upstream wpt PR due to merge conflicts. This requires fixup
from a wpt sync admin.
Google added two new tests last week:
replaced-element-013.tentative.html
replaced-element-014.tentative.html
Maybe we have to update the file names in this bug because I also add some for replaced elements.
@jgraham, what is the expected way to fix this issue? I think it is just a name collision. Basically, just rename these files in my patch:
from:
replaced-element-013.tentative.html
replaced-element-014.tentative.html
replaced-element-015.tentative.html
replaced-element-016.tentative.html
replaced-element-017.tentative.html
replaced-element-018.tentative.html
replaced-element-019.tentative.html
to:
replaced-element-015.tentative.html
replaced-element-016.tentative.html
replaced-element-017.tentative.html
replaced-element-018.tentative.html
replaced-element-019.tentative.html
replaced-element-020.tentative.html
replaced-element-021.tentative.html
Comment 19•4 years ago
|
||
Can you push another commit with those changes to this bug? Then I can deal with the rest.
Assignee | ||
Comment 20•4 years ago
|
||
Sure. Working on this.
Assignee | ||
Comment 21•4 years ago
|
||
Assignee | ||
Comment 22•4 years ago
|
||
I just push the commit and add you as the reviewer (and I guess we should make it landed into m-c). Thanks for handling this.
Comment 23•4 years ago
|
||
Comment 24•4 years ago
|
||
bugherder |
Updated•4 years ago
|
Comment 27•4 years ago
|
||
Added to Experimental Features page, BCD is process of updating, and made some light edits to the aspect-ratio MDN page.
Description
•