Граф коммитов

10956 Коммитов

Автор SHA1 Сообщение Дата
longsonr b516ea3715 Bug 1633038 - Adjust some tests to wait for load event to try to ensure styles are loaded r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D90093
2020-09-14 17:30:06 +00:00
Glenn Watson 48436f197b Bug 1644691 - Update fuzziness for bugs/456219-2.html. r=mattwoodrow
Add an extra pixel of fuzziness for this test - a recent unrelated
change to WR thread timing made this intermittent fail more often.

Differential Revision: https://phabricator.services.mozilla.com/D90053
2020-09-14 00:01:17 +00:00
Lee Salzman 7d6987f54e Bug 1664459 - simplify WebRender radial gradient shader. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D89915
2020-09-13 18:26:32 +00:00
Narcis Beleuzu 51c243ddc3 Backed out changeset a3f95f66b7de (bug 1664459) for reftest failures on border-image-radial-gradient-width.html 2020-09-13 18:43:01 +03:00
Lee Salzman 16183ea20e Bug 1664459 - simplify WebRender radial gradient shader. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D89915
2020-09-13 08:40:22 +00:00
Kartikaya Gupta 80742a3694 Bug 1661903 - Update test expectation to match Chrome and be consistent with other similar scenarios. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D88747
2020-09-12 13:06:22 +00:00
Timothy Nikkel 7af5dd6078 Bug 1663537. Use scrollbar-width: none on some reftests that are not trying to test scrollbars. r=botond
These tests only failed on android, probably because the visual viewport size is different so we get a different result from the scrollbar calculation.

These tests seem to have an inconsistent mix of overflow: hidden and scrollbar-width: none. The desktop zooming scrollbars sometimes create scrollbars for overflow hidden now, so overflow hidden isn't enough, we need scrollbar-width: none.

layout/reftests/transform/compound-1-fail.html is the only file modified here that doesn't have overflow hidden or scrollbar-width: none already. Looking at the test it does not seem to be wanting to be anti-ref because of scrollbars (the transformed item looks different), so this seems to be an improvement (ie we won't pass because only the scrollbar differed).

Differential Revision: https://phabricator.services.mozilla.com/D90008
2020-09-12 06:59:53 +00:00
Frederic Wang 4f44f0d754 Bug 1664467: Remove runtime preferences for legacy MathML lengths. r=emilio
This commit remove the following preferences, which have been
disabled since Firefox 70:
- mathml.nonzero_unitless_lengths.disabled
- mathml.legacy_number_syntax.disabled

These are edge syntaxes for MathML3 lengths that don't align well
with CSS and we haven't received any bug report about it since they
were disabled. Tests are updated to treat attributes using such
values as invalid.

update tests

Differential Revision: https://phabricator.services.mozilla.com/D89920
2020-09-11 19:48:07 +00:00
Oriol Brufau 1a38c1beab Bug 1655581 - [css-grid] Use min-content size for intrinsic maximums resolution. r=mats
By mistake the specification used to say that, for items spanning
multiple tracks, the growth limits of the tracks with an intrinsic max
track sizing function should grow to accommodate the minimum
contribution of the item.

But this was a mistake, because an intrinsic max track sizing function
can only be min-content or max-content. So instead of distributing the
minimum contribution, it should be the min-content contribution.

The spec has been fixed and there is a CSSWG resolution in
https://github.com/w3c/csswg-drafts/issues/4790

This patch fixes the problem by reverting 2b923d48ea7e. The change is
likely web compatible, since it only affects a rare edge case with
'minmax()' where the min sizing function is 'auto' or a fixed value
smaller than the min-content contribution, the max sizing function is
'min-content', and an item whose minimum contribution is forced to be
smaller than the min-content contribution, and spans multiple tracks.

Differential Revision: https://phabricator.services.mozilla.com/D89145
2020-09-11 12:42:07 +00:00
Narcis Beleuzu 34b6fefd99 Backed out changeset 657830ceac83 (bug 1663537) for causing Bug 1664064. CLOSED TREE 2020-09-10 23:42:15 +03:00
Emilio Cobos Álvarez cb5386d0b7 Bug 1658881 - When failing to create a channel and an image request, make sure to set the image blocking status appropriately. r=tnikkel
This is the same status as we do for known no-data protocols here:

  https://searchfox.org/mozilla-central/rev/ac142717cc067d875e83e4b1316f004f6e063a46/dom/base/nsNoDataProtocolContentPolicy.cpp#59

This ensures we treat these two cases the same.

