Commit Graph

1592 Commits

Author SHA1 Message Date
Mats Palmgren
cd270495b8 Bug 1266268 - [css-grid] Tests <percentage> for grid gap properties. 2016-05-25 10:48:52 +02:00
Hiroyuki Ikezoe
73fde46943 Bug 1167519 - Part 2: A mochitest to check a new transform position replaced by old transform transition is close to the old one. r=birtles
MozReview-Commit-ID: 1s8ZH3KPf9a

--HG--
extra : rebase_source : bb117f14382ff88a9142d9d2ce7756fa3e251288
2016-05-25 12:41:23 +09:00
Thomas Wisniewski
ef181f575e Bug 955857 - Add tests for overflow-wrap. r=dbaron
MozReview-Commit-ID: 5HVMTNWDIaz

--HG--
rename : layout/reftests/text/wordwrap-04.html => layout/reftests/text/overflowwrap-04.html
rename : layout/reftests/text/wordwrap-05.html => layout/reftests/text/overflowwrap-05.html
rename : layout/reftests/text/wordwrap-06.html => layout/reftests/text/overflowwrap-06.html
rename : layout/reftests/text/wordwrap-07.html => layout/reftests/text/overflowwrap-07.html
rename : layout/reftests/text/wordwrap-09.html => layout/reftests/text/overflowwrap-09.html
rename : layout/reftests/text/wordwrap-10.html => layout/reftests/text/overflowwrap-10.html
extra : rebase_source : 3ea075f4837fc38fbc450189324180680a10e945
2016-05-23 21:41:03 -04:00
Edgar Chen
7e21de3ed5 Bug 1274526 - Part 1: Implement support for 'q' absolute length units in CSS; r=heycam
MozReview-Commit-ID: vTDufVkAuv
2016-05-23 15:18:34 +08:00
Daniel Holbert
9a78c49077 Bug 1274096 part 2: Add support for "-webkit-flex" & "-webkit-inline-flex" as spellings of modern flexbox "display" keywords, if webkit prefix support is enabled. r=mats
MozReview-Commit-ID: 3UKsC1qTz1B
2016-05-23 21:42:36 -07:00
Daniel Holbert
09d9eb8a88 Bug 1274096 part 1: Add support for webkit-prefixed aliases of modern flexbox CSS properties. r=mats
MozReview-Commit-ID: FcOqz82qCAI
2016-05-23 21:42:34 -07:00
Phil Ringnalda
6bb0bc4494 Back out 6 changesets (bug 881832) for failures in test_Debugger.Source.prototype.element.html
CLOSED TREE

Backed out changeset fac50ce10b07 (bug 881832)
Backed out changeset 32e01c144cd4 (bug 881832)
Backed out changeset 779f5336b81e (bug 881832)
Backed out changeset 95efd250e29f (bug 881832)
Backed out changeset 7fe79f07189f (bug 881832)
Backed out changeset 8ee1824f2a57 (bug 881832)
2016-05-23 18:34:49 -07:00
Daisuke Akatsuka
9b0ebdae81 Bug 1209405 - Part 6: Add restyle test for SMIL animation. r=hiro
MozReview-Commit-ID: 2nOxiujnQgv

--HG--
extra : rebase_source : 002bbf2852f51c664797b62767a1ff76cad30bae
2016-05-23 10:53:23 +09:00
Matt Woodrow
26046e381f Bug 881832 - Fix hover_helper to handle that multiple resizes due to :hover oscillation are now coalesced and don't fire resize events. r=dbaron 2016-05-12 12:08:31 +12:00
CJKu
ffcae1dc76 Bug 1272970 - fix test_transitions_per_property failure; r=mstange
MozReview-Commit-ID: 9y9gT0dagDv

--HG--
extra : rebase_source : a01d99716b26e072b2ae74e3602772764810991c
2016-05-15 22:39:31 +08:00
L. David Baron
55b6b3268e Bug 1111440 - Replace rest of -moz-/Moz prefixed logical margin/padding/border properties with their standard versions. r=heycam
This patch was generated by the command:
  find * -type f -exec sed -i -f ../mozpropsub {} \;
