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

81209 Коммитов

Автор SHA1 Сообщение Дата
Jamie Nicol a1284686b2 Bug 1843534 - Avoid taking unnecessary timestamps when thread is not being profiled for markers. r=julienw
As taking timestamps can be expensive on certain devices we should try
to avoid taking them where possible. This patch fixes a few occasions
where we take a timestamp solely for a profiler marker even when the
current thread is not being profiled.

Differential Revision: https://phabricator.services.mozilla.com/D185008
2023-08-09 10:28:37 +00:00
Jamie Nicol 0907d63767 Bug 1843534 - Remove unused telemetry probes. r=emilio
These telemetry probes have long since expired, so remove them. This
avoids taking unnecessary timestamps in these functions, which we have
seen can be expensive on certain devices.

Differential Revision: https://phabricator.services.mozilla.com/D185007
2023-08-09 10:28:36 +00:00
Cathie Chen ab3d8905aa Bug 1829016 - The size of content-visibility auto does not refresh when its content changes, r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D183414
2023-08-08 18:19:18 +00:00
CanadaHonk a117230132 Bug 1824121 - Implement the <search> element r=hsivonen,Jamie,emilio
Implemented the new <search> HTML element.
All WPT tests for it now pass (except one for iso-8859-8, not done generally).

A11y role uses just landmark as recommended instead of a new search role (for now).

Co-authored-by: Henri Sivonen <hsivonen@mozilla.com>

Differential Revision: https://phabricator.services.mozilla.com/D176967
2023-08-07 22:11:05 +00:00
Boris Chiou 7bf8670769 Bug 1598158 - Resolve URL to SVG shape elements. r=emilio
Also update offset-path-url-001.html because it seems its ref html is
incorrect per the spec. We are using its `<coord-box>` (i.e. the reference box
of its containing block) as the viewport and user coordinate system, so its
offset-starting-position should be independent from its current position
from CSS reflow. The SVG shape element always provides the offset starting
position.

So I tweak offset-path-url-001.html a little bit to make it passed for all
browsers, and add some other tests to cover the case mentioned above and
other cases.

Differential Revision: https://phabricator.services.mozilla.com/D184431
2023-08-07 22:04:02 +00:00
Boris Chiou f8aab94d5f Bug 1598158 - Add IsClosedLoop() for SVGGeometryElement. r=emilio
Per https://drafts.fxtf.org/motion/#path-distance, we follow these rules
when `offset-path` references to a SVG shape:

1. Offset paths (including references to SVG Paths) are closed loops only if
   the final command in the path list is a closepath command ("z" or "Z"),
   otherwise they are unclosed intervals.
2. References to SVG circles, ellipses, images, polygons and rects are closed
   loops.
3. References to SVG lines and polylines are unclosed intervals.

Also, rename `mIsClosedIntervals` as `mIsClosedLoop` to be consistent.

Differential Revision: https://phabricator.services.mozilla.com/D184430
2023-08-07 22:04:02 +00:00
Boris Chiou 378ff4b2f1 Bug 1598158 - Support offset-path:url() in style. r=devtools-reviewers,emilio
In layout, we build a default `path("m 0 0")` for now. We will implement
it later.

Besides, we don't support compositor animations for `url()`, so we don't
have to serialize it for IPC.

Note:
`<url>` includes `url()` and `src()`. For now we only support `url()`.
We should revisit `src()` in Bug 1845390.

Differential Revision: https://phabricator.services.mozilla.com/D184429
2023-08-07 22:04:01 +00:00
Emilio Cobos Álvarez 94de7e9ddf Bug 1847546 - Don't do duplicate work on style elements from the innerHTML setter. r=smaug
Right now, when binding to the tree we queue a runnable to update the
stylesheet, even though mEnableUpdates is false.

Even though the redundant update is nowadays always cached, it's just
wasted work, and the code is simpler without it.

This will be tested by bug 1771113, which is what made me look at this.

