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

12337 Коммитов

Автор SHA1 Сообщение Дата
Emilio Cobos Álvarez f3cfe85712 Bug 1789214 - When forcing colors without a color-scheme, compute prefers-color-scheme based on them. r=morgan
This requires moving some code around to PreferenceSheet, but that makes
stuff actually a bit simpler.

Depends on D192574

Differential Revision: https://phabricator.services.mozilla.com/D192575
2023-11-06 19:59:38 +00:00
Jonathan Kew f07e49b438 Bug 1862659 - Don't try to do fake-smallcaps rendering if the font lacks the required uppercase characters. r=layout-reviewers,dholbert
Differential Revision: https://phabricator.services.mozilla.com/D192616
2023-11-04 19:02:04 +00:00
Norisz Fay 458130d63a Backed out changeset 09a6e2a57a02 (bug 1847503) for causing canvas failures on canvas-display-p3-drawImage.https.html 2023-11-01 17:58:20 +02:00
Tiaan Louw 1568f5568f Bug 1847503 - Map colors into gamut limits before rendering. r=layout-reviewers,emilio
When colors are converted to sRGB to render onto the display, make sure
that they are within sRGB gamut limits.

Gamut mapping is implemented according to:
https://drafts.csswg.org/css-color-4/#gamut-mapping

The color-mix-non-srgb-001 test is checking the expected result in
sRGB, which happens to be out of gamut limits, but because the test
is for color-mix and not gamut mapping, I changed the expected
results to the color space of the mix.

The svg reftest now has an increased fuzzy to allow for the final colors
to be gamut mapped. Gamut mapping is dependent of available hardware, so
we can't pin down exact colors for the result.

Differential Revision: https://phabricator.services.mozilla.com/D191083
2023-11-01 08:28:33 +00:00
Narcis Beleuzu 21af958c87 Backed out changeset e5e1bc9736a5 (bug 1847503) for reftest failures on anim-css-floodcolor-overflow-1-from-by.svg . CLOSED TREE 2023-11-01 03:22:46 +02:00
Tiaan Louw ef59084b47 Bug 1847503 - Map colors into gamut limits before rendering. r=layout-reviewers,emilio
When colors are converted to sRGB to render onto the display, make sure
that they are within sRGB gamut limits.

Gamut mapping is implemented according to:
https://drafts.csswg.org/css-color-4/#gamut-mapping

The color-mix-non-srgb-001 test is checking the expected result in
sRGB, which happens to be out of gamut limits, but because the test
is for color-mix and not gamut mapping, I changed the expected
results to the color space of the mix.

The svg reftest now has an increased fuzzy to allow for the final colors
to be gamut mapped. Gamut mapping is dependent of available hardware, so
we can't pin down exact colors for the result.

Differential Revision: https://phabricator.services.mozilla.com/D191083
2023-11-01 00:06:11 +00:00
Emilio Cobos Álvarez 6d18495bfe Bug 1860666 - Remove webkit range pseudo-element aliases. r=jfkthame,layout-reviewers
We tried and had to turn it off after one day.

Depends on D192094

Differential Revision: https://phabricator.services.mozilla.com/D192095
2023-10-29 22:10:56 +00:00
Ting-Yu Lin e4533f2062 Bug 553880 - Delete unused bordercol-orig.css. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D192043
2023-10-27 18:16:19 +00:00
Emilio Cobos Álvarez c91ee34d5b Bug 1861253 - Draw select's menulist arrow in the select's color. r=dholbert
In the regressing bug 1849793 I removed a hunk like this because we
don't use any of the parent state on the parent properly:

```
  if (aAppearance == StyleAppearance::MozMenulistArrowButton) {
    // HTML select and XUL menulist dropdown buttons get state from the
    // parent.
    nsIFrame* parentFrame = aFrame->GetParent();
    aFrame = parentFrame;
    elementState = GetContentState(parentFrame, aAppearance);
  }
```

However that aFrame = parentFrame also changed the frame we read the
color for the fill. This is not an issue for menus because those don't
override the colors, but for the select menulist button we need to
explicitly inherit.