in the root of the repository, with the file ../mozpropsub containing:
s/-moz-padding-end\>/padding-inline-end/g
s/-moz-padding-start\>/padding-inline-start/g
s/-moz-margin-end\>/margin-inline-end/g
s/-moz-margin-start\>/margin-inline-start/g
s/-moz-border-end\>/border-inline-end/g
s/-moz-border-end-color\>/border-inline-end-color/g
s/-moz-border-end-style\>/border-inline-end-style/g
s/-moz-border-end-width\>/border-inline-end-width/g
s/-moz-border-start\>/border-inline-start/g
s/-moz-border-start-color\>/border-inline-start-color/g
s/-moz-border-start-style\>/border-inline-start-style/g
s/-moz-border-start-width\>/border-inline-start-width/g
s/\<MozPaddingEnd\>/paddingInlineEnd/g
s/\<MozPaddingStart\>/paddingInlineStart/g
s/\<MozMarginEnd\>/marginInlineEnd/g
s/\<MozMarginStart\>/marginInlineStart/g
s/\<MozBorderEnd\>/borderInlineEnd/g
s/\<MozBorderEndColor\>/borderInlineEndColor/g
s/\<MozBorderEndStyle\>/borderInlineEndStyle/g
s/\<MozBorderEndWidth\>/borderInlineEndWidth/g
s/\<MozBorderStart\>/borderInlineStart/g
s/\<MozBorderStartColor\>/borderInlineStartColor/g
s/\<MozBorderStartStyle\>/borderInlineStartStyle/g
s/\<MozBorderStartWidth\>/borderInlineStartWidth/g

The diffs for the following files:
  layout/style/nsCSSPropAliasList.h
  layout/style/test/property_database.js
  layout/style/test/test_value_computation.html
were then manually removed from the patch.

MozReview-Commit-ID: 8fbYnlZcn9U
2016-05-14 00:00:18 -07:00
Brian Birtles
90fb66a530 Bug 1271904 - Rename KeyframeEffectReadOnly.getFrames() and KeyframeEffect.setFrames() to getKeyframes()/setKeyframes(); r=hiro, r=smaug
MozReview-Commit-ID: GwLLY39l1KE

--HG--
rename : dom/animation/test/css-animations/file_keyframeeffect-getframes.html => dom/animation/test/css-animations/file_keyframeeffect-getkeyframes.html
rename : dom/animation/test/css-animations/test_keyframeeffect-getframes.html => dom/animation/test/css-animations/test_keyframeeffect-getkeyframes.html
rename : dom/animation/test/css-transitions/file_keyframeeffect-getframes.html => dom/animation/test/css-transitions/file_keyframeeffect-getkeyframes.html
rename : dom/animation/test/css-transitions/test_keyframeeffect-getframes.html => dom/animation/test/css-transitions/test_keyframeeffect-getkeyframes.html
rename : testing/web-platform/meta/web-animations/keyframe-effect/setFrames.html.ini => testing/web-platform/meta/web-animations/keyframe-effect/setKeyframes.html.ini
rename : testing/web-platform/tests/web-animations/keyframe-effect/setFrames.html => testing/web-platform/tests/web-animations/keyframe-effect/setKeyframes.html
2016-05-13 09:40:52 +09:00
Phil Ringnalda
c6417cc01e Back out 5 changesets (bug 881832) for failures in browser_html_tooltip-02.js
Backed out changeset 117e8e24d714 (bug 881832)
Backed out changeset 8a0d5df41cfb (bug 881832)
Backed out changeset 6b3c5e185b04 (bug 881832)
Backed out changeset 11106afdcbe7 (bug 881832)
Backed out changeset d711b7c19a43 (bug 881832)
2016-05-11 21:08:08 -07:00
Matt Woodrow
62f3ec6605 Bug 881832 - Fix hover_helper to handle that multiple resizes due to :hover oscillation are now coalesced and don't fire resize events. r=dbaron
--HG--
extra : rebase_source : 806449975140c30fca612d647605b953b3511e00
2016-05-12 12:08:31 +12:00
Xidorn Quan
fa7ba2cb82 Bug 1269975 part 1 - Move nsCSSProps::EnabledState to a top level enum class mozilla::CSSEnabledState. r=heycam
MozReview-Commit-ID: 3KH5cqDFzUI

