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

824 Коммитов

Автор SHA1 Сообщение Дата
Andrew Osmond 6cba1775c3 Bug 1453935 - Ensure that we snap within the visible rect with WebRender. r=kvark
Differential Revision: https://phabricator.services.mozilla.com/D18869
2019-02-07 18:05:43 -05:00
Andreea Pavel 7e3beb59f7 Backed out changeset 87ad4b91e29f (bug 1453935) for reftest failures on a CLOSED TREE 2019-02-08 00:45:29 +02:00
Andrew Osmond fa36639a3b Bug 1453935 - Ensure that we snap within the visible rect with WebRender. r=kvark
Differential Revision: https://phabricator.services.mozilla.com/D18869
2019-02-07 15:26:54 -05:00
Daniel Holbert cde912690c Bug 1522898: Account for box-sizing (add border & padding) when setting a main-size property value override on a flex item (which it uses for aspect ratio calculations). r=mats
For elements that have box-sizing:border-box specified, the aspect ratio
calculation code subtracts out border & padding from any specified property
values.

So, when we create a fake "override" specified property value for a flex item
whose main size has been resolved, we need to add in the border and padding to
account for the fact that they're going to be subtracted out later.

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

--HG--
rename : layout/reftests/w3c-css/submitted/flexbox/flexbox-intrinsic-ratio-001-ref.html => layout/reftests/w3c-css/submitted/flexbox/flexbox-intrinsic-ratio-007-ref.html
rename : layout/reftests/w3c-css/submitted/flexbox/flexbox-intrinsic-ratio-001.html => layout/reftests/w3c-css/submitted/flexbox/flexbox-intrinsic-ratio-007.html
rename : layout/reftests/w3c-css/submitted/flexbox/flexbox-intrinsic-ratio-001v.html => layout/reftests/w3c-css/submitted/flexbox/flexbox-intrinsic-ratio-007v.html
extra : moz-landing-system : lando
2019-02-04 23:06:16 +00:00
Daniel Holbert 7b8111e317 Bug 1520946: Shrink some content in various w3c-submitted flexbox tests so that they won't trigger scrollbars in WPT harness. r=TYLin
All of these tests have an .ini file indicating a failure for at least one of
them right now, in the copy that lives in the WPT harness, because
 - they trigger a scrollbar in the WPT harness
...and:
 - the scrollbar is a slightly different size in the reference case vs.
   in one of the testcases, e.g. due to a tiny margin being honored (or not)
   on the final piece of content.

This patch shrinks the content a bit in these test files so that they all fit
in a 400x400 viewport and won't trigger a scrollbar. I expect this should make
them pass in the WPT harness when they make the roundtrip through our
synchronization process.

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

--HG--
extra : moz-landing-system : lando
2019-01-18 19:36:30 +00:00
Emilio Cobos Álvarez c89256299a Bug 957915 - Handle calc(%) on tables. r=mats
This patch makes us handle calc with percentages when we can convert to
percentages the same way we handle plain percentages in table layout.

We still treat length + percentage as auto (this matches Blink / WebKit as
well). There's one case we differ with Blink / WebKit, which is calc(% + 0px),
which they'd treat as auto instead of a percentage.

I think this is a bug on them (or at least worth some spec clarification). I
filed https://github.com/w3c/csswg-drafts/issues/3482 for that.

In practice what that'd means for us if the WG decides that Blink / WebKit is
right in that case is that we'd need to keep track of whether the calc()
specifies lengths, and return false from ConvertsToPercent if so.

In any case, nothing that would massively change this patch, and I think enough
of an edge case that is not worth blocking on the CSSWG decision here. Though I
could be convinced otherwise of course.

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

--HG--
extra : moz-landing-system : lando
2019-01-15 19:39:23 +00:00
Andreea Pavel 9adc37e4a2 Bug 1465260 - disable box-sizing-replaced-002.xht on Android opt for frequent failures r=jmaher 2018-12-21 14:28:00 +02:00
Andreea Pavel a4a6ecec31 Backed out changeset 37feb66e0984 (bug 1465260) for failing reftests on a CLOSED TREE 2018-12-22 12:53:44 +02:00
Cristina Coroiu cc534321e8 Bug 1465260 - disable box-sizing-replaced-002.xht on Android opt for frequent failuires r=jmaher 2018-12-21 14:28:00 +02:00
Boris Chiou 0605a25f5e Bug 1322780 - Part 5: Adjust reftests to be fitted into 600x600. r=dholbert
If the size is larger than 600x600, we cannot test all the rendering
results, and it seems there is a bug related the inactive windows,
https://github.com/web-platform-tests/wpt/issues/13563, which may causes
that the scroll bar has different color.

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

