Commit Graph

2668 Commits

Author SHA1 Message Date
Emilio Cobos Álvarez
b366597b4a Bug 1478001: Gate testing the inaccessible values on the pref. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D2332

MozReview-Commit-ID: AeQ4r8Yjs9J
2018-07-25 18:28:13 +02:00
Sebastian Hengst
bd900ee36a Merge mozilla-inbound to mozilla-central. a=merge 2018-07-25 17:16:53 +03:00
Dan Glastonbury
5ba8f2364f Bug 1330375 - P4: GetInnerText perf regression test. r=heycam
Mochitest to ensure that that zero reflows occur while iterating table
calling innerText and setting `display:none`.

MozReview-Commit-ID: K5vrsj3ogWy

--HG--
extra : rebase_source : 61ceacc5133db6a558a4e8b80f72f18a7195d153
2018-07-19 17:34:48 +10:00
Boris Zbarsky
75abc43e0d Bug 1476145 part 8. Stop using getInterface(nsIDOMWindowUtils) in various test code. r=kmag 2018-07-24 19:47:43 -04:00
Emilio Cobos Álvarez
0c01140e18 Bug 1477553: Hide display: -moz-box|-moz-inline-box from content on Nightly and early beta. r=xidorn
Differential Revision: https://phabricator.services.mozilla.com/D2288

MozReview-Commit-ID: F9BeAneKY6e
2018-07-23 17:27:17 +02:00
Cosmin Sabou
39220f357c Backed out 2 changesets (bug 1477553) for reftest failures on xulscroll.html.
Backed out changeset a5bebad6bb23 (bug 1477553)
Backed out changeset 8d4b97056365 (bug 1477553)
2018-07-23 18:03:10 +03:00
Emilio Cobos Álvarez
e8373c682f Bug 1477553: Hide display: -moz-box|-moz-inline-box from content on Nightly and early beta. r=xidorn
Differential Revision: https://phabricator.services.mozilla.com/D2288

MozReview-Commit-ID: F9BeAneKY6e
2018-07-23 15:31:30 +02:00
Cosmin Sabou
51ed9f0129 Backed out changeset d0cb9041aa08 (bug 1477553) for browser chrome mochitest failures on /browser_parsable_css.js. 2018-07-23 13:17:09 +03:00
Cosmin Sabou
de8180ecd2 Merge mozilla-central to mozilla-inbound. a=merge 2018-07-23 12:33:45 +03:00
Xidorn Quan
04cfb39e53 Bug 1477599 - Move StyloParsingBench helper functions into #if as well. r=emilio
MozReview-Commit-ID: GhcdIdX6IBk

--HG--
extra : rebase_source : a6a8870f2605f2fa87a37d775f1250a71797e769
2018-07-23 09:51:41 +10:00
Emilio Cobos Álvarez
6eb98a1602 Bug 1477553: Hide display: -moz-box|-moz-inline-box from content on Nightly and early beta. r=xidorn
Differential Revision: https://phabricator.services.mozilla.com/D2288

MozReview-Commit-ID: F9BeAneKY6e
2018-07-23 10:33:32 +02:00
Emilio Cobos Álvarez
458e708950 Bug 1475511: Add a few parsing tests for this. r=me
MozReview-Commit-ID: 4ygKHGk3Meb
2018-07-21 23:02:18 +02:00
Xidorn Quan
99d822fb5f Bug 1474959: Add a visited reftest for different logical border color with different writing modes. r=emilio
MozReview-Commit-ID: 7kWSEsuXQzC
2018-07-18 22:15:11 +02:00
Emilio Cobos Álvarez
df9be7cfbc Bug 1309752: Transition tests. r=birtles
MozReview-Commit-ID: 6nLBFvSmQCN
2018-07-18 12:10:20 +02:00
Tiberius Oros
d6492ca47e Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-07-18 00:59:21 +03:00
Brian Birtles
8ab6ee61ba Bug 1471814 - Add a preference for {Document,Element}.getAnimations(); r=bz,hiro
This is probably the last thing we will ship since it needs the most spec work.

MozReview-Commit-ID: LLmDBLCsCBJ

--HG--
extra : rebase_source : c06752c9201a9ede87e1ac200ab12577bf784ce6
2018-07-14 09:23:03 +09:00
Brian Birtles
382fd2fe39 Bug 1471814 - Add a preference for animation composite modes; r=bz,hiro
This feature should not be shipped until the various definitions of addition for
each additive property are properly specified.

Unlike other patches in this series, compositing is not frequently used
internally (e.g. by DevTools etc.) so there is no need to enable this by default
for system code.