--HG--
extra : rebase_source : 3c8355f7807982152a16a913b31cbcdd6ef78030
extra : source : 73e89d25a34ca5587f306b848b0b801342f9432f
2016-05-10 18:44:05 +10:00
Ryan VanderMeulen
f514ed495c Backed out 4 changesets (bug 1269975) for bustage.
Backed out changeset a55ecedea260 (bug 1269975)
Backed out changeset 5321545b938c (bug 1269975)
Backed out changeset 7e4a2ee61ef3 (bug 1269975)
Backed out changeset d181f8e7e4c3 (bug 1269975)
2016-05-10 00:08:54 -04:00
Xidorn Quan
30a6d76b26 Bug 1269975 part 1 - Move nsCSSProps::EnabledState to a top level enum class mozilla::CSSEnabledState. r=heycam
MozReview-Commit-ID: 3KH5cqDFzUI

--HG--
extra : source : 73e89d25a34ca5587f306b848b0b801342f9432f
2016-05-10 13:36:25 +10:00
L. David Baron
d7641eeef2 Bug 1271015 patch 2 - Add tests for things not happening (optimizations) in response to media query changes. r=heycam
This adds a few basic tests for expectations of when we do and don't
restyle, construct frames, and reflow in response to changes of media
queries.  They don't give us a lot of coverage, but often the tiny bits
of coverage at the beginning are the most useful.

In general, I'd like us to have more tests for specific optimizations,
i.e., for specific things that we expect not to happen in certain cases.
The elementsRestyled, framesConstructed, and framesReflowed getters on
DOMWindowUtils are a good way to make such measurements for a number of
things in layout; that's why I added them.

(Inspired a bit by bug 1259641.)

MozReview-Commit-ID: JFtlPO1eyoD
2016-05-09 11:26:35 -07:00
L. David Baron
5aafe1d979 Bug 567283 patch 4 - Support #rgba and #rrggbbaa colors in CSS. r=xidorn
This adds support for #rgba and #rrggbbaa colors to CSS.  This feature
is specified in https://drafts.csswg.org/css-color-4/#hex-notation .

This adds new types to nsCSSValue so that we can serialize the syntax
that was specified, as we do for other distinctions in how colors are
specified.

It does not change the behavior of the hashless color quirk, which
continues to support only 3 and 6 digit colors as specified in
https://quirks.spec.whatwg.org/#the-hashless-hex-color-quirk (step 4).

This changes property_database.js to remove various uses of 4 and 8
digit colors as invalid values.  It then adds them in slightly fewer
places as valid values, but more thoroughly testing both initial and
non-initial values on 'color'.

It marks two canvas tests explicitly testing this feature as no longer
known to fail by removing their .ini files.

Finally, it adjusts the web platform test testing the hashless color
quirk to no longer treat 4 and 8 digit colors with hashes as invalid
values.  Removing the relevant test items seems like the right thing
since they're in a section where 3 and 6 digit colors were skipped but
other lengths were tested.  Modifying this imported test is OK since:
  <jgraham> dbaron: Commit the change you want to m-c, it is
    (semi-)automatically upstreamed every so often (typically
    about once a week)

MozReview-Commit-ID: IFq4HxaRkil
2016-05-08 22:16:42 -07:00
Astley Chen
844639b0ad Bug 859301 : Part 3 - unprefix test cases. r=dbaron
MozReview-Commit-ID: 6KvILd31r9Y