We need to tweak a bit the dispatch of applicable state change events
for DevTools, because for a case like:

  div.attachShadow({ mode: "open" }).innerHTML = `<style>...</style>`;

Before we'd go through the stylesheet cache here due to the redundant
update:

  https://searchfox.org/mozilla-central/rev/fb43eb3bdf5b51000bc7dfe3474cbe56ca2ab63c/layout/style/SharedStyleSheetCache.cpp#161-165

But now we won't, and the code in StyleSheet.cpp wasn't quite correct /
didn't dispatch the event.

Nobody listens to style-sheet-applicable-state-changed, so remove that
code while at it.

Differential Revision: https://phabricator.services.mozilla.com/D185559
2023-08-07 20:21:34 +00:00
Glenn Watson 7f66b454d6 Bug 1829184 - Add a bit more fuzziness for android hardware devices r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D185377
2023-08-07 20:10:58 +00:00
Stanca Serban 183a888a39 Backed out 3 changesets (bug 1824121) for causing wpt failures in html5lib_search-element.html. CLOSED TREE
Backed out changeset e3aec91d79e4 (bug 1824121)
Backed out changeset e3a3324b1732 (bug 1824121)
Backed out changeset 6ff5c272ab8e (bug 1824121)
2023-08-07 21:20:18 +03:00
CanadaHonk 631b819e14 Bug 1824121 - Implement the <search> element r=hsivonen,Jamie,emilio
Implemented the new <search> HTML element.
All WPT tests for it now pass (except one for iso-8859-8, not done generally).

A11y role uses just landmark as recommended instead of a new search role (for now).

Co-authored-by: Henri Sivonen <hsivonen@mozilla.com>

Differential Revision: https://phabricator.services.mozilla.com/D176967
2023-08-07 14:05:32 +00:00
Cosmin Sabou b0f9a6e63d Backed out changeset c309e9b48aec (bug 1824121) for causing element related mochitest failures. CLOSED TREE 2023-08-07 16:05:13 +03:00
CanadaHonk 23a0c9beff Bug 1824121 - Implement the <search> element r=hsivonen,Jamie,emilio
Implemented the new <search> HTML element.
All WPT tests for it now pass (except one for iso-8859-8, not done generally).

A11y role uses just landmark as recommended instead of a new search role (for now).

Co-authored-by: Henri Sivonen <hsivonen@mozilla.com>

Differential Revision: https://phabricator.services.mozilla.com/D176967
2023-08-07 12:30:50 +00:00
Emilio Cobos Álvarez 3858f4743f Bug 1845667 - Use semi-transparent text for urlbar rather than trying to do that manually. r=dao
This comes back all the way to bug 654411. This doesn't work great with
semi-transparent backgrounds (like the one on that theme) because we
don't bother computing the "real" background (we can't really, since
it's partially a background image).

I don't think text rendering quality should be worse with alpha text
nowadays. I guess we could preserve it with some effort for opaque
mFrameBackgroundColor values (propagating whether it was really opaque
or not), but let's not do it unless we really need to.

Differential Revision: https://phabricator.services.mozilla.com/D185512
2023-08-07 09:12:47 +00:00
Makoto Kato 9d92170f22 Bug 1719535 - Part 10.3. Update test results of layout with new segmenter. r=TYLin
Fixing tests for new segmenter rules.

Depends on D180775

Differential Revision: https://phabricator.services.mozilla.com/D167678
2023-08-07 06:24:01 +00:00
Masayuki Nakano e4d8451468 Bug 1845904 - Make `PresShell::EventHandler::HandleEventWithCurrentEventInfo` stop flushing pending notifications if a query content event does not require that r=emilio
We've already known that `WidgetQueryContentEvent` is dispatched at initializing
a popup menu on macOS (bug 1530188).  Therefore, I made the dispatcher under
`widget/cocoa` set `WidgetQueryContentEvent::mNeedLayoutFlush` to `false` to
avoid to flush pending things in `ContentEventHandler`, but
`PresShell::EventHandler` does it.

