Commit Graph

10210 Commits

Author SHA1 Message Date
Charlie Marlow
cb99ca7617 Bug 1572800: Part 0: Add text-decoration-skip-ink: none to currently failing test cases r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D41880

--HG--
extra : moz-landing-system : lando
2019-08-14 17:14:20 +00:00
Emilio Cobos Álvarez
d5c4354d05 Bug 1571764 - Subtract combobox display frame border-padding when inferring the height from line-height. r=mats,jfkthame
This fixes it and seems to be an acceptable fix... Should I make it conditional
on box-sizing: border-box for completeness?  The display frame has border-box
box-sizing, and not having it would be a bug, I'd think...

Differential Revision: https://phabricator.services.mozilla.com/D41939

--HG--
extra : moz-landing-system : lando
2019-08-14 16:06:46 +00:00
Mats Palmgren
aa7733da8b Bug 1557825 part 2 - Add tests and update devtools for 'display:block ruby'. r=xidorn
Differential Revision: https://phabricator.services.mozilla.com/D40213

--HG--
extra : moz-landing-system : lando
2019-08-14 14:38:33 +00:00
Ciure Andrei
09f6af7d69 Backed out changeset cd37bc4841c4 (bug 1573775) for causing direction-009.html to perma fail CLOSED TREE
--HG--
rename : testing/web-platform/tests/mathml/presentation-markup/direction/direction-006-ref.html => layout/reftests/mathml/dir-6-ref.html
2019-08-14 16:56:53 +03:00
Frédéric Wang
c125cdfb68 Bug 1573775 - Export a few MathML dir reftests to WPT. r=emilio
* Tweak headers to add title and WPT meta tags.
* Simplify text content and use the Ahem font to avoid "random" result.
* Remove dir-11 since it has already been exported to
  mathml/relations/css-styling/dynamic-dir-1.html by @bkardell
* Move dir-10 to mathml/presentation-markup/direction/direction-010.html
* Move dir-9 to mathml/presentation-markup/direction/direction-009.html
  and add a .ini file for the corresponding failure expectation (bug 787215).
* Move dir-8 to mathml/presentation-markup/direction/direction-008.html
  and add a .ini file for the corresponding failure expectation.
* Move dir-7 to mathml/presentation-markup/direction/direction-007.html
* Move dir-6 to mathml/presentation-markup/direction/direction-006.html

Differential Revision: https://phabricator.services.mozilla.com/D41922

--HG--
rename : layout/reftests/mathml/dir-6-ref.html => testing/web-platform/tests/mathml/presentation-markup/direction/direction-006-ref.html
extra : moz-landing-system : lando
2019-08-14 11:19:35 +00:00
Hiroyuki Ikezoe
ba1ce0580a Bug 1508177 - Use expanded layout viewport height to tell whether we need to render the vertical overlay scrollbar. r=tnikkel
In the previous commit, we expanded layout viewport height but during reflow
the expanded layout viewport size hasn't reflected in
ScrollReflowInput::mContentsOverflowAreas.ScrollableOverflow(). We explicitly
need to use the expanded height to tell whether we need vertical vertical
scrollbars or not.

Note that the expanded layout viewport height should NOT be used for non-overlay
scrollbars cases since, for example, if the content width is specified by
`width: 100%`, the non-overlay vertical scrollbar narrows down the content's
used width a little bit because of the vertical scrollbar width, which in turn
the minimum scale gets bigger because the content's width became bit narrower,
thus the layout viewport size calculated with the minimum scale gets smaller,
then it results the vertical scrollbar no longer needs to be rendered, thus
the minimum scale gets back to the original value, then the vertical scroll
needs to be rendered again, thus this sequence of processes happens repreatedly.

Differential Revision: https://phabricator.services.mozilla.com/D40772

--HG--
extra : moz-landing-system : lando
2019-08-13 22:38:01 +00:00
Hiroyuki Ikezoe
a2a3c33989 Bug 1508177 - Expand the minimum scale height even if the expanded area doesn't contain any contents. r=botond
As a result of the expansion, position:fixed elements are attached to the
expanded layout viewport.

The expanded value is used behind a pref which is enabled by default on nightly
initially, and the pref will be fliped in bug 1571599 on other channels.

