Read-only Git mirror of the Mercurial gecko repositories at https://hg.mozilla.org. How to contribute: https://firefox-source-docs.mozilla.org/contributing/contribution_quickref.html
Go to file
David Grogan c504cea279 Bug 1667626 [wpt PR 25805] - [css-flex] Pass a ConstraintSpace to ortho_table.ComputeMinMaxSizes(), a=testonly
Automatic update from web-platform-tests
[css-flex] Pass a ConstraintSpace to ortho_table.ComputeMinMaxSizes()

ComputeMinMaxSizes needs a ConstraintSpace when the child is not in a
parallel writing mode. Flex wasn't providing one when it retrieved a
table's intrinsic min size.

Before this bug was introduced, flex was calling
ComputeMinAndMaxContentContribution(..., table, ...) instead of
table.ComputeMinMaxSizes(...). ComputeMinAndMaxContentContribution
builds its own ConstraintSpace for ortho items, so flex didn't need to
provide one.

We originally switched from ComputeMinAndMaxContentContribution to
table.ComputeMinMaxSizes because:

* One input to the flex algorithm is the item's used min-width (for a
  row flexbox). The flex algorithm will never assign a flex item a width
  smaller than its used min-width. For most elements, we get this value
  via ResolveMinInlineLength(..., style.LogicalMinWidth(), ...).

* But table's used min-width is defined specially to be "the greater of
  the resolved min-width, CAPMIN, and GRIDMIN". So to get the
  table-as-flex-item's used min-width, we need to retrieve max(CAPMIN,
  GRIDMIN) in addition to resolving style.LogicalMinWidth from the
  above step.

* ComputeMinAndMaxContentContribution(table).min returns max(CAPMIN,
  GRIDMIN, style.LogicalWidth()). I.e. it obeys any specified width on
  the table.

* But table.ComputeMinMaxSizes().min returns only max(CAPMIN, GRIDMIN)[1],
  which is what we want.

In the example below, the flexbox will try to shrink the table's width
to 75px. Using ComputeMinAndMaxContentContribution for the table's
min-width computation would result in the table being 100px wide. Using
table.ComputeMinMaxSizes would make it 75px wide. 75px is correct.

<div style="display: flex; width: 75px;">
  <table style="width: 100px; min-width: 0px;">
    <td>
      <div style="float: left; width:50px"></div>
      <div style="float: left; width:50px"></div>
    </td>
  </table>
</div>
https://jsfiddle.net/dgrogan/gwu4ac82/3/

[1] This is actually not true today but is true for TablesNG. Switching
to table.ComputeMinMaxSizes gets us closer.