Differential Revision: https://phabricator.services.mozilla.com/D89382
2020-09-09 22:58:29 +00:00
Emilio Cobos Álvarez a3c20c9800 Bug 1662703 - Make appearance: button behave like auto. r=heycam
As per https://github.com/w3c/csswg-drafts/issues/5174.

Differential Revision: https://phabricator.services.mozilla.com/D89119
2020-09-10 08:58:09 +00:00
Razvan Maries f0ac3ad62a Backed out changeset baab244deeb0 (bug 1662703) for perma failures on 482681.xhtml. CLOSED TREE 2020-09-10 04:50:23 +03:00
Emilio Cobos Álvarez af8bc3472b Bug 1662703 - Make appearance: button behave like auto. r=heycam
As per https://github.com/w3c/csswg-drafts/issues/5174.

Differential Revision: https://phabricator.services.mozilla.com/D89119
2020-09-08 23:03:58 +00:00
Timothy Nikkel fa7aa5a0fe Bug 1663537. Use overlay scrollbars in a few reftests. r=kats
All of these reftests end up using a minimum scale with layout/classic scrollbars. (They hit the assert from the patch in bug 1663534.)

Some of them are only written with overlay scrollbars in mind (for example overflow-hidden-region-with-negative-left-positioned-element.html which I looked at in detail).

The change that causes them to fail is the code in nsHTMLScrollFrame::TryLayout that decides if we need scrollbars. Before desktop zooming scrollbars we compared the visual viewport size and the scrolled rect size. With desktop zooming scrollbars we compare the (layout) scrollport and the scrolled rect to determine if we need regular scrollbars and then compare the visual viewport size to the (layout) scrollport to determine if we need scrollbars to scroll the visual viewport inside the scrollport. Then can get different results.

Differential Revision: https://phabricator.services.mozilla.com/D89407
2020-09-08 23:47:48 +00:00
Narcis Beleuzu 8b53122255 Backed out changeset 95fc865fc8cf (bug 1663537) for reftest failures on font-inflation-1.html . CLOSED TREE 2020-09-08 14:07:09 +03:00
Butkovits Atila eaa0d5b024 Backed out changeset b5d39e472f05 (bug 1658881) for failures at test_docwrite_meta.html. CLOSED TREE 2020-09-08 12:35:30 +03:00
Timothy Nikkel 47eb2ac8d0 Bug 1663537. Use overlay scrollbars in a few reftests. r=kats
All of these reftests end up using a minimum scale with layout/classic scrollbars. (They hit the assert from the patch in bug 1663534.)

Some of them are only written with overlay scrollbars in mind (for example overflow-hidden-region-with-negative-left-positioned-element.html which I looked at in detail).

The change that causes them to fail is the code in nsHTMLScrollFrame::TryLayout that decides if we need scrollbars. Before desktop zooming scrollbars we compared the visual viewport size and the scrolled rect size. With desktop zooming scrollbars we compare the (layout) scrollport and the scrolled rect to determine if we need regular scrollbars and then compare the visual viewport size to the (layout) scrollport to determine if we need scrollbars to scroll the visual viewport inside the scrollport. Then can get different results.

Differential Revision: https://phabricator.services.mozilla.com/D89407
2020-09-08 08:27:30 +00:00
Emilio Cobos Álvarez 992e6196f4 Bug 1658881 - When failing to create a channel and an image request, make sure to set the image blocking status appropriately. r=tnikkel
This is the same status as we do for known no-data protocols here:

  https://searchfox.org/mozilla-central/rev/ac142717cc067d875e83e4b1316f004f6e063a46/dom/base/nsNoDataProtocolContentPolicy.cpp#59

This ensures we treat these two cases the same.

Differential Revision: https://phabricator.services.mozilla.com/D89382
2020-09-07 23:04:41 +00:00
Jonathan Kew 94149fadd5 Bug 1533462 - Enable the cross-process shared fontlist by default on Nightly builds. r=jwatt
Also add explicit line-height to a localized-family-names test for better consistency.