scrollbars-in-landscape-content.html still fails since the vertical overlay
scrollbar doesn't appear since we are not yet using the expanded value during
reflow to tell whether we need overlay scrollbars or not.  This will be fixed
by the next commit.

Differential Revision: https://phabricator.services.mozilla.com/D40771

--HG--
extra : moz-landing-system : lando
2019-08-13 22:37:57 +00:00
Hiroyuki Ikezoe
10f4aacd62 Bug 1508177 - Reftests that check scrollbars are properly appeared by the difference between visual and layout viewports. r=botond,tnikkel
scrollbars-in-landscape-content.html doesn't fail on environments where we don't
use overlay scrollbars because scrollbars for the visual viewport are not
rendered there.

Differential Revision: https://phabricator.services.mozilla.com/D40770

--HG--
extra : moz-landing-system : lando
2019-08-13 22:37:54 +00:00
Hiroyuki Ikezoe
ccb7fd1a3f Bug 1508177 - Add reftests to make sure that expanded layout viewport areas that are initially out of the visual viewport are rendered by setting resolution. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D40767

--HG--
extra : moz-landing-system : lando
2019-08-13 22:37:50 +00:00
Hiroyuki Ikezoe
cd3330b737 Bug 1508177 - Add reftests to make sure we can scroll to expaned layout viewport areas where no content exists. r=botond
There needs a position:fixed element at the right bottom to make the test
failure without proper fixes.

Differential Revision: https://phabricator.services.mozilla.com/D40766

--HG--
extra : moz-landing-system : lando
2019-08-13 22:37:48 +00:00
Hiroyuki Ikezoe
9de322f0cf Bug 1508177 - Add reftests to make sure position:fixed elements are attached to the layout viewport even if the layout viewport contains no visible contents area. r=botond
position-fixed-on-half-height-content.html is a test case that the document's
layout viewport contains no visible contents area without scaling.

position-fixed-on-landscape-content.html is a test case that the document's
layout viewport will contain no visible contents area if the document is scaled
down to fit the document to screen size.

position-fixed-on-square-content.html is a test case that the document's layout
viewport will contain no visible contents ares if the document is scaled up to
fit the document to screen size.

The latter two cases currently fail.

Differential Revision: https://phabricator.services.mozilla.com/D40765

--HG--
extra : moz-landing-system : lando
2019-08-13 22:36:39 +00:00
Hiroyuki Ikezoe
55cf8ccaed Bug 1508177 - Add an explicit "initial-scale=1,minimum-scale=1" meta viewport tag to avoid expanding scrollable area. r=botond
So that the vertical scrollbar on the root element doesn't accidentally appear
because of the expanding the scrollable area.

Differential Revision: https://phabricator.services.mozilla.com/D40763

--HG--
extra : moz-landing-system : lando
2019-08-13 22:36:11 +00:00
Frédéric Wang
a8ca8b2301 Bug 1573575 - Remove duplicate MathML tests for OpenType parameters. r=emilio
* All but the last parameter of test_opentype-limits.html are verified by
  mathml/presentation-markup/scripts/underover-parameters-1.html
* test_opentype-fraction.html is equivalent to
  mathml/presentation-markup/fractions/frac-parameters-1.html
  (however, fraction-1.otf is used by other tests).
* mathml/tests/test_opentype-radical.html is equivalent to
  mathml/presentation-markup/radicals/root-parameters-1.html
* test_opentype-scripts.html is equivalent to
  mathml/presentation-markup/scripts/subsup-parameters-1.html
* mathml/tests/test_opentype-stack.html is equivalent to
  mathml/presentation-markup/fractions/frac-parameters-2.html

Differential Revision: https://phabricator.services.mozilla.com/D41783

--HG--
extra : moz-landing-system : lando
2019-08-13 19:29:26 +00:00
Frédéric Wang
fefd742e55 Bug 1572417 - Update tests for mathbackground/mathcolor attributes now that they are supported on the semantics element. r=emilio
Depends on D41198

Differential Revision: https://phabricator.services.mozilla.com/D41643