--HG--
extra : moz-landing-system : lando
2018-12-20 07:00:15 +00:00
Boris Chiou 647706e4fd Bug 1322780 - Part 4: Add tests. r=dholbert
1. Test the most simple cases when we use max-content/min-content on
   width/height/block-size.
   * block-size-with-min-or-max-content-1a.html
   * block-size-with-min-or-max-content-1b.html
2. Test base cases when we use max-content/min-content on
   width/height/block-size inside the table element.
   * block-size-with-min-or-max-content-table-1a.html
   * block-size-with-min-or-max-content-table-1b.html
3. For {horizontal|vertical} writing mode, we use max-content/min-content on
   {min-|max-}{height|width} and {min-|max-}block-size on the inner element.
   * hori-block-size-small-or-larger-than-container-with-min-or-max-content-1.html
   * vert-block-size-small-or-larger-than-container-with-min-or-max-content-1.html
4. For {horizontal|vertical} writing mode, we use max-content/min-content on
   {min-|max-}{height|width} on the outer element (i.e. the container).
   * hori-block-size-small-or-larger-than-container-with-min-or-max-content-2a.html
   * vert-block-size-small-or-larger-than-container-with-min-or-max-content-2a.html
5. For {horizontal|vertical} writing mode, we use max-content/min-content on
   {min-|max-}block-size on the outer element (i.e. the container).
   * hori-block-size-small-or-larger-than-container-with-min-or-max-content-2b.html
   * vert-block-size-small-or-larger-than-container-with-min-or-max-content-2b.html

Depends on D14320

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

--HG--
extra : moz-landing-system : lando
2018-12-18 18:47:41 +00:00
Boris Chiou c35f47093e Bug 1322780 - Part 2: Support unprefixed min-content and max-content. r=mats,emilio
Support unprefixed min-content and max-content and treat the prefixed
version as aliases for
1. width, min-width, max-width if inline-axis is horizontal, and
2. height, min-height, max-height if inline-axis is vertical, and
3. inline-size, min-inline-size, max-inline-size, and
4. flex-basis.

Besides, update the test cases to use unprefixed max-content and
min-content.

Depends on D7535

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

--HG--
extra : moz-landing-system : lando
2018-12-18 18:47:37 +00:00
Manuel Rego Casasnovas 74286ae6ec Bug 1511963 - Fix reference in contain-layout-suppress-baseline-002.html r=emilio
It was pointing to contain-layout-suppress-baseline-001-ref.html
but the correct one is contain-layout-suppress-baseline-002-ref.html.
2018-12-04 04:24:00 +02:00
Daniel Holbert 43d2e1f178 Bug 1507663 part 5: Remove stray/unused markup for "basic"/"basc" class in contain-size-fieldset-002-ref.html. r=TYLin
This class wasn't applied due to a typo, and it's unnecessary anyway -- there's
a separate 'fieldset {...}' CSS rule further down in the file that has the same
effect (hiding the border and the textual contents).

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

--HG--
extra : moz-landing-system : lando
2018-11-26 22:02:22 +00:00
Daniel Holbert 861b0e54bb Bug 1507663 part 4: Add dedicated reftests to verify that "contain:layout" suppresses baseline alignment. r=TYLin
Note that we don't get this correct for form controls yet, so the -002 test is annotated as "fails" for now.

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

--HG--
extra : moz-landing-system : lando
2018-11-26 22:00:46 +00:00
Daniel Holbert cfb6ab418b Bug 1507663 part 3: Update titles to remove stale references to baseline alignment, in two reftests that don't test baseline alignment. r=TYLin
Depends on D12615

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