Also, it turns out we have inadvertently been shipping part of this feature for
some time now. The next patch in this series will add tests for that case and
disable that part of the feature (a suitable intent to unship will follow). This
patch merely adapts and extends the existing tests without affecting the surface
area covered by the combination of the newly-added pref and the existing
dom.animations-api.core.enabled pref.

MozReview-Commit-ID: Htr6mlyCBav

--HG--
rename : dom/animation/test/mozilla/file_disable_animations_api_core.html => dom/animation/test/mozilla/file_disable_animations_api_compositing.html
rename : dom/animation/test/mozilla/test_disable_animations_api_core.html => dom/animation/test/mozilla/test_disable_animations_api_compositing.html
extra : rebase_source : 7715a25e59568eb122ba3f7dbd2c2b2ffdd19954
2018-07-14 09:23:03 +09:00
Brian Birtles
fc657410ff Bug 1471814 - Add a preference for implicit keyframes; r=bz,hiro
This preference controls whether authors are allowed to specify animations
without a 0% or 100% keyframe.

We intend to ship this soon but this preference acts as a safeguard in case we
discover we need to disable it.

This feature is very convenient and commonly used so this patch ensures it is
always enabled for system content.

MozReview-Commit-ID: BHTsuS2xO61

--HG--
rename : dom/animation/test/mozilla/file_disable_animations_api_core.html => dom/animation/test/mozilla/file_disable_animations_api_implicit_keyframes.html
rename : dom/animation/test/mozilla/test_disable_animations_api_core.html => dom/animation/test/mozilla/test_disable_animations_api_implicit_keyframes.html
extra : rebase_source : 04fd93dd26a4765c14b0b22febdb0311b650ea59
2018-07-14 09:23:03 +09:00
Brian Birtles
5d13151cb9 Bug 1471814 - Add a preference for Web Animations timelines; r=bz,hiro
We don't intend to ship this in the near future until the integration with
AnimationWorklet is clear (although we might ship a read-only version).

That said, we use this feature extensively internally (e.g. in DevTools etc.) so
we enable this feature for system callers.

MozReview-Commit-ID: AhB7ZmU1Xzw

--HG--
extra : rebase_source : 630d7dc56b44a9261bb34aa5417cb9b7050efba4
2018-07-14 09:23:03 +09:00
Dan Glastonbury
fda2c1ee17 Bug 1467622 - P3: Cleanup transition tests with currentcolor. r=xidorn
Now that all properties handle currentcolor via mozilla::StyleComplexColor,
unify test_currentcolor_transition() and test_true_currentcolor_transition()
into test_currentcolor_transition().

MozReview-Commit-ID: 81hlAgTotpL

--HG--
extra : rebase_source : 0c77a60918a365eb907327e16ff7253df955cf17
2018-06-28 14:06:01 +10:00
Brindusan Cristian
232d35f4b9 Backed out 5 changesets (bug 1467622) for reftest failures on layout/reftests/svg/smil/style/anim-css-fill-1-from-by-curcol-hex.svg. CLOSED TREE
Backed out changeset 8694fe928b04 (bug 1467622)
Backed out changeset 74533cad9479 (bug 1467622)
Backed out changeset e1dbee410e98 (bug 1467622)
Backed out changeset 56142038cc7f (bug 1467622)
Backed out changeset 90cede21bad1 (bug 1467622)
2018-07-11 09:37:26 +03:00
Dan Glastonbury
b299d976de Bug 1467622 - P3: Cleanup transition tests with currentcolor. r=xidorn
Now that all properties handle currentcolor via mozilla::StyleComplexColor,
unify test_currentcolor_transition() and test_true_currentcolor_transition()
into test_currentcolor_transition().

MozReview-Commit-ID: 81hlAgTotpL

--HG--
extra : rebase_source : 9c9744c3fe4e423451e5a581501c88539c9d591f
2018-06-28 14:06:01 +10:00
Cameron McCormack
8d5efb0c93 Bug 1473450 - Remove angle values from image-orientation. r=emilio
MozReview-Commit-ID: FB74ILJM6Fm

--HG--
extra : rebase_source : 0902aff63e0db070d2fdda3568453975f752b988
2018-07-05 12:04:58 +10:00
Oriol Brufau
281b4c08f4 Bug 1472567 - Honor logical border colors in visited links r=emilio
MozReview-Commit-ID: IF8yvkFmPc4

--HG--
extra : rebase_source : 56d82de88c9390007a7fea5f2f8ef99292ad61d8
2018-07-05 12:56:34 +02:00
Andrea Marchesini
a053cf1c15 Bug 1476306 - Moving NullPrincipal/ContentPrincipal/SystemPrincipal under mozilla namespace - part 1 - NullPrincipal, r=ckerschb 2018-07-17 21:37:48 +02:00
Gerald Squelart
24fb00608f Bug 1211330 - Moved 'unset' invalid values from background-image alone to shared invalidGradientAndElementValues - r=heycam
This expands the testing of 'unset' invalid values to border-image-source,
mask-image, and shape-outside.