--HG--
extra : moz-landing-system : lando
2019-08-13 08:33:56 +00:00
Alexis Beingessner
22dbda5b64 Bug 1571738 - Fallback as late as possible for svg/color fonts. r=jrmuizel
Also includes some documentation gardening for TextDrawTarget on what we don't support.

Differential Revision: https://phabricator.services.mozilla.com/D41272

--HG--
extra : moz-landing-system : lando
2019-08-12 15:40:26 +00:00
Ting-Yu Lin
ebf027e14b Bug 1571849 - In ColumnSetFrame, use mParentReflowInput to get the ColumnSetWrapperFrame's reflow input. r=dbaron
In ColumnSetFrame's reflow methods, mCBReflowInput is equal to
mParentReflowInput in most of the cases.

However, a multicol <button> has the HTMLButtonControl as the outermost
frame, where ColumnSetWrapper is its -moz-button-content anonymous
child. In this case, mCBReflowInput is HTMLButtonControl's reflow input.

To get the correct computedBSize of ColumnSetWrapper, we need to use
mParentReflowInput.

Differential Revision: https://phabricator.services.mozilla.com/D41497

--HG--
extra : moz-landing-system : lando
2019-08-12 06:41:51 +00:00
Ting-Yu Lin
30b01f4f60 Bug 1572912 - Enable column-span preference to fix existing test failures. r=dbaron
Differential Revision: https://phabricator.services.mozilla.com/D41496

--HG--
extra : moz-landing-system : lando
2019-08-12 04:32:34 +00:00
Glenn Watson
511c44ac9f Bug 1572779 - Update test expectations for perspective-scrolling-1.html. r=kvark
This bug became an unexpected PASS on tier-2 android platform after
landing the fixes for bug 1572197. The fixes in that bug were
specifically to fix this test on windows platforms, so it's not
surprising that it also fixes it on android.

Differential Revision: https://phabricator.services.mozilla.com/D41493

--HG--
extra : moz-landing-system : lando
2019-08-12 01:11:17 +00:00
Emilio Cobos Álvarez
eead6b45e1 Bug 1499000 - followup: Annotate the test as failing on Android as the image it uses is not available.
CLOSED TREE
MANUAL PUSH: bustage
2019-08-09 21:56:41 +02:00
Emilio Cobos Álvarez
56df9575bc Bug 1499000 - Don't do CORS checks on CSS images with the resource:// scheme. r=bzbarsky
CORS only works on http channels, so anything else that tries to do a
CORS-enabled request fails catastrophically.

resource:// images are useful for extension developers, so don't perform CORS
checks on them. We may want to also do file:// and fix bug 1565509, while at it,
if we consider it's causing developer pain.

Differential Revision: https://phabricator.services.mozilla.com/D40651

--HG--
extra : moz-landing-system : lando
2019-08-09 18:09:55 +00:00
Emilio Cobos Álvarez
03209c7dd2 Bug 1569078 - Back out changeset 97e691afc504c62ba2295bb3e9c3d33204b15d60 (bug 1456052) for causing this bug.
MANUAL PUSH: Backout
2019-08-09 13:06:40 +02:00
L. David Baron
99fc596f62 Bug 1547759 - Ensure that we call ApplyRelativePositioning after the frame's new size has been set so it works correctly for RTL. r=jfkthame,dholbert
Differential Revision: https://phabricator.services.mozilla.com/D40568

--HG--
extra : moz-landing-system : lando
2019-08-08 20:04:40 +00:00
L. David Baron
d40bd66226 Bug 1547759 - Add reftest. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D40564

--HG--
extra : moz-landing-system : lando
2019-08-05 11:41:41 +00:00
L. David Baron
85cac89c70 Bug 1561792 - Rename the pref gfx.font_ahem_antialias_none to gfx.font_rendering.ahem_antialias_none to avoid the additional pref observer added in the previous patch. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D41068

--HG--
extra : moz-landing-system : lando
2019-08-07 20:46:04 +00:00
L. David Baron
7f14d882ae Bug 1561792 - Handle dynamic changes of gfx.font_ahem_antialias_none (and make FlushFontAndWordCaches stronger for other callers) and fix a few test failures/intermittents using it. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D41067