--HG--
extra : rebase_source : 68c820453ca2d27fda63b645cdab65dddfa90c31
2016-05-04 13:31:24 +08:00
L. David Baron
608d04db2f Bug 1270626 - Don't leave an unhandled ErrorResult and assert when media query listeners throw exceptions. r=bzbarsky
I'm acting under the assumption that this is what's closest to what the
code does now, except without asserting in ~ErrorResult.  It also seems
closest to what event listeners will do, both based on examining code
(EventListenerManager::HandleEventSubType, which I'm hoping is the right
code to look at, calls StealNSResult, and then stores it in a member
that's ignored by most callers) and based on testing (for both click
events, and for media query listeners with this patch, the exception
gets reported to the console as an unhandled exception).  That said, I'm
not particularly well versed in the current error handling rules so I
may well be off here.

This code should presumably go away when we change this code to use
EventListeners in bug 1265622, so I don't think there's any spec that
covers this.

Without the patch, the mochitest hits the fatal assertion (after
reporting hitting the expected uncaught exception).  With the
patch the test passes.  (Tested locally.)

MozReview-Commit-ID: 5kxp6jzGzX8

--HG--
extra : transplant_source : n%B4%AE%99D%FB%B9NM%C0%A2%F0%D4%B7%8C%E7%DE4E%60
2016-05-05 21:33:47 -07:00
Mike Shal
16febf4398 Bug 1269787 - Use _pretty_path instead of full path for inputs; r=glandium
We use _pretty_path when specifying the targets of generated files, so
we need to use _pretty_path for the inputs as well. Otherwise make won't
know that they refer to the same file, and result in "No rule to make
target" errors.


MozReview-Commit-ID: JTdLFbkX1J0
2016-04-29 13:43:25 -04:00
Daniel Holbert
fd53b731b2 Bug 1269992: In mochitest test_clip_path_equals (for CSS transitions), don't try to pop a reference box off of the expected value when it doesn't have one. r=jwatt
MozReview-Commit-ID: K0o1y40o6Pe
2016-05-04 08:57:04 -07:00
Carsten "Tomcat" Book
548d98c27e merge mozilla-inbound to mozilla-central a=merge 2016-05-02 11:25:32 +02:00
Brian Birtles
02700078d5 Bug 1267018 - Split tests that rely on pref-based changes to Element.prototype into two files; r=heycam
MozReview-Commit-ID: KqLCYOknFRX
2016-05-02 09:28:45 +09:00
Jared Wein
e889366796 Bug 1268159 - Use GreD in addition to XCurProcD for browser_misused_characters_in_strings.js to cover more string files. r=gijs
MozReview-Commit-ID: IlC170W0nlG
* * *
[mq]: temp

MozReview-Commit-ID: GF0k4zvONPD
2016-04-29 09:28:48 -04:00
Mantaroh Yoshinaga
c34b85860e Bug 1134163 - Part2 - Modify animation tests which rely on animationstart timing. r=birtles
MozReview-Commit-ID: 2IaCejiFgY2

--HG--
extra : transplant_source : %1Dp%CA%B3%E2%D4%15%CDH%EA%CEzbdI-B2%3D%9C
2016-04-28 16:30:23 +09:00
Markus Stange
6950386ff3 Bug 550426 - Fix test_transitions_per_property.html. r=dbaron
This adds testing for transitions on background-position-x/y, and makes sure we
no longer call check_distance for background-position, because
background-position is now a shorthand and no longer has its own distance
computation.

MozReview-Commit-ID: 82KVruCghGe

--HG--
extra : rebase_source : c7c85abc9bb7ff1987d7372635c0a9702715b761
2015-12-16 12:27:20 +01:00
Markus Stange
3bbd4e65d4 Bug 550426 - Add support for {background,mask}-position-{x,y}, StyleAnimation changes. r=dbaron
MozReview-Commit-ID: 8Qb0asWMgVA

--HG--
extra : rebase_source : d43ab6905e0b39e03680e2266e16737d0d445a31
2016-04-21 20:23:35 -04:00
Markus Stange
1a43349a44 Bug 550426 - Add support for {background,mask}-position-{x,y}, most of the style system changes. r=dbaron
MozReview-Commit-ID: JgZIoj43aZv