MozReview-Commit-ID: 3tcHnCgr6Dh

--HG--
extra : rebase_source : 80205a8ee5d186b3606adde50cadd7027f695c5f
2018-07-03 10:40:33 +10:00
Gerald Squelart
c601e3df86 Bug 1211330 - Removed CSS pref layout.css.unset-value.enabled - r=heycam
Feature is mature and doesn't need pref.
In fact, it was not used in code anymore, only in tests.

MozReview-Commit-ID: AbH8OCiksDa

--HG--
extra : rebase_source : b9a7d18b3c1b948f213632a16d2152f80d676068
2018-06-28 16:10:56 +10:00
Emilio Cobos Álvarez
97cf1e0c02 Bug 1116638: Expose logical props in computed style. r=xidorn
Differential Revision: https://phabricator.services.mozilla.com/D1862

--HG--
extra : moz-landing-system : lando
2018-06-30 13:45:43 +00:00
Gerald Squelart
fadefb87a2 Bug 1459524 - Removed layout.css.all-shorthand.enabled pref - r=heycam
The 'all' shorthand has shipped a long time ago, so this pref is not needed
anymore.

MozReview-Commit-ID: GND8qSVAfCG

--HG--
extra : rebase_source : 10708e749911fa95554ed423a5782db61df67cd0
2018-06-28 14:51:38 +10:00
Emilio Cobos Álvarez
8aaca6bf90 Bug 1464782: Allow logical aliases in the property database. r=me
MozReview-Commit-ID: 68WqG0OViPQ
2018-06-27 17:35:46 +02:00
Emilio Cobos Álvarez
688e2c1d75 Bug 1464782: Put offset-* aliases behind a pref. r=xidorn
MozReview-Commit-ID: Hl6Muim3wVH
2018-06-27 16:12:04 +02:00
Emilio Cobos Álvarez
d73b4b0679 Bug 1464782: Rename offset-* logical properties to inset-*. r=xidorn
MozReview-Commit-ID: BW44sru99RF
2018-06-27 16:12:01 +02:00
Xidorn Quan
dca9867a8f Bug 1471114 part 2 - Generate ComputedStyleMap entry list from property data. r=emilio
This changes the order of properties returned from gCS. The old order
doesn't make much sense, and other browsers don't agree on an identical
order either, so it should be trivial to change it. Also the spec isn't
super clear / useful in this case.

Several -moz-prefixed properties are excluded from the list due to their
being internal. I suspect they are never accessible anyway, so probably
nothing gets changed by this.

MozReview-Commit-ID: 9LfangjpJ3P

--HG--
extra : source : 879a7265c35f51c5954d8a44ccd374a606ecba0e
2018-06-27 15:34:29 +10:00
Olli Pettay
abf54817b9 Bug 1428246 - The attributeChangedCallback is fired twice for the *first* style attribute change, r=peterv
The idea with this patch is that style code will first call
InlineStyleDeclarationWillChange before style declaration has changed, and SetInlineStyleDeclaration once it has changed.

In order to be able to report old attribute value, InlineStyleDeclarationWillChange reads the value and also calls AttributeWillChange (so that DOMMutationObserser can grab the old value). Later SetInlineStyleDeclaration passes the old value to
SetAttrAndNotify so that mutation events and attributeChanged callbacks are handled correctly.

Because of performance, declaration can't be cloned for reading the old value. And that is why the recently-added callback is used to detect when declaration is about to change (bug 1466963 and followup bug 1468665).

To keep the expected existing behavior, even if declaration isn't changed, but just a new declaration was created (since there wasn't any), we need to still run all these
willchange/set calls. That is when the code has 'if (created)' checks.

Since there are several declaration implementation and only nsDOMCSSAttributeDeclaration needs the about-to-change callback, GetPropertyChangeClosure is the one to initialize the callback closure, and the struct which is then passes as data to the closure.

Apparently we lost mutation event testing on style attribute when the pref was added, so test_style_attr_listener.html is modified to test both pref values.

--HG--
extra : rebase_source : 9e605d43f22e650ac3912fbfb41abb8d5a2a0c8f
2018-06-26 12:54:00 +03:00
Emilio Cobos Álvarez
4bdd7b8cc4 Bug 1422225: Error reporting fixes. r=xidorn
Do it so that we always try to evaluate the media expression and the modern
syntax last, so that the most specific error message comes up.