--HG--
extra : moz-landing-system : lando
2019-08-07 20:44:35 +00:00
Charlie Marlow
be2d349416 Bug 1555865: added text-decoration-thickness to the text-decoration shorthands r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D40335

--HG--
extra : moz-landing-system : lando
2019-08-07 17:42:15 +00:00
Ting-Yu Lin
83d9aa16f4 Bug 1571135 - Remove the preference that controls breaking floats inside columns. r=mats
Differential Revision: https://phabricator.services.mozilla.com/D40587

--HG--
extra : moz-landing-system : lando
2019-08-05 17:39:19 +00:00
Emilio Cobos Álvarez
141334b620 Bug 1571222 - Fuzz a test on Android to keep central green. rpending=dbaron
This annotation matches the one in
layout/reftests/css-invalid/select/reftest.list for
select-disabled-fieldset-1.html (which should really produce the same
rendering, and have the same reference).

This is a one-pixel fuzz on the fieldset border near the bottom right corner.

It's unclear which patch of this pushlog, if any, caused this:

  https://hg.mozilla.org/mozilla-central/pushloghtml?changeset=4a49d88894d8d88f87760ac59ae35b2158fab7b2

Probably bug 1404868, which added reftests and tickled something. But it seems
this is not really that patches' fault, so to avoid speculatively backing it
out, with the chance of it not being the offender, let's mark it as fuzzy for
now.

I kept the exact same annotation as the other test, since this goes directly to
central, so it's less risky.

We could try to make it fuzzy-if(Android,9-9,1-1), maybe, though given it seems
to be affected to changes to adjacent reftests that may be unwise.
2019-08-03 19:36:29 +02:00
L. David Baron
20201d0cc7 Bug 1404868 - Always reflow float placeholders when they move to a different block fragment. r=TYLin
Differential Revision: https://phabricator.services.mozilla.com/D40276

--HG--
extra : moz-landing-system : lando
2019-08-02 21:05:20 +00:00
L. David Baron
cf73a1c8cc Bug 1404868 - Add reftests. r=TYLin
Differential Revision: https://phabricator.services.mozilla.com/D40273

--HG--
extra : moz-landing-system : lando
2019-08-02 23:44:13 +00:00
Emilio Cobos Álvarez
eb1de83a74 Bug 1450173 - Allow the datetime wrapper to grow so that you can e.g. align its contents using text-align. r=dholbert
Also drive-by remove some useless prefixes since user-select was unprefixed in
bug 1492739.

Differential Revision: https://phabricator.services.mozilla.com/D40456

--HG--
extra : moz-landing-system : lando
2019-08-02 17:31:09 +00:00
Ting-Yu Lin
b14d39764b Bug 1548100 Part 2 - Fix the block-size of the column-rule by consuming available block-size. r=dbaron
After enabling column-span, ColumnSet becomes an anonymous child under
ColumnSetWrapperFrame. It doesn't need to handle border and padding,
containment, and non-auto block-size. ColumnSet's final block-size is
simply the union of ::-moz-column-content frames' rects.

However, we should extend ColumnSet's block-size to consume the
available block-size if the ColumnSetWrapper's block-size is constrained
so that the column rules are drawn to the block-end edge of the multicol
container.

Differential Revision: https://phabricator.services.mozilla.com/D39060

--HG--
rename : testing/web-platform/meta/css/css-multicol/multicol-breaking-000.html.ini => testing/web-platform/meta/css/css-multicol/multicol-rule-nested-balancing-001.html.ini
rename : testing/web-platform/meta/css/css-multicol/multicol-breaking-000.html.ini => testing/web-platform/meta/css/css-multicol/multicol-rule-nested-balancing-002.html.ini
rename : testing/web-platform/meta/css/css-multicol/multicol-breaking-000.html.ini => testing/web-platform/meta/css/css-multicol/multicol-span-all-rule-001.html.ini
extra : moz-landing-system : lando
2019-08-01 22:48:55 +00:00
L. David Baron
0b4a5a5bc8 Bug 1420528 - As with constrained block-size, reflow lines with floats when block-size was *previously* constrained. r=TYLin
On its own (without the previous patch), this fixes bug 1406291.