Bug: 1128262
Fixed: 1131890
Change-Id: Ie5a4eac97e4a6a2e96104397bd5c5ec483d40e78
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2433594
Commit-Queue: David Grogan <dgrogan@chromium.org>
Reviewed-by: Christian Biesinger <cbiesinger@chromium.org>
Reviewed-by: Morten Stenshorne <mstensho@chromium.org>
Cr-Commit-Position: refs/heads/master@{#811216}

--

wpt-commits: 2531feaeef0530450b7a7271b2bb4cc450edb831
wpt-pr: 25805
2020-10-02 12:32:40 +00:00
.cargo Bug 1668776 - Update opcode for bug 1667258. r=nbp 2020-10-02 10:37:24 +00:00
.vscode Bug 1656740 - Integrate clangd in vscode for C++ language support. r=froydnj 2020-08-06 06:25:17 +00:00
accessible Bug 1668707: When deciding whether to create a div Accessible, skip the first/last child if it's invisible and consider inline-block, etc. r=MarcoZ 2020-10-02 07:15:15 +00:00
browser Bug 1644972 - Restrict browser.urlbar.disableExtendForTests to tests and remove it from tests that don't need it. r=mak 2020-10-02 11:56:16 +00:00
build Bug 1666993 - new bakend for static-analysis that prevents regressing issues with files that can be built outside of the unified environment. r=botond 2020-09-30 04:29:25 +00:00
caps Bug 1668357 - Disable tests which fail when fission and session-history-in-parent are enabled, r=peterv,marionette-reviewers,whimboo 2020-10-01 10:23:47 +00:00
chrome Bug 1650145 - Replace all value uses of Empty[C]String by 0-length _ns literals. r=froydnj,geckoview-reviewers,agi 2020-09-23 15:17:15 +00:00
config Bug 1659392 - Only enable rust fuzzing code with libFuzzer. r=truber 2020-08-18 13:32:15 +00:00
devtools Bug 1668480 - [devtools] Update CodeMirror to 5.58.1. r=jdescottes. CLOSED TREE 2020-10-01 13:06:55 +00:00
docs Bug 1667831 - doc: fix more pygments r=firefox-source-docs-reviewers,championshuttler DONTBUILD 2020-09-30 07:03:41 +00:00
docshell Bug 1668577 - Make child process to send offset to parent process, not index, r=peterv 2020-10-02 12:05:57 +00:00
dom Bug 1668577 - Make child process to send offset to parent process, not index, r=peterv 2020-10-02 12:05:57 +00:00
editor Bug 1609291 - Make AutoEditActionDataSetter::MaybeDispatchBeforeInputEvent() stop returning error when there is no proper event target of beforeinput event r=smaug 2020-10-01 09:15:19 +00:00
extensions Bug 1650145 - Replace all value uses of Empty[C]String by 0-length _ns literals. r=froydnj,geckoview-reviewers,agi 2020-09-23 15:17:15 +00:00
gfx Bug 1667939 - Make the picture tile size configurable via pref. r=gw 2020-10-02 10:38:45 +00:00
gradle/wrapper
hal Bug 1664374 - Replace MOZ_MUST_USE with [[nodiscard]] in hal. r=gsvelto 2020-09-11 06:35:02 +00:00
image Bug 1601980 - use MOZ_ATOMIC_BITFIELDS in imagelib to avoid races on flags. r=aosmond,decoder 2020-10-01 13:22:49 +00:00
intl Bug 1667192 - patch 3 - For Android, package the uncompiled versions of hyphenation files. r=heycam 2020-09-30 12:52:40 +00:00
ipc Bug 1665166 - Updates to moz.build files; r=ng 2020-09-24 18:40:21 +00:00
js Bug 1668765 - Part 10: Remove SourceText forward declaration. r=arai 2020-10-02 11:08:16 +00:00
layout Bug 1187682 - Use ScriptPercentScaleDown and ScriptScriptPercentScaleDown constants. r=emilio 2020-10-02 11:33:34 +00:00
media Bug 1624026 - Disable TDStretch::calcCrossCorrAccumulate to sidestep an audio quality bug on Android. r=chunmin 2020-09-28 18:16:45 +00:00
memory Bug 1657033 - Use Span<const char> in JSONWriter - r=froydnj 2020-09-14 02:33:20 +00:00
mfbt Bug 1601980 - Introduce a MOZ_ATOMIC_BITFIELDS macro. r=njn 2020-10-01 08:25:15 +00:00
mobile Bug 1667675 - Use sourceSets instead of JavaCompileProvider to generate sources.jar. r=agi 2020-10-01 00:12:00 +00:00
modules Bug 1667939 - Make the picture tile size configurable via pref. r=gw 2020-10-02 10:38:45 +00:00
mozglue Bug 1601980 - use MOZ_ATOMIC_BITFIELDS in imagelib to avoid races on flags. r=aosmond,decoder 2020-10-01 13:22:49 +00:00
netwerk Bug 1668215 - Bail out loading if the SessionHistoryEntry for LoadingSessionHistoryInfo isn't available anymore, r=peterv 2020-10-02 11:53:18 +00:00
nsprpub Bug 1660371 - NSPR_4_29_RTM. r=kjacobs UPGRADE_NSPR_RELEASE DONTBUILD 2020-09-17 15:26:54 +00:00
other-licenses Bug 1663217 - Remove MOZ_MUST_USE comment from NSIS BitsUtils.cpp. r=agashlin 2020-09-09 17:23:34 +00:00
parser Bug 1650145 - Replace all value uses of Empty[C]String by 0-length _ns literals. r=froydnj,geckoview-reviewers,agi 2020-09-23 15:17:15 +00:00
python Bug 1667180 - Reinstall existing browsertime package if its outdated. r=tarek 2020-10-01 07:14:37 +00:00
remote Backed out changeset 35066da8f3c3 (bug 1666499) as per Henrik's request. CLOSED TREE 2020-10-02 10:55:34 +03:00
security No Bug, mozilla-central repo-update HSTS HPKP remote-settings tld-suffixes - a=repo-update r=RyanVM 2020-10-01 14:37:46 +00:00
services No Bug, mozilla-central repo-update HSTS HPKP remote-settings tld-suffixes - a=repo-update r=RyanVM 2020-10-01 14:37:46 +00:00
servo Bug 1187682 - Use ScriptPercentScaleDown and ScriptScriptPercentScaleDown constants. r=emilio 2020-10-02 11:33:34 +00:00
startupcache Bug 1656261 - Back out all recent StartupCache work r=RyanVM 2020-09-14 17:00:53 +00:00
storage Bug 1663924 - Split BorrowedStatement from CachedStatement. r=dom-workers-and-storage-reviewers,janv 2020-09-29 10:57:19 +00:00
taskcluster Bug 1667482 - [taskgraph] Don't fail if last backstop decision task is still running, r=marco 2020-10-01 16:18:36 +00:00
testing Bug 1667626 [wpt PR 25805] - [css-flex] Pass a ConstraintSpace to ortho_table.ComputeMinMaxSizes(), a=testonly 2020-10-02 12:32:40 +00:00
third_party Bug 1668776 - Update opcode for bug 1667258. r=nbp 2020-10-02 10:37:24 +00:00
toolkit Bug 1668357 - enable SHIP with Fission, r=peterv 2020-10-01 20:59:27 +00:00
tools Bug 1667915 - Marker type is now given as a reified empty argument instead of a template argument - r=gregtatum 2020-10-01 11:02:54 +00:00
uriloader Bug 1658571 - Add MainThreadWeakPtr and use it in PreloaderBase::RedirectSink. r=sg,smaug 2020-09-24 16:38:35 +00:00
view
widget Bug 1667116 - Request to stay unredirected on WR/OGL, too. r=stransky 2020-10-02 11:33:06 +00:00
xpcom Bug 1668357 - enable SHIP with Fission, r=peterv 2020-10-01 20:59:27 +00:00
xpfe/appshell Bug 1667081 - Part 3: Remove windowLowered in nsIFocusManager; r=hsivonen 2020-09-29 07:21:34 +00:00
.arcconfig
.babel-eslint.rc.js Bug 1620537 - Upgrade to ESLint 7.5.0, remove now unnecessary Babel plugins. r=mossop 2020-07-24 21:37:12 +00:00
.clang-format
.clang-format-ignore Bug 1667674 - [Wayland] Support public primary-selection unstable protocol. r=stransky 2020-10-02 09:13:06 +00:00
.cron.yml Bug 1661673 - remove esr68 references.r=releng-reviewers,aki DONTBUILD 2020-08-31 07:59:28 +00:00
.eslintignore Backed out 3 changesets (bug 1665713) for perma failures on test_peerConnection_capturedVideo.html. CLOSED TREE 2020-09-25 02:58:57 +03:00
.eslintrc.js Backed out 3 changesets (bug 1665713) for perma failures on test_peerConnection_capturedVideo.html. CLOSED TREE 2020-09-25 02:58:57 +03:00
.flake8 Bug 1622686 - Make testing/web-platform flake8 compliant. r=sylvestre,jgraham 2020-09-29 14:22:49 +00:00
.git-blame-ignore-revs
.gitattributes
.gitignore Bug 1663372 - Ignore toolchains.json file with git. r=glandium 2020-09-25 13:09:50 +00:00
.hg-annotate-ignore-revs
.hg-format-source
.hgignore Bug 1658396 - Make hg ignore newtab node_modules, r=Mardak 2020-08-10 23:32:15 +00:00
.hgtags No bug - tagging cecca8e309497b6a0e7d2ab52a4956d7e48c91f6 with FIREFOX_NIGHTLY_82_END a=release DONTBUILD CLOSED TREE 2020-09-21 14:12:19 +00:00
.lldbinit
.mailmap Bug 1650456 - Correct name in a few places, r=froydnj 2020-07-03 20:20:29 +00:00
.prettierignore
.prettierrc
.taskcluster.yml Bug 1666809 - Insert decision task indexes directly via taskluster API rather than index-task, r=taskgraph-reviewers,aki 2020-09-24 19:19:36 +00:00
.trackerignore
.yamllint
.ycm_extra_conf.py
aclocal.m4
AUTHORS
build.gradle Bug 1553459 - Migrate to AndroidX r=geckoview-reviewers,agi 2020-09-18 22:29:04 +00:00
Cargo.lock Bug 1668776 - Update opcode for bug 1667258. r=nbp 2020-10-02 10:37:24 +00:00
Cargo.toml Backed out changeset 92a01ad5e890 (bug 1668398) for bustages complaining about ABIMachineSpec. CLOSED TREE 2020-10-02 03:49:26 +03:00
client.mk Bug 1660614 - Upgrade sccache to pick up more resilient behavior in the presence of cache read failures r=froydnj 2020-08-25 21:16:53 +00:00
client.py Bug 1650306 - Address the defects found by the pylint/no-else-return rule. r=sylvestre 2020-07-08 09:24:49 +00:00
CLOBBER Update configs. IGNORE BROKEN CHANGESETS CLOSED TREE NO BUG a=release ba=release 2020-08-24 14:18:41 +00:00
configure.in
configure.py Bug 1664077 - Remove _NON_GLOBAL_ACDEFINES. r=firefox-build-system-reviewers,mhentges,rstewart 2020-09-15 14:25:14 +00:00
GNUmakefile
gradle.properties Bug 1553459 - Migrate to AndroidX r=geckoview-reviewers,agi 2020-09-18 22:29:04 +00:00
gradlew
gradlew.bat
LEGAL
LICENSE
mach Bug 1638974 - Run 'mach mochitest' with Python 3; r=bc 2020-09-28 16:30:33 +00:00
Makefile.in Bug 1664077 - Remove xpcom-private.h. r=sg 2020-09-15 14:53:10 +00:00
moz.build Bug 1665854 - fx doc: Various improvements + configuration + fixes in the doc r=firefox-build-system-reviewers,rstewart 2020-09-22 06:26:17 +00:00
moz.configure Bug 1667892 - Move search for wget binary from old-configure to Python configure r=dmajor 2020-09-30 15:37:21 +00:00
mozilla-config.h.in
old-configure.in Bug 1667892 - Move search for wget binary from old-configure to Python configure r=dmajor 2020-09-30 15:37:21 +00:00
package-lock.json Bug 1620162 - Upgrade eslint-plugin-jest and fix new lint errors. r=bomsy,Standard8 2020-08-20 08:52:42 +00:00
package.json Bug 1620162 - Upgrade eslint-plugin-jest and fix new lint errors. r=bomsy,Standard8 2020-08-20 08:52:42 +00:00
README.txt Bug 1659631 - readme: update the wording to firefox, DONTBUILD.r=sylvestre 2020-08-18 04:04:36 +00:00
settings.gradle Backed out changeset d0ff30e1d830 (bug 1650692) for toolchains failures on ImageDecoderTest.kt. CLOSED TREE 2020-07-15 07:42:37 +03:00
substitute-local-geckoview.gradle
test.mozbuild

An explanation of the Firefox Source Code Directory Structure and links to
project pages with documentation can be found at:

    https://firefox-source-docs.mozilla.org/contributing/directory_structure.html

For information on how to build Firefox from the source code and create the patch see:

    https://firefox-source-docs.mozilla.org/contributing/contribution_quickref.html

If you have a question about developing Firefox, and can't find the solution
on https://firefox-source-docs.mozilla.org/, you can try asking your question on Matrix at chat.mozilla.org in `Introduction` (https://chat.mozilla.org/#/room/#introduction:mozilla.org) channel.


Nightly development builds can be downloaded from:

    https://archive.mozilla.org/pub/firefox/nightly/latest-mozilla-central/
            - or -
    https://www.mozilla.org/firefox/channel/desktop/#nightly

Keep in mind that nightly builds, which are used by Firefox developers for
testing, may be buggy.