Differential Revision: https://phabricator.services.mozilla.com/D185264
2023-08-07 05:24:20 +00:00
Masayuki Nakano 0f39d7eda7 Bug 1266437 - Drop "OS" modifier r=smaug,m_kato,karlt,Gijs
On Windows, Windows logo key was mapped to "OS" modifier, and on Linux,
it's same and the key is called "Super" and "Hyper".  That conformed to the
older UI Events spec.

However, UI Events declares that they should be mapped to "Meta" now and Chrome
handles it as the spec in Windows and Linux.  Therefore, we should align the
behavior to them.

Note that we've treated the legacy "Meta" modifier on Linux as DOM "Meta"
modifier state, and we'll keep this as-is because in Sun/Solaris keyboard
layout, they keys are mapped to the legacy "Meta".

Finally, the following check only `IsMeta()` but not `IsOS()`.  I think that
they should've checked `IsOS()` too.  Therefore, they will behave differently
in Windows and Linux.
* https://searchfox.org/mozilla-central/rev/9a4666e63199bd1bcfc9095f6efec3488c358458/dom/base/Element.cpp#3287-3288
* https://searchfox.org/mozilla-central/rev/9a4666e63199bd1bcfc9095f6efec3488c358458/dom/html/HTMLInputElement.cpp#3762-3764
* https://searchfox.org/mozilla-central/rev/9a4666e63199bd1bcfc9095f6efec3488c358458/dom/html/HTMLInputElement.cpp#3796-3806
* https://searchfox.org/mozilla-central/rev/9a4666e63199bd1bcfc9095f6efec3488c358458/dom/html/HTMLLabelElement.cpp#127-128
* https://searchfox.org/mozilla-central/rev/9a4666e63199bd1bcfc9095f6efec3488c358458/widget/gtk/nsGtkKeyUtils.cpp#1461-1462

Note that `KEY_NAME_INDEX_OS` will be removed in the patch for bug 1232918.

Differential Revision: https://phabricator.services.mozilla.com/D183480
2023-08-07 01:03:58 +00:00
Lee Salzman ebbda1906f Bug 1847244 - Finish plumbing will-read-frequently through WindowRenderer. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D185451
2023-08-05 01:05:47 +00:00
Frederic Wang f833c460e4 Bug 1847177 - Rewrite mochitests for MathML console message as WPT. r=emilio,flod
The warning message for deprecated math space values is tweaked a bit so
that the actual attribute value that triggered it is reported. This
provides correct message for 'negative*mathspace' values.

test_bug1845461.html, test_bug553917.html and test_bug827713-2.html are
rewritten as an internal testharness WPT test, with the following
modifications:

* Preferences are forced in the ini file, avoiding issues that happened
  in the past due to inconsistent values for Nightly and Beta.
  dom.use_components_shim is set to prevent the deprecation message for
  the Components object and confuse the test (bug 1845910).
  legacy_mathvariant_attribute and mathspace_names are disabled to
  to properly test deprecated mathvariant and math space values.

* Console messages are triggered inside an iframe, allowing to test
  multiple source codes for the same deprecation warning. In particular,
  all mathvariant and named space values are now tested.

* Helper testMessageForMarkup/testNoMessageForMarkup functions are
  introduced to easily test some markup and improve readability.
  The expected message is provided as a regexp argument for more
  flexibility and severity level (error or warning) is verified.

* It's not clear why the tests for InvalidChild don't test msup or why
  they use this specific number of children. Keep them but add new ones
  for msub/msub/msubsup with the usual number of children.

Differential Revision: https://phabricator.services.mozilla.com/D185399
2023-08-04 14:19:21 +00:00
Tiaan Louw a2d75730cc Bug 1845693 - Make AbsoluteColor deal with legacy and modern color syntax more concise r=emilio
Now the default of a color is the modern syntax and converting to legacy
syntax is very explicit.

AbsoluteColor::new can now take u8, f32 and Option<f32> as component
arguments and the flags will be set automagically.