Differential Revision: https://phabricator.services.mozilla.com/D192002
2023-10-27 07:34:43 +00:00
Emilio Cobos Álvarez d110c6bcbf Bug 1855763 - Disable -moz-transform and enable zoom on Nightly. r=zcorpan
Disable zoom on a couple tests that otherwise fail. They're known
issues:

 * offsetWidth/Height not being unzoomed (button-min-width).
 * getComputedStyle not being unzoomed (font-size-interpolation-003.html)
 * ResizeObserver box not being unzoomed (https://github.com/w3c/csswg-drafts/issues/9398).

Differential Revision: https://phabricator.services.mozilla.com/D189644
2023-10-19 11:17:11 +00:00
Emilio Cobos Álvarez 325bc7b486 Bug 1859538 - Allow chrome stylesheets to be parsed in parallel. r=layout-reviewers,desktop-theme-reviewers,dao,Gijs,tlouw
This changes -moz-bool-pref from @supports to @media, bringing various
improvements:

 * @media (-moz-bool-pref) properly reacts to dynamic changes.
 * We no longer need to parse chrome:// stylesheets in the main thread
   (-moz-bool-pref was the only thing that forced us to do that).

This makes privileged and non-privileged stylesheets more similar.

Differential Revision: https://phabricator.services.mozilla.com/D191196
2023-10-19 10:50:27 +00:00
Emilio Cobos Álvarez 1ea6ab832c Bug 1858468 - Don't compute custom properties twice inside links. r=dshin
This matches the behavior of other browsers (in fact, I filed [1] about
it long time ago).

This avoids a bunch of overhead in some speedometer subtests. Makes me a
bit sad because I still think our approach is slightly more correct per
spec, but not worth the performance cost.

[1]: https://github.com/w3c/csswg-drafts/issues/2263

Differential Revision: https://phabricator.services.mozilla.com/D190705
2023-10-16 19:55:36 +00:00
Emilio Cobos Álvarez eef28bac5c Bug 1858397 - Pref for always underlining links. r=morgan
This doesn't change the settings UI.

Differential Revision: https://phabricator.services.mozilla.com/D190671
2023-10-11 17:46:56 +00:00
Boris Chiou 5213031e3e Bug 1852323 - Part 1: Update the mapping of geometry box for clip-path. r=emilio
It seems mask-origin/mask-clip/clip-path use different mapping for
geometry-box. We should specialize each one. In this patch, we focus on
clip-path.

Differential Revision: https://phabricator.services.mozilla.com/D188146
2023-10-10 22:00:32 +00:00
Emilio Cobos Álvarez ac4f977dc8 Bug 1857506 - Localize final value if needed for input value setter. r=edgar
This restores pre-existing behavior, and adds tests.

Differential Revision: https://phabricator.services.mozilla.com/D190581
2023-10-10 15:12:10 +00:00
Timothy Nikkel f4c2a9511e Bug 1857394. Enable layout/reftests/bugs/1743533-1.html 1743533-2.html with fuzz. r=emilio
This should be good enough to catch regressions. The main thing is we paint something in the fragments of the iframe on the second and following pages and this should catch it if we fail to.

Fuzz amounts are from an all reftests try run.

Differential Revision: https://phabricator.services.mozilla.com/D190246
2023-10-06 12:26:11 +00:00
Emilio Cobos Álvarez 2aca65d27e Bug 1829594 - Keep skipping test on Android.
MANUAL PUSH: Orange fix CLOSED TREE
2023-10-04 16:23:43 +02:00
Emilio Cobos Álvarez 71806909e4 Bug 1829594 - Extend layout/reftests/bugs/1743533-1.html to cover the in-process case too. r=tnikkel
Depends on D187657

Differential Revision: https://phabricator.services.mozilla.com/D187658
2023-10-04 12:54:07 +00:00
Emilio Cobos Álvarez 5d687c523d Bug 1829594 - Fix pre-existing logic bug in nsHideViewer::Run. r=tnikkel,layout-reviewers
This is needed to fix layout/reftests/bugs/1743533-1.html after the
previous patch, which will otherwise perma-pass (which is actually
perma-fail).

The reason is a bug in nsHideViewer::Run, which now gets used for
fission iframes as well.

What happens is that mPresShell->IsDestroying() is true, but
frame->PresShell() is a different press shell in fact (because page mode
re-creates the pres shell).

We should not hide the frame loader there. Hiding it if
mPresShell->IsDestroying() is redundant anyways, even if the frame
belongs to mPresShell, because if there is a frame, that frame going
away will end up in nsHideViewer::Run again, eventually.

Depends on D187650

Differential Revision: https://phabricator.services.mozilla.com/D187657
2023-10-04 12:54:07 +00:00
Frederic Wang be75b8ae86 Bug 1847280 - Export more MathML reftests to WPT. r=emilio
* link-1: This is testing <mtext href> link render specially. href is
  not in the current MathML Core spec.

* negative-mspace-1: This is testing negative values for mspace@width but
  MathML Core just currently maps it to the width property which does not
  accept negative values.

* mathml-type-supported: This verify application/mathml+xml is recognized
  by the browser and will open a page with such a MIME type. Such a
  behavior is not specified in MathML Core.

* web-platform/tests/mathml/presentation-markup/mrow/mphantom-001.html:
  Copy and tweak from existing merror-001.html to check style and size
  of the <mphantom> element.

* menclose-in-mphantom: Remove since that's now covered by the new
  mphantom-001.html plus existing visibility-004.tentative.html

* mphantom-1: Remove since that's covered by the new mphantom-001.html
  plus exisiting visibility-00{1,2,3}.html

* mphantom-2: Remove since that's covered by the new mphantom-001.html
  and other more advanced tests for mrow-like elements.

* non-spacing-accent-1: This is testing a valid MathML Core behavior
  (assuming system fonts can render U+0302 COMBINING CIRCUMFLEX ACCENT)
  so upstream it to WPT.

* stretchy-underbar-1: This test assumes that the underbar stretches
  but U+332 is not stretchy by default in MathML Core's operator
  dictionary, so add an explicit attribute. Probably the original test
  makes more assumption (system font, etc) so don't touch it too much.
  Even if the operator does not stretch, it would still pass anyway.

Differential Revision: https://phabricator.services.mozilla.com/D185466
2023-10-03 11:02:09 +00:00
Natalia Csoregi 28a9af3045 Backed out changeset 350b696788a1 (bug 1847280) as per request in Bug 1856568. CLOSED TREE 2023-10-03 13:55:26 +03:00
Frederic Wang 3d20ab83c5 Bug 1847280 - Export more MathML reftests to WPT. r=emilio
* link-1: This is testing <mtext href> link render specially. href is
  not in the current MathML Core spec.

* negative-mspace-1: This is testing negative values for mspace@width but
  MathML Core just currently maps it to the width property which does not
  accept negative values.

* mathml-type-supported: This verify application/mathml+xml is recognized
  by the browser and will open a page with such a MIME type. Such a
  behavior is not specified in MathML Core.

* web-platform/tests/mathml/presentation-markup/mrow/mphantom-001.html:
  Copy and tweak from existing merror-001.html to check style and size
  of the <mphantom> element.

* menclose-in-mphantom: Remove since that's now covered by the new
  mphantom-001.html plus existing visibility-004.tentative.html

* mphantom-1: Remove since that's covered by the new mphantom-001.html
  plus exisiting visibility-00{1,2,3}.html

* mphantom-2: Remove since that's covered by the new mphantom-001.html
  and other more advanced tests for mrow-like elements.

* non-spacing-accent-1: This is testing a valid MathML Core behavior
  (assuming system fonts can render U+0302 COMBINING CIRCUMFLEX ACCENT)
  so upstream it to WPT.

* stretchy-underbar-1: This test assumes that the underbar stretches
  but U+332 is not stretchy by default in MathML Core's operator
  dictionary, so add an explicit attribute. Probably the original test
  makes more assumption (system font, etc) so don't touch it too much.
  Even if the operator does not stretch, it would still pass anyway.

Differential Revision: https://phabricator.services.mozilla.com/D185466
2023-10-03 07:58:28 +00:00
Emilio Cobos Álvarez c2ce7e5fb8 Bug 1855763 - Use another alias other than moz-transform to test use counters, and other manual fix-ups. r=layout-reviewers,jfkthame
Depends on D189760

Differential Revision: https://phabricator.services.mozilla.com/D189769
2023-10-02 12:36:17 +00:00
Emilio Cobos Álvarez 813ca5b3b9 Bug 1855763 - Automatic fixes to avoid using prefixed transforms in tests. r=layout-reviewers,jfkthame
Using the script in comment 5, excluding third-party directories.

Differential Revision: https://phabricator.services.mozilla.com/D189760
2023-10-02 12:36:17 +00:00
Emilio Cobos Álvarez 682d5adca6 Bug 1853867 - Remove -moz-image-rect(). r=tlouw
-moz-image-rect is a convenient-ish way of doing sprite images, but
other browsers don't have anything similar and the use case is well
covered by background-size + background-position.

Given that, I don't expect the removal to be particularly risky, but I'm
happy to put it behind a pref first or what not if people think
otherwise.

See also intent to unship: https://groups.google.com/a/mozilla.org/g/dev-platform/c/zNzYpD2UcRE/m/JvhrgO0yAwAJ

Differential Revision: https://phabricator.services.mozilla.com/D188566
2023-09-26 07:15:02 +00:00
Dan Robertson 9aaa529968 Bug 700533 - Use a fallback size for canvas drawImage if the given image has no intrinsic size (e.g. certain SVG images). r=dholbert
When computing the size of an image for CanvasRenderingContext2D.drawImage(),
use the fallback size of 300 x 150 if the image contains no width or
height. This may occur if the SVG contained no width or height attribute.

Depends on D182487

Differential Revision: https://phabricator.services.mozilla.com/D182488
2023-09-25 16:01:34 +00:00
Dan Robertson f37dbb5abd Bug 700533 - Test SVG default sizing for canvas drawImage. r=dholbert
Add tests for CanvasRenderingContext2D.drawImage() when the image to be drawn is
an SVG with no width or height attribute.

Differential Revision: https://phabricator.services.mozilla.com/D182487
2023-09-25 16:01:33 +00:00
Jonathan Kew 5c2b1b1d02 Bug 1850672 - Standard platform font-visibility level should be applied to localized names of the family. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D188494
2023-09-25 13:46:14 +00:00
Iulian Moraru 8867443f5d Backed out 2 changesets (bug 1852084) for causing bug 1853970. CLOSED TREE
Backed out changeset 427a6983a14b (bug 1852084)
Backed out changeset aac846ab41a5 (bug 1852084)
2023-09-21 00:41:39 +03:00
Gregory Pappas 6e1275a748 Bug 1843999 - Remove dom.animations-api.core.enabled, dom.animations-api.implicit-keyframes.enabled, and dom.animations-api.autoremove.enabled prefs r=dom-core,webidl,devtools-reviewers,firefox-animation-reviewers,saschanaz,edgar
Differential Revision: https://phabricator.services.mozilla.com/D183827
2023-09-20 08:55:50 +00:00
Sandor Molnar 2b6bb99fd8 Backed out changeset 6cdd02295e2d (bug 1842478) for causing mochitest failures on layout/style/test/test_transitions_and_zoom.html CLOSED TREE 2023-09-16 11:10:01 +03:00
Gregory Pappas b681733f23 Bug 1842478 - Remove layout.css.individual-transform.enabled pref r=boris,devtools-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D184176
2023-09-16 05:55:29 +00:00
Gregory Pappas 740b6eaec0 Bug 1842479 - Remove layout.css.motion-path.enabled pref r=boris
Differential Revision: https://phabricator.services.mozilla.com/D184018
2023-09-16 02:37:11 +00:00
Ryan VanderMeulen 80c9122018 Bug 1298550 - Re-enable the now-passing part of grid-percent-grid-gap-001.html. r=boris
Differential Revision: https://phabricator.services.mozilla.com/D188380
2023-09-16 00:32:57 +00:00
Emilio Cobos Álvarez 5bddfadebb Bug 1852084 - Add a -moz-themed(<appearance>) background-image. r=boris
Some appearance values are really just a background.

Being able to draw them using `background-image` instead of appearance
allows us to preserve borders, etc.

Differential Revision: https://phabricator.services.mozilla.com/D187851
2023-09-15 22:16:28 +00:00
Gregory Pappas 4083653f6a Bug 1851097 - Remove layout.css.moz-document.content.enabled pref r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D187349
2023-09-15 18:08:14 +00:00
Makoto Kato 1e6318b7bb Bug 1851323 - Apply the latest line break rules. r=TYLin
Since some issues such as bug 1851323 are fixed by ICU4X 1.3's data rule file,
I would like to apply it to get feedback in Gecko.

Differential Revision: https://phabricator.services.mozilla.com/D187980
2023-09-13 05:11:41 +00:00
Logan Rosen f024d94b2b Bug 1786490 - reformat the tree using black 23.3.0 r=sylvestre,webdriver-reviewers,taskgraph-reviewers,whimboo,jmaher,ahal,perftest-reviewers,geckoview-reviewers,afinder,m_kato
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D186092
2023-09-06 16:14:30 +00:00
Daniel Holbert f0d8d07c60 Bug 1842623: Increase the fuzzy tolerance for border-image-width-4.html and -9.html to reflect reality. r=lsalzman DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D187482
2023-09-05 18:04:16 +00:00
Gregory Pappas bc31ce0598 Bug 1851091 - Remove layout.css.font-loading-api.enabled pref r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D187346
2023-09-04 18:12:54 +00:00
Narcis Beleuzu 5ab142bb28 Backed out changeset 2827b7f32d70 (bug 1847280) for failures on underbar-width-1.xhtml . CLOSED TREE 2023-09-04 11:44:19 +03:00
Frederic Wang a57cd0807a Bug 1847280 - Export more MathML reftests to WPT. r=emilio
* link-1: This is testing <mtext href> link render specially. href is
  not in the current MathML Core spec.

* negative-mspace-1: This is testing negative values for mspace@width but
  MathML Core just currently maps it to the width property which does not
  accept negative values.

* mathml-type-supported: This verify application/mathml+xml is recognized
  by the browser and will open a page with such a MIME type. Such a
  behavior is not specified in MathML Core.

* web-platform/tests/mathml/presentation-markup/mrow/mphantom-001.html:
  Copy and tweak from existing merror-001.html to check style and size
  of the <mphantom> element.

* menclose-in-mphantom: Remove since that's now covered by the new
  mphantom-001.html plus existing visibility-004.tentative.html

* mphantom-1: Remove since that's covered by the new mphantom-001.html
  plus exisiting visibility-00{1,2,3}.html

* mphantom-2: Remove since that's covered by the new mphantom-001.html
  and other more advanced tests for mrow-like elements.

* non-spacing-accent-1: This is testing a valid MathML Core behavior
  (assuming system fonts can render U+0302 COMBINING CIRCUMFLEX ACCENT)
  so upstream it to WPT.

* overbar-width-1, underbar-width-1: Ditto, and there is no need to
  assume system fonts have the the overbar/underbar char since there is
  a hiding div.

* stretchy-underbar-1: This test assumes that the underbar stretches
  but U+332 is not stretchy by default in MathML Core's operator
  dictionary, so add an explicit attribute. Probably the original test
  makes more assumption (system font, etc) so don't touch it too much.
  Even if the operator does not stretch, it would still pass anyway.

Differential Revision: https://phabricator.services.mozilla.com/D185466
2023-09-04 06:59:20 +00:00
Lee Salzman 2470013f56 Bug 1850727 - Ignore the clip mask when drawing a stroke mask. r=aosmond
The clip mask state was leaking into the drawing of the stroke mask texture.
This caused the stroke mask to be erroneously clipped out.

Differential Revision: https://phabricator.services.mozilla.com/D187254
2023-09-02 19:19:20 +00:00
Butkovits Atila 4fecafb70b Backed out changeset 0d100cd406fa (bug 1850727) for causing reftest failures at 1850727-1.html. CLOSED TREE 2023-09-02 10:35:54 +03:00
Lee Salzman 0a0c10bccc Bug 1850727 - Ignore the clip mask when drawing a stroke mask. r=aosmond
The clip mask state was leaking into the drawing of the stroke mask texture.
This caused the stroke mask to be erroneously clipped out.

Differential Revision: https://phabricator.services.mozilla.com/D187254
2023-09-02 06:44:02 +00:00
Cristian Tuns 71c48e2685 Backed out changeset 843e65079be1 (bug 1850727) for causing build bustages in DrawTargetWebgl.cpp CLOSED TREE 2023-09-01 10:47:04 -04:00
Lee Salzman cfd0bd306f Bug 1850727 - Ignore the clip mask when drawing a stroke mask. r=aosmond
The clip mask state was leaking into the drawing of the stroke mask texture.
This caused the stroke mask to be erroneously clipped out.

Differential Revision: https://phabricator.services.mozilla.com/D187254
2023-09-01 14:17:44 +00:00
Emilio Cobos Álvarez 9881535df5 Bug 1850342 - Annotate some failures when using reftest-snapshot.
These tests are very dependent on what they run before in that
configuration it seems.

MANUAL PUSH: orange fix CLOSED TREE
2023-08-30 16:56:47 +02:00
Emilio Cobos Álvarez 3d98cc8260 Bug 1850342 - Do not expose :-moz-broken to content. r=boris
This is not standard, and we don't use it internally (some chrome
stylesheets use it tho).

In the past this pseudo-class was more useful because it matched the
state for which <img> elements used an inline, but that's no longer
true, see bug 1196668 and co.

Depends on D186938

Differential Revision: https://phabricator.services.mozilla.com/D186939
2023-08-30 12:06:41 +00:00
Glenn Watson 373189b8a3 Bug 1850489 - Update svg mask fuzziness for beta r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D187059
2023-08-29 22:03:09 +00:00