Differential Revision: https://phabricator.services.mozilla.com/D79963
2020-09-07 17:20:58 +00:00
longsonr 1d904c3e45 Bug 1603629 - fix dominant-baseline hanging and mathematical r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D88877
2020-09-04 11:00:40 +00:00
Ting-Yu Lin 1f00be3d53 Bug 1652112 Part 6 - Move remaining shape-outside reftests to wpt, and delete w3c-css/submitted/shapes1 folder. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D85020
2020-09-02 20:24:51 +00:00
Ting-Yu Lin f7a0b67ef8 Bug 1652112 Part 5 - Move shape-outside polygon reftests into wpt. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D85019
2020-09-02 20:23:55 +00:00
Ting-Yu Lin 3e3e17c3f6 Bug 1652112 Part 4 - Move shape-outside inset reftests into wpt. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D85018
2020-09-02 20:18:14 +00:00
Ting-Yu Lin ff2b86c068 Bug 1652112 Part 3 - Move shape-outside ellipse reftests into wpt. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D85017
2020-09-02 20:17:16 +00:00
Ting-Yu Lin 93ad2862e1 Bug 1652112 Part 2 - Move shape-outside circle reftests into wpt. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D85016
2020-09-02 21:32:10 +00:00
Ting-Yu Lin 2d4f738f49 Bug 1652112 Part 1 - Move shape-outside shape-box reftests into wpt. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D85014
2020-09-02 20:10:07 +00:00
Daniel Holbert 9f9527f388 Bug 1662880: Fix typo in reftest reference-case meta tag, for vert-block-size-small-or-larger-than-container-with-min-or-max-content-2b.html. r=boris
Differential Revision: https://phabricator.services.mozilla.com/D89210
2020-09-02 20:57:15 +00:00
Makoto Kato 21e3ca0fea Bug 1661621 - Add more emoji reftests for keycap and skintone. r=jfkthame
This is follow up issue of bug 1371386.

After landing it, some reftests for keycap and skintone are successful.

Differential Revision: https://phabricator.services.mozilla.com/D88539
2020-08-31 04:46:17 +00:00
Jonathan Kew 936d5b55b1 Bug 1533462 - Execute the deferred font-info loader immediately when running reftests, to avoid intermittent issues due to async completion triggering an extra reflow mid-test. r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D87194
2020-08-21 14:28:50 +00:00
Kartikaya Gupta 8223de6eea Bug 1661755 - Flip the ref and test setups for scroll-behavior-6.html. r=tnikkel
For all the other scroll-behavior-* tests, the "complex" behaviour is the "test"
and the "let's scroll these things to their intended destination" behaviour is
the "ref", as one would expect. Except for some reason in scroll-behavior-6, the
"ref" branch is the one doing all the tricky scrolling things and the other
branch has the simple intended outcomes. This patch inverts the branches so
that the test behaves more as expected.

Differential Revision: https://phabricator.services.mozilla.com/D88648
2020-08-28 20:43:47 +00:00
Anny Gakhokidze abc4db9fa9 Bug 1589102 - Part 10: Fix tests failing due to not waiting for the window load events, r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D87328
2020-08-28 17:21:09 +00:00
Emilio Cobos Álvarez f1b7a3ca58 Bug 1661509 - Fix SVGSVGElement::QueryInterface. r=longsonr
Differential Revision: https://phabricator.services.mozilla.com/D88475
2020-08-27 20:56:04 +00:00
Mats Palmgren bb86544bb1 Bug 1548753 - [css-lists] Prefer an ancestor's counter scope over a sibling's scope. r=emilio
https://github.com/w3c/csswg-drafts/issues/5477

Differential Revision: https://phabricator.services.mozilla.com/D87991
2020-08-27 18:26:38 +00:00
Hiroyuki Ikezoe 3fc3e2d805 Bug 1660089 - Use the nearest scrollable frame as the clip frame if the scrollable frame is overflow:hidden. r=botond
Without this change, the transition in the reftest in this commit has never
been composited because it's misrecognized as __jank__.
(Note that a tricky part to understand the jank is that we expand the pre-render
region based on the transformed frame size [1], in this case it's 400px width,
so that the expanded area will be smaller than the size based on 800px.)

[1] https://searchfox.org/mozilla-central/rev/73a14f1b367948faa571ed2fe5d7eb29460787c1/layout/base/nsLayoutUtils.cpp#10043,10045

Differential Revision: https://phabricator.services.mozilla.com/D88199
2020-08-27 00:09:59 +00:00
Jonathan Kew 3c2cb7fd1a Bug 1371386 - Take account of requirements for emoji-style or text-style presentation during font selection & fallback. r=m_kato
Differential Revision: https://phabricator.services.mozilla.com/D87304
2020-08-26 09:31:58 +00:00
longsonr 4f8808ae6f Bug 1459905 - Merge DOMSVGTranslatePoint and DOMSVGPoint and fix updates r=emilio
SVGSVGElement::SetCurrentScaleTranslate checks that things have changed but if we
manage to update both translate values before we get here then we'll skip the screen update
that we need.