Differential Revision: https://phabricator.services.mozilla.com/D184685
2023-08-04 12:39:58 +00:00
Thomas Wisniewski 78b7cfc283 Bug 1843743 - have cjk-earthly-branch and cjk-heavenly-stem use system:fixed to match the latest spec; r=xidorn,emilio
Differential Revision: https://phabricator.services.mozilla.com/D185373
2023-08-04 12:24:44 +00:00
Frederic Wang d9b0ed5cf9 Bug 1847034 - Export reftests for MathML embellished operators to WPT. r=emilio
The tests exported in this patch use complex embellished operators and
verify whether or not the operator stretches. To avoid relying on
systems fonts and make the visual rendering more reliable, we use the
Ahem font for text as well as operators.woff for stretchy operators.
stretchy-mover-2a.html is currently failing so we preserve this
annotation. Some unrelated alignment issue were happening with
stretchy-mover-1a/b, which are worked around by wrapping the <math>
tag in a container div.

Differential Revision: https://phabricator.services.mozilla.com/D185308
2023-08-04 09:31:32 +00:00
Frederic Wang 8dc5180e6d Bug 1847007 - Convert font-related MathML tests to WPT. r=emilio
* opentype-axis-height.html: This is verifying Gecko's special behavior
  to calculate fallback for AxisHeight fallback
  (see nsMathMLFrame::GetAxisHeight) but that's not part of MathML
  Core so keep it as an internal testharness test.

* opentype-limits.html: This is verifying the Gecko's interpretation
  of AccentBaseHeight / accent property, which is different from
  MathML Core so keep it as an internal testharness test. Remove
  failure for Win XP, which we no longer support.

* opentype-fraction-dynamic-linethickness: Remove since that's covered
  by mathml/presentation-markup/fractions/frac-parameters-2.html

* dtls-*: Tests for the dtls OpenType feature, which are not part of
  MathML Core.

* ssty-*, mathscript-*: Tests for the ssty OpenType feature, which are
  not part of MathML Core.

* default-font.html: This is testing Gecko's x-math preferences, so keep
  it as internal test.

* font-inflation-1.html: This is testing Gecko's font inflation feature,
  so keep it as internal test.