--HG--
extra : rebase_source : cf90a8cf7c10ee90f4c312b7ff5c1107aa8571f2
2016-04-29 14:12:10 -04:00
Markus Stange
7189351aab Bug 550426 - Add support for {background,mask}-position-{x,y}, property_database.js changes. r=dbaron
MozReview-Commit-ID: 1vKeywCAF7O

--HG--
extra : rebase_source : 3c3e8860ea4ed61ef20a1ccc9450d9734cca1c01
2016-04-21 20:25:56 -04:00
Wes Kocher
6521757101 Backed out 10 changesets (bug 550426) for failures in browser_css_autocompletion.js
Backed out changeset 6ff2e12738ca (bug 550426)
Backed out changeset 10ee68fd318e (bug 550426)
Backed out changeset 324f4f602730 (bug 550426)
Backed out changeset 81306e78ccaa (bug 550426)
Backed out changeset 44b820f6fb3d (bug 550426)
Backed out changeset 987b6ff7262e (bug 550426)
Backed out changeset d505646974c7 (bug 550426)
Backed out changeset 2162ecc18859 (bug 550426)
Backed out changeset 1a030aba3acc (bug 550426)
Backed out changeset 3655883e7faf (bug 550426)

MozReview-Commit-ID: AlUihrLtlhL

--HG--
rename : layout/reftests/backgrounds/background-position-6b.html => layout/reftests/backgrounds/background-position-6.html
2016-04-29 14:47:43 -07:00
Markus Stange
e8cb10c2d9 Bug 550426 - Fix test_transitions_per_property.html. r=dbaron
This adds testing for transitions on background-position-x/y, and makes sure we
no longer call check_distance for background-position, because
background-position is now a shorthand and no longer has its own distance
computation.

MozReview-Commit-ID: 82KVruCghGe

--HG--
extra : rebase_source : 65e52287c141044df8ae490d461ebef3e8d403ec
2015-12-16 12:27:20 +01:00
Markus Stange
de8b8de801 Bug 550426 - Add support for {background,mask}-position-{x,y}, StyleAnimation changes. r=dbaron
MozReview-Commit-ID: 8Qb0asWMgVA
***

--HG--
extra : rebase_source : 694f057c76a2632ed5b6280ddc84bd1cc34d3ecb
2016-04-21 20:23:35 -04:00
Markus Stange
10d8636821 Bug 550426 - Add support for {background,mask}-position-{x,y}, most of the style system changes. r=dbaron
MozReview-Commit-ID: JgZIoj43aZv

--HG--
extra : rebase_source : 5c7663c042e6507f9979d769db26eef22dc8ba79
2016-04-29 14:12:10 -04:00
Markus Stange
83232444db Bug 550426 - Add support for {background,mask}-position-{x,y}, property_database.js changes. r=dbaron
MozReview-Commit-ID: 1vKeywCAF7O
***
test/property_database.js mask-position

--HG--
extra : rebase_source : 2710ce2f4a4365473ace7d0f0643c8d06d6b5372
2016-04-21 20:25:56 -04:00
Mats Palmgren
adbc189b42 Bug 1264067 - [css-grid] Update tests that use 'fr' min-sizing. 2016-04-25 18:43:04 +02:00
Jeremy Chen
84a70f3910 Bug 1248708 - Part1: parse and compute -webkit-text-stroke property. r=heycam 2016-04-23 01:40:39 +08:00
Xidorn Quan
c43f5c933c Bug 1260543 followup - Fix the function name in test_transitions_per_property.html. DONTBUILD
MozReview-Commit-ID: CKUpbBhN2KT

--HG--
extra : source : f2327d92b118737c4294ae61bd6d10631f0671ef
2016-04-22 12:01:16 +10:00
Xidorn Quan
1f5f8a54d0 Bug 1260543 - Treat currentcolor as computed value which is not interpolatable with actual color for text-emphasis-color and -webkit-text-fill-color. r=birtles
MozReview-Commit-ID: GUXEDHxOdNC