--HG--
extra : moz-landing-system : lando
2018-11-26 21:17:52 +00:00
Daniel Holbert 6c0b28dbdd Bug 1507663 part 2: Adjust reftest 'contain-size-button-001.html' to expect that contain:size *does not* suppress baseline alignment. r=TYLin
Note that Firefox doesn't actually match this expectation yet, so I've added a
'fails' annotation to the manifest with the followup bug number.

Also, this patch makes several other improvements to this test:

 - remove red background in testcase.  This was making the testcase spuriously
   fail in Chrome, because Chrome paints (at least) a 1px-tall background-area
   on empty buttons, which meant a 1px-tall red area in the testcase vs. a
   1px-tall gray area in the reference case.
 - clear floats to prevent them from piling up awkwardly.
 - use 'vertical-align:top' to turn off baseline alignment in parts of the test
   where the testcase has text and the reference case does not (and where we're
   not intentionally testing the baseline's influence on layout).

Depends on D12614

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

--HG--
extra : moz-landing-system : lando
2018-11-26 21:05:34 +00:00
Daniel Holbert 856c7058bc Bug 1507663 part 1: Uncomment/invert expectations in some reftests to now expect that contain:size *does not* interfere with baseline alignment. r=TYLin
Differential Revision: https://phabricator.services.mozilla.com/D12614

--HG--
extra : moz-landing-system : lando
2018-11-26 20:01:57 +00:00
Joel Maher 6ae712cb2a Bug 1509054 - add fuzzy-if statements to allow reftests to run on new windows10 AMI image. r=kats
add fuzzy-if statements to allow reftests to run on new windows10 AMI image

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

--HG--
extra : moz-landing-system : lando
2018-11-21 16:11:24 +00:00
Ting-Yu Lin 1209bed8a8 Bug 1491915 - Fix bullet frame creation for columns. r=bzbarsky
The modification to nsLayoutUtils::GetFirstLinePosition() is needed because we
need to get the correct first line position from child (i.e. ColumnSet) when
there's an outside bullet on ColumnSetWrapperFrame.

The difference between the two newly added tests is "overflow: hidden" on
the columns.

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

--HG--
extra : moz-landing-system : lando
2018-11-16 21:46:23 +00:00
Joel Maher 65cec285ac Bug 1507161 - adjust fuzzy-if statements for win10 tests that are failing on new windows10 ami image. r=ahal
adjust fuzzy-if statements for win10 tests that are fialing on new windows 10 ami image

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

--HG--
extra : moz-landing-system : lando
2018-11-14 18:37:30 +00:00
Lee Salzman 81c20a9e90 Bug 1506129 - Fuzz for fixed WebRender DWrote text render mode. r=kats
Depends on D11509

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

--HG--
extra : moz-landing-system : lando
2018-11-09 18:55:58 +00:00
Boris Chiou d781fa81ce Bug 1500107 - Fix the default behavior of scale:<number>{1}. r=birtles
The current spec says: "If only the X value is given, the Y value
defaults to the same value.", so we should update the behavior.

Besides, we also update the serialization, so we serialization both
specified and computed value by servo. We enable the preference
for all the css-transforms, so some of them are passed now.

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

--HG--
extra : moz-landing-system : lando
2018-11-06 23:44:24 +00:00
Ting-Yu Lin f1ae18f596 Bug 1504387 - Remove preference "layout.css.shape-outside.enabled". r=bradwerth,xidorn
shape-outside, shape-margin, shape-image-threshold have been shipped in Firefox
62. We can remove the preference.

The change in devtools/shared/css/generated/properties-db.js is generated by
"./mach devtools-css-db"

The actual shape-image CORS mode tests in file_shape_outside_CORS.html are
moved into test_shape_outside_CORS.html because we don't need the <iframe>
trick to enable the feature.

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

--HG--
extra : moz-landing-system : lando
2018-11-05 15:27:36 +00:00
Lee Salzman c2b504684d Bug 1502152 - Skia m71 fuzzing. r=rhunt 2018-10-30 22:17:35 -04:00
Daniel Holbert e7d21b64b2 Bug 1502510: Provide missing image file for calc-background-position and calc-background-size reftests. r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D9951

--HG--
rename : layout/reftests/backgrounds/blue-32x32.png => layout/reftests/w3c-css/submitted/values3/support/blue-32x32.png
extra : moz-landing-system : lando
2018-10-29 00:57:16 +00:00
Emilio Cobos Álvarez 8e5db71984 Bug 1501125 - Use WR clips instead of a mask as well for circle() and ellipse() shapes. r=kats
Differential Revision: https://phabricator.services.mozilla.com/D9463
2018-10-24 00:43:26 +02:00
Cristina Coroiu 0846a53f21 Bug 1432941 - Disable multicol-inherit-003.xht on mac for frequent failures. r=jmaher 2018-10-20 08:07:00 -04:00
Gurzau Raul fa37566219 Merge inbound to mozilla-central. a=merge 2018-10-10 07:35:14 +03:00
Daniel Holbert 12fe521b72 Bug 1495470: Only let 'contain:layout/paint' create stacking contexts on frames that support it. r=dbaron
Differential Revision: https://phabricator.services.mozilla.com/D7926

--HG--
extra : moz-landing-system : lando
2018-10-09 21:04:03 +00:00
Manuel Rego Casasnovas d9ecddc9fa Bug 1491235: [css-contain] Make 'contain:layout' (not 'contain:size') suppress baseline measurements r=dholbert
The CSSWG has recently resolved that layout containment
suppress baseline alignment, while size containment does not:
https://github.com/w3c/csswg-drafts/issues/2995

Spec text (https://drafts.csswg.org/css-contain/#containment-layout):
  "7. For the purpose of the vertical-align property,
   or any other property whose effects need to relate
   the position of the containing element's baseline
   to something other than its descendants,
   the containing element is treated as having no baseline."

And a note in (https://drafts.csswg.org/css-contain/#containment-size):
  "Note: size containment does not suppress baseline alignment.
   See layout containment for that."

This patch does this change just switching IsContainSize()
by IsLayoutSize() in several places related to baseline alignment
in the source code.

With the patch several WPT tests start to pass. Apart from that,
some of the tests under vendor-imports are updated to follow
the new behavior.

--HG--
extra : amend_source : 05dc9a320afeb1d58981e2bd8bc47b435999f2f9
2018-10-09 14:13:13 -07:00
Emilio Cobos Álvarez d2ed7ef067 Bug 1493645 - Fix line endings in flexbox-dyn-resize-001.html. r=me 2018-09-28 00:28:57 +02:00
Daniel Holbert 62925b4703 Bug 1493645 part 1: When caching flex item sizes, use computed inline size as part of the cache key. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D6991

--HG--
extra : moz-landing-system : lando
2018-09-26 22:51:08 +00:00
Jonathan Kew 24a9c4ca21 Bug 1493181 - Use rounding instead of ceiling when computing 'ch' width; update test expectations accordingly. r=manishearth 2018-09-22 23:26:55 +01:00
Mats Palmgren 67932714b4 Bug 1491731 - [css-text-3] Resolve 'text-indent' using a zero percentage basis in intrinsic sizing. r=dholbert
Per CSSWG resolution:
https://github.com/w3c/csswg-drafts/issues/1597#issuecomment-406001183
2018-09-17 20:14:24 +02:00
Mats Palmgren 280c9ee0c5 Bug 1490730 part 2 - [css-grid] Static position should use content-box, not padding-box. Test reference updates. 2018-09-15 01:30:18 +02:00
Jeff Muizelaar 352d476720 Bug 1490640. Mark intermittent tests as random. 2018-09-12 21:58:57 -04:00
Ryan VanderMeulen a167f28e51 Bug 1392106 - Annotate more failing tests as random on Win7. r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D5688

--HG--
extra : rebase_source : 27d50e4a9fc0731630999f9f96883fe367a4beb8
2018-09-10 15:30:44 -04:00
Cosmin Sabou de7676288a Merge mozilla-inbound to mozilla-central. a=merge 2018-09-11 13:06:37 +03:00
Gerald Squelart 7927ab927e Bug 1470462 - contain:size for nsGridContainerFrame - r=dholbert
When contain:size is set for a grid container, ignore sizes from children when
computing own size during layout.

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

--HG--
rename : layout/reftests/w3c-css/submitted/contain/contain-size-flex-001-ref.html => layout/reftests/w3c-css/submitted/contain/contain-size-grid-001-ref.html
rename : layout/reftests/w3c-css/submitted/contain/contain-size-flex-001.html => layout/reftests/w3c-css/submitted/contain/contain-size-grid-001.html
extra : moz-landing-system : lando
2018-09-11 00:00:05 +00:00
Daniel Holbert b93eae7de2 Bug 1486086: Switch to use logical axes, for stale physical-axis-based flex-item border/padding calculation. r=mats
Differential Revision: https://phabricator.services.mozilla.com/D4974

--HG--
extra : moz-landing-system : lando
2018-09-10 17:40:41 +00:00
Andreea Pavel 68e3aa4736 Merge mozilla-central to mozilla-inbound. a=merge on a CLOSED TREE 2018-09-11 01:02:34 +03:00
Daniel Holbert 1251117de4 Bug 1490111: Fix typo in reference case link-tag for reftest contain-layout-formatting-context-margin-001.html. (no review; just a trivial test metadata tweak)
This patch fixes a trivial typo and brings the <link rel="match"> tag into
alignment with what we've already got in our reftest.list file.

Landing as DONTBUILD (skipping builds/tests) because this won't impact test
runs, since this <link> tag is inactive in this local copy of the test.

--HG--
extra : rebase_source : 1b0f6f79d671416fb6e617804158925a10499f17
2018-09-10 13:50:42 -07:00
Henrik Winnemöller b28c12db80 Bug 1452979 - Update reftest expectations. r=nical 2018-09-03 21:46:32 +02:00
Joel Maher af81c03a10 Bug 1392106 - random-if more test cases for windows 7 letter rendering failures. r=RyanVM
random-if statements for the last 2 days worth of annotated failures

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

--HG--
extra : moz-landing-system : lando
2018-08-27 18:38:37 +00:00
Gurzau Raul 9a8991af69 Backed out changeset b168deee0bcf (bug 1392106) for failures on canvas/1304353-text-global-composite-op-1.html on a CLOSED TREE
--HG--
extra : amend_source : 3529e35d35d31def6e2da65217dc1343885dfa3a
2018-08-23 18:16:05 +03:00
Joel Maher e6844b61ad Bug 1392106 - random-if more test cases for windows 7 letter rendering failures. r=RyanVM
random-if statements for the last 2 days worth of annotated failures

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

--HG--
extra : moz-landing-system : lando
2018-08-23 12:35:17 +00:00
Daniel Holbert 7fe3e02d70 Bug 1481951 part 2: Adjust reftest contain-layout-overflow-002.html to be clearer & have accurate expectations. r=dbaron
This test is basically a copy of its -001 variant, with some "float:left"
sprinkled around on contained descendants.

Before this patch, this test had an additional arbitrary sizing difference as
compared to the -001 version -- there's one element that arbitrarily has class
"outer" in the -002 test whereas it has class "inner-lg" in the -001 version.
These classes have different sizing characteristics, which makes a difference
to whether scrollbars show up, because this element is not contained (though it
is a layout container itself).

This patch undoes this arbitrary difference and also adds a "float" class to
make it easier to see which elements we've sprinkled float styling onto.

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

--HG--
extra : rebase_source : 2630420b4dfc1a307cbfe20447e66fbfecf7b0aa
2018-08-20 12:43:14 -07:00
Daniel Holbert 38fd2332b7 Bug 1481951 part 1: Adjust contain-layout-overflow-* reftests to remove unused rule for nonexistent class "inner-md". r=dbaron
Differential Revision: https://phabricator.services.mozilla.com/D3825

--HG--
extra : rebase_source : 74b16f8e06088d47d687e0f07178473c1b1ad540
2018-08-20 12:45:06 -07:00
Daniel Holbert 5c4a4202ff Bug 1483685 part 2: Remove wrap-reverse styling from flexbox-align-content-horiz-001* reftest (& 'vert' variant) since that's now tested elsewhere. r=mihir
--HG--
extra : rebase_source : c65b86fac2e99ccd8dc7beba2a64b946a93f5736
extra : histedit_source : a67f0f8954b8943a4872e5b0250bdd54924ec1f3
2018-08-15 15:17:15 -07:00