* opentype-stretchy.html: There are similar testharness tests in the
  official WPT but this reftest additionally checks the painting of
  stretchy/largeop. It's also possible that the
  DisplayOperatorMinHeight test specifically checks Gecko's
  handling of integrals which is not part of MathML Core
  (see https://github.com/w3c/mathml-core/issues/126). For now, just
  keep this as internal WPT test. Mark it as random on all Windows
  platform as there does not seem to be an equivalent for 2d2.

Differential Revision: https://phabricator.services.mozilla.com/D185291
2023-08-04 09:04:28 +00:00
Cristian Tuns f5572b469f Backed out 2 changesets (bug 1266437, bug 1232918) for causing mochitest failures in test_autoplay_policy_key_blacklist.html CLOSED TREE
Backed out changeset 33e3c6593d4b (bug 1232918)
Backed out changeset 1b56e99dd221 (bug 1266437)
2023-08-03 23:29:52 -04:00
Masayuki Nakano 0664d98bce Bug 1266437 - Drop "OS" modifier r=smaug,m_kato,karlt,Gijs
On Windows, Windows logo key was mapped to "OS" modifier, and on Linux,
it's same and the key is called "Super" and "Hyper".  That conformed to the
older UI Events spec.

However, UI Events declares that they should be mapped to "Meta" now and Chrome
handles it as the spec in Windows and Linux.  Therefore, we should align the
behavior to them.

Note that we've treated the legacy "Meta" modifier on Linux as DOM "Meta"
modifier state, and we'll keep this as-is because in Sun/Solaris keyboard
layout, they keys are mapped to the legacy "Meta".

Finally, the following check only `IsMeta()` but not `IsOS()`.  I think that
they should've checked `IsOS()` too.  Therefore, they will behave differently
in Windows and Linux.
* https://searchfox.org/mozilla-central/rev/9a4666e63199bd1bcfc9095f6efec3488c358458/dom/base/Element.cpp#3287-3288
* https://searchfox.org/mozilla-central/rev/9a4666e63199bd1bcfc9095f6efec3488c358458/dom/html/HTMLInputElement.cpp#3762-3764
* https://searchfox.org/mozilla-central/rev/9a4666e63199bd1bcfc9095f6efec3488c358458/dom/html/HTMLInputElement.cpp#3796-3806
* https://searchfox.org/mozilla-central/rev/9a4666e63199bd1bcfc9095f6efec3488c358458/dom/html/HTMLLabelElement.cpp#127-128
* https://searchfox.org/mozilla-central/rev/9a4666e63199bd1bcfc9095f6efec3488c358458/widget/gtk/nsGtkKeyUtils.cpp#1461-1462

Note that `KEY_NAME_INDEX_OS` will be removed in the patch for bug 1232918.

Differential Revision: https://phabricator.services.mozilla.com/D183480
2023-08-04 00:10:11 +00:00
Boris Chiou 7902a61494 Bug 1846817 - Change the initial value of offset-position to be normal. r=dholbert
Per spec issue, https://github.com/w3c/fxtf-drafts/issues/522, its
initial value should be normal. (This has been merged into the spec.)

Note: css/motion/inheritance.html was updated in the WPT remote repo, so
I intentionally didn't change it and added the expection for now.

Differential Revision: https://phabricator.services.mozilla.com/D185230
2023-08-03 18:42:17 +00:00
Frederic Wang 58b0d06c21 Bug 1846945 - Export more table-related tests to WPT. r=emilio
* whitespace-trim-*: These tests are testing whitespace trimming in
  token elements but that's not described in MathML Core. Move them
  into internal WPT tests.

* table-width-1,2,3,4: These tests verify that the intrinsic width
  is properly calculated so that MathML content don't overflow in
  tables. One of them is related to whitespace trimming, so
  extract it to internal WPT test.

* test_bug330964.html: Convert this to a testharness test and
  move it into internal WPT test (this is testing mtable
  attributes that are not part of MathML Core).

* semantics-4: Restore the original testcase and move it into
  internal WPT test with a failure annotation for now (as written
  it uses mtable@width attribute which is not part of MathML Core
  anyway). For details, see bug 1846930.

* dir-6a: This was introduced in bug 330964 and involves table
  attributes that are not part of MathML Core.

* css-spacing-1.html: This was introduced by bug 1187673 but is already
  covered by default-properties-on-the-math-root.html.

* columnlines/rowlines: Tests for columnlines/rowlines attributes that
  are not part of the current version of MathML core. Move them to
  mozilla/tests/mathml/tables. Use Ahem for rowlines/columnlines-3*
  to make them more robust per bug 1309426.

* mstyle-2: extract the case for mtable@align test to internal
  WPT mstyle-align.html since align is not part of MathML Core.

Differential Revision: https://phabricator.services.mozilla.com/D185270
2023-08-03 15:39:58 +00:00
Emilio Cobos Álvarez 595328df6d Bug 1846745 - Remove nsColorNames.h. r=tlouw
Use the CSS parser to parse named colors.

Differential Revision: https://phabricator.services.mozilla.com/D185156
2023-08-03 10:52:14 +00:00
Timothy Nikkel ed2e1b4059 Bug 1809492. Clear pointer to nsTreeBodyFrame on XULTreeElement after any possible calls that can set it. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D184318
2023-08-03 10:50:40 +00:00
Emilio Cobos Álvarez 070c1a117c Bug 1844466 - Speed up and simplify cumulative changehint computation. r=boris,hiro
As a bonus we now can throttle some additive and visibility animations
more properly, because before we couldn't compute a change hint for
those but now we don't need to.

Differential Revision: https://phabricator.services.mozilla.com/D185175
2023-08-03 09:04:11 +00:00
Emilio Cobos Álvarez 5502bf7db9 Bug 1846745 - Miscellaneous clean-ups to nsCSSProps. r=boris
Fixes various clang-tidy warnings and makes initialization a bit more
straight-forward.

Depends on D185154

Differential Revision: https://phabricator.services.mozilla.com/D185155
2023-08-03 08:58:07 +00:00
Peter Van der Beken 3f4ffadbe1 Bug 1846277 - Untangle nsGlobalWindow*.h includes. r=dom-core,media-playback-reviewers,sessionstore-reviewers,padenot,farre
Differential Revision: https://phabricator.services.mozilla.com/D184978
2023-08-02 20:41:49 +00:00
Peter Van der Beken 9fba1d5220 Bug 1846277 - Remove nsGlobalWindow.h. r=dom-core,necko-reviewers,jesup,farre
Differential Revision: https://phabricator.services.mozilla.com/D184973
2023-08-02 20:41:48 +00:00
Frederic Wang 424bd919cf Bug 1846718 - Negative linethickness should be interpreted as 0. r=emilio
See https://w3c.github.io/mathml-core/#dfn-linethickness

Differential Revision: https://phabricator.services.mozilla.com/D185152
2023-08-02 18:09:37 +00:00
Frederic Wang f445139098 Bug 1846721 - Cleanup some MathML tests using unshipped features. r=emilio
* dir-1: Ignore mfenced (no longer implemented) and move the remaining
  case not tested by direction-overall.html into direction-mpadded.html
  This seems complementary to the RTL test in mpadded-003.html

* link-1: We removed support for XLink in MathML. This is actually
  testing non-XLink href, removed unnecessary XLink stuff.

* mstyle-1: We removed support for all these attributes except
  linethickness, already covered by legacy-mstyle-attributes.html

* mstyle-2: We removed support for maction.

* mstyle-3: We removed support for nonzero unitless values, use
  equivalent length expression.

* mstyle-5: We removed support for lquote/rquote.

* table-width-1: Remove test for mfenced (no longer implemented).

* semantics-1: We removed support for maction.

* ssty3/ssty4: These tests were removed in bug 1788637 but the
  references were incorrectly left.

* opentype-stretchy.html: Was likely using scriptminsizemultiplier="1"
  to make the test more robust, but unshipping support for this
  attribute didn't affect the test.

* mathml_example_test.html: Ditto.

* mfrac-D-2.html: We removed support for linethickness="thin", use
  another valid value different to the one set by JS.

* number-size: We removed support for non-zero unitless values.
  Already covered by mathml/relations/css-styling/lengths-1.html

* mfrac-linethickness{1,2,3}: We removed support for
  non-zero unitless values. Move uncovered tests into
  presentation-markup/fractions/frac-linethickness-001.html
  frac-linethickness-002.html also checks negative values,
  but Firefox does not align with MathML Core (bug 1846718).

* munderover-align-accent-false.html: We removed support for
  munderover@align. This was using the default "center" value
  and had no effect.

* scriptshift-1: We removed support for subscriptshift and
  superscriptshift. Already covered by
  subsup-legacy-scriptshift-attributes-001.tentative.html

Differential Revision: https://phabricator.services.mozilla.com/D185146
2023-08-02 18:09:36 +00:00
Alex Jakobi 32b16a8f56 Bug 1794590 - Use cumulative resolution for subframes when updating scroll data. r=dlrobertson,botond
Differential Revision: https://phabricator.services.mozilla.com/D184142
2023-08-02 17:10:38 +00:00
Alex Jakobi d2bed12b46 Bug 1794590 - Change mirror value for slider.snapMultiplier r=botond
Differential Revision: https://phabricator.services.mozilla.com/D184735
2023-08-02 17:10:38 +00:00
Frederic Wang 04f81f49e7 Bug 1846674 - Convert MathML menclose reftests to WPT. r=emilio
This patch exports internal reftests for the menclose element to
mozilla/tests/mathml/menclose with basic tweaks (whitespace fix,
MozReftestInvalidate replacement, adding <link> meta). See more details
below. A README.md is also created for the internal MathML WPT tests.

* dir-2: This verifies that menclose notations are not affected by
  directionality. Move it with a better name.

* mstyle-1: One case verifies that the notation attribute on mstyle has
  no effect on menclose. Extract it into a new test.

* mphantom-1: One case verifies that menclose notations inside mphantom
  are not visible. Extract it into a new test.

* menclose-2*: These tests verify that each individual notation is
  painted in a restricted area covered by some SVG or CSS drawing
  (lines, ellipses, boxes, etc). They are currently marked as random
  or fuzzy due to the use of different fonts (bug 1309426). Tweak them
  to use Ahem and more reliable drawing.

* menclose-5/menclose-6: These tests verify the rendering of
  dynamically modified notation attribute against a static reference.
  Tentatively remove the fuzzy annotations for some of them.

Note for sheriffs: If the one the menclose-{2,5,6} fail, they should
be annotated as fuzzy.

Differential Revision: https://phabricator.services.mozilla.com/D185127
2023-08-02 15:27:41 +00:00
Emilio Cobos Álvarez f3842f9404 Bug 1844466 - Add affects="" to CSS property metadata, and relevant flags. r=boris
We don't use these yet. The flags are taken from current gecko change
hints as described in the bug comments.

Differential Revision: https://phabricator.services.mozilla.com/D185061
2023-08-02 12:45:37 +00:00
Sandor Molnar 13c7e4a350 Backed out 14 changesets (bug 1719535) for causing mochitest failures in accessible/tests/browser/mac/browser_text_basics.js CLOSED TREE
Backed out changeset 338c2c8d91af (bug 1719535)
Backed out changeset 3fdb2e999aba (bug 1719535)
Backed out changeset 63b9d2064827 (bug 1719535)
Backed out changeset 09c216cdbbc8 (bug 1719535)
Backed out changeset 29977dc00fb3 (bug 1719535)
Backed out changeset d3f8850a343b (bug 1719535)
Backed out changeset 90f1f621031f (bug 1719535)
Backed out changeset 52ca9bdc5bd4 (bug 1719535)
Backed out changeset 94536f0d5a1f (bug 1719535)
Backed out changeset d615264f9f5f (bug 1719535)
Backed out changeset f16f9e583378 (bug 1719535)
Backed out changeset e1abdee07587 (bug 1719535)
Backed out changeset 45f9ad406428 (bug 1719535)
Backed out changeset caa2b8a731dc (bug 1719535)
2023-08-02 14:55:26 +03:00
Makoto Kato b750a964b5 Bug 1719535 - Part 10.3. Update test results of layout with new segmenter. r=TYLin
Fixing tests for new segmenter rules.

Depends on D180775

Differential Revision: https://phabricator.services.mozilla.com/D167678
2023-08-02 10:32:57 +00:00
Nicolas Chevobbe 4b1be78f84 Bug 1840870 - [devtools] Add test for InspectorUtils.getCSStyleRules with ::highlight pseudo. r=jjaschke.
Depends on D183773

Differential Revision: https://phabricator.services.mozilla.com/D182445
2023-08-02 06:04:38 +00:00
Tiaan Louw 6798545271 Bug 1846249 - Change color functions to constants r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D184929
2023-08-01 13:14:32 +00:00
Frederic Wang c19ab85068 Bug 1846482 - Reorganize and tweak mathvariant tests. r=emilio
414123.xhtml: The original test was checking that for dynamically
constructed MathML expressions, single-char '<mi>'s have italic style
applied. This used to be done via CSS but the test was later changed to
use `<mi mathvariant="italic">`. mathvariant="italic" is not longer
valid in MathML Core, so remove this explicit attribute and only verify
that dynamically constructed expression matches the static version of
the MathML tree. Also rename the test and move it to MathML WPT tests.

mi-mathvariant-1: The first test is verifying that multi-char mi is
rendered the same as mathvariant="normal". The second test is to verify
that single-char mi is rendered the same as mathvariant="italic"
(not in MathML Core) but there are better existing tests for that so
just tweak the reference to ignore it (using U+0078 in the reference
won't work on Android devices without proper math fonts).

mi-mathvariant-2: The two first tests verify that automatic italic is
not applied on U+221E and U+210E. The third test verifies fraktur B via
mathvariant="fraktur" (not in MathML Core) and is already covered by
mozilla/tests/mathml/mathvariant/mathvariant-fraktur.html

mi-mathvariant-3.html: This one is testing that single-char mi
(automatic italic) are not rendered with Tofu characters. This is very
similar to basic-mathematical-alphanumeric-symbols-with-default-font so
put it in the same directory and use similar name. It's still worth to
keep the test as it allows to exercise the preference
mathml.mathvariant_styling_fallback.disabled=false on Android.

mpadded-7,8,9: These tests are for mpadded, the use of the legacy
mathvariant="monospace" can be replaced with the equivalent use of the
corresponding Unicoded code points.

mathvariant-1a,1b,1c,1d,2,3,4,5: These are testing support for the
mathvariant attribute values that are not in MathML Core so move them
to testing/web-platform/mozilla/tests/mathml/mathvariant/. Keep the
failure expectation for Android (bug 1010679). The one for windows
(bug 1392106) seems to have been removed already.

table-width-4.html: Some tests are using legacy mathvariant values but
running with support disabled. Equivalent tests using corresponding
Unicode code points are provided in the same file.

whitespace-trim-3.html: This is using legacy mathvariant="italic" but
running with support disabled. It's done on single-char mi so the
attribute is useless anyway.

font-inflation-1.html: This is using legacy mathvariant="fraktur" but
should be equivalent to using the corresponding Unicode character.

dtls-3.html: This is similar to the other dtls tests, but using the
fraktur a instead of normal a. However, it's also specifically
checking update when mathvariant attribute is attached/removed so keep
it without change for now.

Differential Revision: https://phabricator.services.mozilla.com/D185033
2023-08-01 12:46:43 +00:00
Jonathan Kew 8b2747cfc4 Bug 1708240 - Implement the from-font keyword for CSS font-size-adjust. r=emilio,devtools-reviewers
Depends on D182450

Differential Revision: https://phabricator.services.mozilla.com/D182451
2023-08-01 12:40:31 +00:00
Noemi Erli 1bf4a97b5d Backed out 5 changesets (bug 1708240) for causing failures in test_css-properties-db.js CLOSED TREE
Backed out changeset 695203c0ff61 (bug 1708240)
Backed out changeset e686e061b8b5 (bug 1708240)
Backed out changeset eac4b88ab28d (bug 1708240)
Backed out changeset e766d2a9180e (bug 1708240)
Backed out changeset 79c808970af5 (bug 1708240)
2023-08-01 15:12:46 +03:00
Cristian Tuns df732c7c7c Backed out changeset 9763c9244933 (bug 1846249) for causing build bustages in StyleColorInlines.h CLOSED TREE 2023-08-01 07:16:19 -04:00
Jonathan Kew 0677b1aa55 Bug 1708240 - Implement the from-font keyword for CSS font-size-adjust. r=emilio
Depends on D182450

Differential Revision: https://phabricator.services.mozilla.com/D182451
2023-08-01 10:49:58 +00:00
Tiaan Louw cfd3c0c4e5 Bug 1846249 - Change color functions to constants r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D184929
2023-08-01 10:35:38 +00:00
Jonathan Kew 99602c82b2 Bug 1832955 - Support font-relative units when parsing letterSpacing/wordSpacing for offscreen canvas. r=gfx-reviewers,lsalzman,emilio
Differential Revision: https://phabricator.services.mozilla.com/D184938
2023-08-01 09:27:16 +00:00