--HG--
extra : rebase_source : 83f47535dc6f5a1f5fe72f60ba4877ec9a16a6df
2016-04-08 13:43:09 +10:00
Xidorn Quan
b1521c643f Bug 1097499 part 1 - Control support of 'text-combine-upright: digits' via a separate pref. r=heycam
MozReview-Commit-ID: JerTsxaQCL4

--HG--
extra : source : 999d1d2997591935fa1259fa42a91658da8ee078
2016-04-22 09:18:41 +10:00
Mats Palmgren
784d6b392f Bug 1266250 part 1 - [css-grid] Resurrect the 'grid-template' shorthand (backs out bug 1253529). r=dholbert 2016-04-21 16:18:34 +02:00
Brian Birtles
383f4aa97c Bug 1265611 - Add tests for CSS animations; r=heycam
MozReview-Commit-ID: LTnRxQixqzJ
2016-04-21 17:05:47 +09:00
Brian Birtles
825d83d3fc Bug 1265611 - Don't trigger transitions for properties that are disabled; r=heycam
Currently if we have transition-property: 'all' and trigger a transition
on the 'color' property we will end up generating a transition on
-webkit-text-fill-color even if that property is disabled.

However, when we later call StyleAnimationValue::ToValue() in
nsTransitionManager::UpdateTransitions() to see if there are any transitions we
need to cancel, the comparison for currentValue != anim->ToValue() will pass
(since, as of the first patch in this patch series, ToValue() returns a null
value) so we end up cancelling the transition as soon as we create it).

Nevertheless, we will still trigger the warning introduced in the first patch
in this series when we call ToValue().

This patch stops us from creating transitions in the first place (and hence
triggering the warning). It also removes the code that suppresses transition
events for transitions on disabled properties since we should no longer be
generating such transitions in the first place (unless the pref is switched
while the transition is in motion which is probably not worth worrying about).

Note that we only test if the property is enabled for all content. This is
consistent with what we do throughout animation code including the existing
code in nsTransitionManager which iterates through shorthand sub-properties
using CSSPROPS_FOR_SHORTHAND_SUBPROPERTIES with the flag
nsCSSProps::eEnabledForAllContent.

The test case in this patch doesn't actually fail without this change, all it
does it trigger the warning in StyleAnimationValue::ToValue() introduced
in the first patch in this series. It's still a useful regression test however,
particularly if we later upgrade the warning in StyleAnimationValue::ToValue()
to a fatal assertion.

MozReview-Commit-ID: H9swDKLyiOf
2016-04-21 17:05:46 +09:00
Daniel Holbert
ad9794f615 Bug 1262049 part 2: Add -webkit-box-orient & -webkit-box-direction as aliases for -moz versions, in the style system (but not yet honored by flexbox layout). r=mats
MozReview-Commit-ID: 3WFB2cdXlNQ
2016-04-20 16:43:24 -07:00
Daniel Holbert
dfb1c4c768 Bug 1262049 part 1: Back out bug 1208344 in its entirety, and mark -webkit-box-orient:vertical reftests as failing (for now). (no review)
This patch backs out changeset range 1f1884449dd4:0b5ed5e4a395 (all of the patches for bug 1208344) -- i.e. it backs out our support for "-webkit-box-orient".  This patch also adds "fails" annotations to two reftests that depend on that feature, to reflect reality that these tests are now expected to fail (for the moment).

MozReview-Commit-ID: F8zGGg8R0Rn
2016-04-20 16:43:24 -07:00
Jonathan Watt
8f6a52b6e5 Bug 1110460, part 8 - Support CSS animation of clip-path basic shapes. r=dholbert 2016-04-18 23:04:20 +01:00
Mats Palmgren
fd41a201a0 Bug 1265001 part 2 - Add some tests with uppercase N in An+B. 2016-04-19 22:12:16 +02:00
CJKu
1cbaa6fc28 Bug 759568 - Part 4. mochitest for background-clip:text; r=heycom
MozReview-Commit-ID: 8DrBq8nNWfu
2016-04-14 16:28:07 +08:00
Carsten "Tomcat" Book
fb0c59ae9f Backed out changeset 2d26ad2b9a09 (bug 759568) 2016-04-14 08:57:38 +02:00