MozReview-Commit-ID: 2tqdAsWh6Kh
2018-06-25 21:19:39 +02:00
Emilio Cobos Álvarez
03b691444f Bug 1422225: Test updates. r=xidorn
MozReview-Commit-ID: J2tag9ulUon
2018-06-25 21:19:38 +02:00
Dan Glastonbury
a7325e7c9b Bug 1467621 - P3: Add test for shadow-like color transitions on top of color transitions. r=xidorn
MozReview-Commit-ID: H6fxubFjNg6

--HG--
extra : rebase_source : 1ed61bc1e54f5facda5e2191bc3c8271f74e1f9c
2018-06-21 17:40:12 +10:00
Dan Glastonbury
334258d77f Bug 1467621 - P1: nsCSSShadowItem - Change nscolor to StyleComplexColor. r=xidorn
MozReview-Commit-ID: moE2CI7fT8

--HG--
extra : rebase_source : 7b64beccbd4c499d93567d62b913257dfa53c9fe
2018-06-19 14:18:33 +10:00
Xidorn Quan
38a8db3cca Bug 1418874 part 3 - Remove CSSLexer and related stuff. r=emilio,tromey
MozReview-Commit-ID: 2DuHpc3HfmB

--HG--
extra : rebase_source : 9718a8fd7350e33c36fc2307caf49241050800c1
2018-06-14 18:12:02 -07:00
Emilio Cobos Álvarez
837543fb26 Bug 1296209: A couple of calc() tests. r=dholbert
There's a bunch of others in WPT already, so I don't think it's worth going
through absolutely all of them...

MozReview-Commit-ID: LmGXyVkcOGm

--HG--
extra : rebase_source : 3af5786a0c6d16c95ddb9c639fc61442c4116caf
2018-06-15 12:04:28 -07:00
Jonathan Watt
1d30385dce Bug 1429713 part 3 - Update property_database.js for the -webkit-appearance alias. rs=emilio 2018-05-28 10:30:02 -07:00
Jonathan Watt
db894ff24e Bug 1429713 part 2 - Add basic tests for the layout.css.webkit-appearance.enabled pref. r=emilio 2018-05-25 15:52:25 -07:00
Emilio Cobos Álvarez
f4b0b148b3 Bug 1468854: Restrict -moz-is-resource-document to UA and chrome stylesheets. r=mats
MozReview-Commit-ID: 3vpNtgdy0yl
2018-06-14 15:10:29 -07:00
Joel Maher
50b91c0a14 Bug 1405428 - skip-if = verify on mochitests which do not pass test-verify. r=gbrown 2018-06-10 05:01:47 -04:00
Yusuf Sermet
de248c7ca7 Bug 1465250 - Make contain:paint trigger clipping independent of the overflow property. r=mattwoodrow
MozReview-Commit-ID: 2QbfZD1jnWX

--HG--
extra : rebase_source : 3c73973bd6373889ce1d147e348e584036782d1d
2018-05-30 14:28:53 -07:00
Emilio Cobos Álvarez
0fbd75e65f Bug 1466963: Provide a before-mutation closure to C++. r=xidorn,smaug
MozReview-Commit-ID: H2jwIeZoiBZ
2018-06-07 11:22:31 +02:00
Jonathan Watt
4963d6e99c Bug 1465983 part 3 - Fix the use of Promise.then() in test_font_loading_api.html. r=orange 2018-05-22 19:30:35 +01:00
Jonathan Watt
c9ad9a1bd6 Bug 1465983 part 1 - Fix race in test_font_loading_api.html. rs=heycam
This patch changes 'TEST 3' so that instead of testing that all the
documents' document.fonts.ready Promises are resolved at a certain time, that
instead it just waits for them to resolve and then checks that they resolved
to the correct object.

The test previously assumed that calling SpecialPowers.pushPrefEnv on the
page's 'load' and waiting for pushPrefEnv's callback would be enough time
for document.fonts.ready to have been resolved for the top-level document and
all of its frames.  That is not necessarily the case.  Even the Promise in the
top-level document itself is not guaranteed to have resolved by that point.
The Promises will not have been resolved at least until style and layout has
been flushed, and in fact in Mozilla's implementation it frequently won't
happen until the first refresh driver tick after layout has finished.  The
result of this is that the CI machine 'Linux x64 QuantumRender opt' was
failing 'TEST 3' intermittently.
2018-05-22 12:46:18 +01:00
Emilio Cobos Álvarez
64d52f8175 Bug 1288572: Update test expectations. r=xidorn
MozReview-Commit-ID: DubkcRaaD4C
2018-06-04 15:56:01 +02:00
Emilio Cobos Álvarez
b09a776796 Bug 1288572: Don't hide -moz-box / -moz-inline-box yet. r=mats
I'd really prefer to not land this patch, but...

MozReview-Commit-ID: HzmvhTd32gz
2018-06-04 15:55:59 +02:00