Combined with the previous patch, this patch fixes this bug (bug
1420528) when column-span is not enabled (today's configuration), and
also fixes 1411799.

Differential Revision: https://phabricator.services.mozilla.com/D39818

--HG--
extra : moz-landing-system : lando
2019-08-01 06:57:07 +00:00
L. David Baron
10aa1b483d Bug 1420528 - When a frame that was incomplete doesn't fit, make sure we reflow it again. r=TYLin
This patch fixes bug 1420528 when column-span is enabled, and it also
fixes bug 1468654.

Differential Revision: https://phabricator.services.mozilla.com/D39582

--HG--
extra : moz-landing-system : lando
2019-08-01 00:48:05 +00:00
L. David Baron
2cccdeaf40 Bug 1420528 - Add reftests for other bugs fixed by this bug. r=TYLin
Differential Revision: https://phabricator.services.mozilla.com/D40144

--HG--
extra : moz-landing-system : lando
2019-08-01 06:55:04 +00:00
L. David Baron
1abcde2948 Bug 1420528 - Add reftest. r=TYLin
Note that I introduced a blank line to make the intent of the NOTE
clearer, which I had to research.  I think it's clear it covers the
three tests below it based on
https://hg.mozilla.org/mozilla-central/rev/53489b3e14f1 and
https://bugzilla.mozilla.org/show_bug.cgi?id=967311#c0 .

I'm also running this test both with and without the column-span pref,
because those two states will be fixed by different patches.

Co-authored-by: L. David Baron <dbaron@dbaron.org>
Co-authored-by: Daniel Holbert <dholbert@cs.stanford.edu>

Differential Revision: https://phabricator.services.mozilla.com/D39581

--HG--
extra : moz-landing-system : lando
2019-08-01 00:48:00 +00:00
Jamie Nicol
b50b6a29c2 Bug 1570544 - Mark emoji reftests as failing for geckoview (regardless of webrender) r=lsalzman
These tests were marked as `fails-if(geckoview&&!webrender)`. They are
failing on geckoview because of bug 1558513: there is an offset
between the emojis in the test and reference images.

The reason that they were passing on webrender previously was because
the emojis weren't being drawn at all, so both the test and reference
images were blank. Bug 1562316 fixed the emojis being drawn with
webrender, but bug 1558513 remains (they are still offset).

Differential Revision: https://phabricator.services.mozilla.com/D40191

--HG--
extra : moz-landing-system : lando
2019-08-01 14:55:28 +00:00
Daniel Holbert
1a9a2f27ea Bug 1570550: Increase fuzzy threshold for webkit-text-stroke-property-001.html and -003.html on Android WebRender, to reflect reality. (no review, test-annotation-only)
Differential Revision: https://phabricator.services.mozilla.com/D40325

--HG--
extra : moz-landing-system : lando
2019-08-01 22:21:13 +00:00
Ciure Andrei
8a5a8ec27a Backed out 2 changesets (bug 1548100) for causing nsColumnSetFrame.cpp perma asertion failures CLOSED TREE
Backed out changeset a06a6a6e1c5e (bug 1548100)
Backed out changeset 03a11c109d07 (bug 1548100)
2019-08-02 00:44:55 +03:00
Ting-Yu Lin
d6aaf98bcd Bug 1565665 - Make ColumnSet and -moz-column-content frames always "display: block". r=dbaron
We expect ColumnSet and -moz-column-content to be block outside.

If ColumnSets' display style is inherit from ColumnSetWrapper, then a
multicol with "display: inline-block" is going to wrap ColumnSet in a
inline nsLineBox when ColumnSet is added to ColumnSetWrapper, which is
not what we want.

This change fixed [.multicol 4] and [.multicol 6] in
multicol-gap-percentage-001.html with column-span disable, but it can
also fix [.multicol 5] in multicol-gap-percentage-001.html when
column-span is enabled (bug 1489298), so I go ahead and enable the pref
in that test.

Differential Revision: https://phabricator.services.mozilla.com/D39997

--HG--
extra : moz-landing-system : lando
2019-07-31 21:44:07 +00:00
Ting-Yu Lin
e65d961df7 Bug 1548100 Part 2 - Fix the block-size of the column-rule by consuming available block-size. r=dbaron
After enabling column-span, ColumnSet becomes an anonymous child under
ColumnSetWrapperFrame. It doesn't need to handle border and padding,
containment, and non-auto block-size. ColumnSet's final block-size is
simply the union of ::-moz-column-content frames' rects.

However, we should extend ColumnSet's block-size to consume the
available block-size if the ColumnSetWrapper's block-size is constrained
so that the column rules are drawn to the block-end edge of the multicol
container.

Differential Revision: https://phabricator.services.mozilla.com/D39060

--HG--
rename : testing/web-platform/meta/css/css-multicol/multicol-breaking-000.html.ini => testing/web-platform/meta/css/css-multicol/multicol-rule-nested-balancing-001.html.ini
rename : testing/web-platform/meta/css/css-multicol/multicol-breaking-000.html.ini => testing/web-platform/meta/css/css-multicol/multicol-rule-nested-balancing-002.html.ini
rename : testing/web-platform/meta/css/css-multicol/multicol-breaking-000.html.ini => testing/web-platform/meta/css/css-multicol/multicol-span-all-rule-001.html.ini
extra : moz-landing-system : lando
2019-08-01 00:03:22 +00:00
Timothy Nikkel
7184148ba0 Bug 1569215. In StackingContextHelper constructor pass parent scale to ChooseScale. r=jrmuizel
This might seem like we are including the parent scale twice because it is also included in mInheritedTransform but FrameLayerBuilder::ChooseScale only incorporates the passed in scale when combining it with a scale computed purely based on the local transform induced by this stacking context item.

This also fixes bug 1564698 and doesn't regress bug 1495163 (the only testcase I can still find for the regressing bug, bug 1415987).

Differential Revision: https://phabricator.services.mozilla.com/D39867

--HG--
extra : moz-landing-system : lando
2019-08-01 02:03:19 +00:00
Daniel Holbert
76fa21ac46 Bug 1570520: Increase fuzzy threshold for reftests webkit-text-stroke-property-003.html and webkit-text-stroke-property-005.html. (no review, test-annotation-only)
Differential Revision: https://phabricator.services.mozilla.com/D40147

--HG--
extra : moz-landing-system : lando
2019-08-01 01:52:08 +00:00
Hiroyuki Ikezoe
2d61e340d1 Bug 1520096 - Enable reftests related to meta viewport tags on WebRender. r=botond
The reason of failures has been solved by bug 1563717.

Differential Revision: https://phabricator.services.mozilla.com/D39637

--HG--
extra : moz-landing-system : lando
2019-07-31 21:00:31 +00:00
Lee Salzman
08eecf9eae Bug 1568858 - always stretch box shadows except for Cairo. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D39412

--HG--
extra : moz-landing-system : lando
2019-07-26 16:31:21 +00:00
Andreea Pavel
e4263c00eb Merge mozilla-inbound to mozilla-central. a=merge 2019-07-25 08:59:39 +03:00
Emilio Cobos Álvarez
d81592dcc2 Bug 1456052 - Change overflow-clip-box of textarea to be consistent with text inputs and match other browsers. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D38794

--HG--
extra : moz-landing-system : lando
2019-07-24 14:56:13 +00:00
Emilio Cobos Álvarez
49478cea9a Bug 1567105 - Tests. r=jwatt
The reftest-paged tests don't trigger the document clone code-path (I realized
that after writing them), but I guess they don't hurt, the printpreview test
does fail without the previous patch.

Depends on D39053

Differential Revision: https://phabricator.services.mozilla.com/D39054

--HG--
extra : moz-landing-system : lando
2019-07-23 19:22:48 +00:00
Ciure Andrei
065e9a00d1 Backed out changeset 8514a3095fca (bug 1456052) for causing padding-scrollbar-placement.html to perma fail CLOSED TREE 2019-07-23 02:50:38 +03:00
Andrew Swan
194eb24d5d Bug 1563331 Fix obsolete use of <tabs> r=bdahl
After bug 1555060, <tabs> elements should not use dom accessors to get
to the <tab> elements inside a <tabs>.  This test was using lastChild,
this patch brings it up to date.

Differential Revision: https://phabricator.services.mozilla.com/D38526

--HG--
extra : moz-landing-system : lando
2019-07-22 22:01:40 +00:00