Also
- introduces a tear off for SVGSVGElement.currentTranslate so we hand out the same object as required by the SVG idl
- removes SVGSVGElement::SetCurrentTranslate as dead code
- removes mPreviousScale and mPreviousTranslate from SVGSVGElement as they are no longer necessary

Differential Revision: https://phabricator.services.mozilla.com/D84796
2020-08-25 14:38:32 +00:00
Mihai Alexandru Michis b162701621 Backed out changeset 0cad1ef724ee (bug 1371386) for causing failures in emoji-fallback-3.html
CLOSED TREE
2020-08-24 21:02:10 +03:00
Jonathan Kew ba87878325 Bug 1371386 - Take account of requirements for emoji-style or text-style presentation during font selection & fallback. r=m_kato
Differential Revision: https://phabricator.services.mozilla.com/D87304
2020-08-24 14:24:12 +00:00
Joel Maher 5371bf42c5 Bug 166061 - Bug 1660661 - adjust svg alpha reftest expectations for windows 10 on hardware. r=kats
adjust svg alpha reftest expectations for windows 10 on hardware

Differential Revision: https://phabricator.services.mozilla.com/D87968
2020-08-23 16:04:52 +00:00
Stephen A Pohl f6a573510f Bug 1657743: Fix reftests. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D86721
2020-08-21 14:01:44 +00:00
Ting-Yu Lin 290f578f8a Bug 1633031 Part 2 - Add reftests for fragmenting multi-line column-oriented flex containers. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D87108
2020-08-19 21:22:34 +00:00
Ting-Yu Lin 7cb8492735 Bug 1633031 Part 1 - Stop considering available block-size when wrapping flex lines in multi-line column-oriented flex container. r=dholbert
Although this goes against the suggestion of the sample algorithm in the
spec, this brings the layout of the multi-line column-oriented flex
container in paginated context closer to the layout with no
fragmentation. This also matches Google Chrome's behavior.

Tweak flexbox-unbreakable-child-2.html so that it matches the rendering
as of this patch. Change the height of `.muticol` and the removal of
border in `flexContainer` to let two flex items fit exactly into the
flex container's height, making reference easier to write.

Differential Revision: https://phabricator.services.mozilla.com/D87107
2020-08-19 21:10:01 +00:00
Emilio Cobos Álvarez 325d955f89 Bug 1660048 - Remove dom.forms.color and dom.forms.datetime. r=smaug,marionette-reviewers,whimboo
They're enabled in all configurations and there's no plan to change
this. With it, dom.experimental_forms is also useless, so we can remove
it too.

Differential Revision: https://phabricator.services.mozilla.com/D87623
2020-08-19 18:24:06 +00:00
longsonr e3b924526e Bug 1659783 - Fix use pointing to image elements r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D87571
2020-08-19 15:25:39 +00:00
Emilio Cobos Álvarez 7c7897149c Bug 1414600 - Make media queries and viewport units in print be evaluated against the default page size minus margins. r=dholbert,nordzilla
For that, move the default page margin computation to nsPresContext.

See https://github.com/w3c/csswg-drafts/issues/5437 as to why doing this
and other alternatives.

Differential Revision: https://phabricator.services.mozilla.com/D87311
2020-08-19 10:32:16 +00:00
Sonia Singla 5f5c9fd7f2 Bug 1659267 - Remove usages of -moz-user-select across the Firefox codebase. r=emilio,marionette-reviewers,geckoview-reviewers,preferences-reviewers,whimboo,agi
Differential Revision: https://phabricator.services.mozilla.com/D87499
2020-08-18 23:37:51 +00:00
Zeke Medley a591e69aa0 Bug 1591204 - Support forced colors media feature r=emilio
Enabled behind layout.css.forced-colors.enabled pending finalization
of the spec:

<https://drafts.csswg.org/mediaqueries-5/#forced-colors>

Differential Revision: https://phabricator.services.mozilla.com/D87147
2020-08-17 20:50:49 +00:00
Zeke Medley d1653ccb9a Bug 1658780 - Update the prefers-contrast media query to use the new more/less keywords r=emilio
Per the resolution here:
https://github.com/w3c/csswg-drafts/issues/2943#issuecomment-672994920

Differential Revision: https://phabricator.services.mozilla.com/D86848
2020-08-17 01:41:16 +00:00
Emilio Cobos Álvarez 6f85f8c453 Bug 1656081 - Cleanup iframe sizing so that it does the same as every other replaced element. r=boris
Differential Revision: https://phabricator.services.mozilla.com/D85386
2020-08-16 18:45:39 +00:00