Commit Graph
2409 Commits
Author SHA1 Message Date
Nazım Can Altınova 4c36ad9386 Bug 1396102 - Add some testcases to verify that we consistently serialize the default line directions in linear gradients (iff stylo is enabled) r=dholbert
We exclude these testcases from being tested under Gecko, because they fail some
mochitest checks for parse+serialize idempotence.  The failures happen because of
a combination of these factors:
 (a) Gecko's style system is inconsistent about whether an explicitly-specified
(but default) gradient direction should get serialized.
 (b) Gecko's style system is inconsistent about whether the vendor prefix is
preserved, when parsing a prefixed gradient.

Since these prefixed gradients aren't super-important and since Gecko's style-system
is being replaced via stylo, we're not bothering to fix the gecko style-system for
this -- we'll just make these tests stylo-specific.

MozReview-Commit-ID: 8lL1aRnDO2H
2017-09-25 22:13:03 +03:00
Daniel Holbert 42a96b010c Bug 1383323: Add a property_database.js testcase to verify that we reject radial-gradient() expressions that lack comma between shape and first color (iff stylo is enabled). r=xidorn
As noted in my code-comment here: Gecko's CSS parser incorrectly accepts this
CSS -- wherease Stylo correctly rejects it. Rather than trying to fix this in
Gecko, I'm just adding it in such a way that our expectation changes depending
on which CSS engine we're using.  This lets us regression-test this in our
now-default stylo configuration, and still detect accidental/unexpected
behavior-changes in Gecko.

MozReview-Commit-ID: whLGIrh7TQ
2017-09-26 15:52:17 -07:00
Emilio Cobos Álvarez 1650fd5c29 Bug 1397619: Test paint-order specified value serialization. r=me
MozReview-Commit-ID: ICtzbZVix1u
Signed-off-by: Emilio Cobos Álvarez <[email protected]>
2017-09-25 19:01:15 +02:00
Emilio Cobos Álvarez 018ad5860f Bug 1397619: Test border-spacing specified value serialization. r=me
MozReview-Commit-ID: 1L5mjfvYRLQ
Signed-off-by: Emilio Cobos Álvarez <[email protected]>
2017-09-25 19:01:14 +02:00
Fernando Jimenez Moreno c8a24067c9 Bug 1397619 - stylo: test border-radius longhand specified values serialization. r=emilio
MozReview-Commit-ID: FWN56IcctTJ
Signed-off-by: Emilio Cobos Álvarez <[email protected]>
2017-09-25 19:01:14 +02:00
Wei-Cheng Pan d602bfb004 Bug 1363805 - Part 5: Add testcase for restyle generation. r=heycam
Make sure we restyle only if we have to.

MozReview-Commit-ID: 6yuyxH4GInJ
2017-09-12 18:17:18 +08:00
Wei-Cheng Pan 9bec4e85ee Bug 1363805 - Part 4: Fix tests that need style flushing. r=heycam
Some properties will not trigger style flushing if there is no dirty ancestor.
Instead, use a property which needs layout flushing will do the trick.

MozReview-Commit-ID: C2lRjl5t3ry
2017-09-12 17:46:45 +08:00
Sebastian Hengst f57369ed5e merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: FKzfDK7mwcx
2017-09-22 11:29:49 +02:00
Geoff Brown f3a26d459b Bug 1397615 - Skip some long-running mochitests on Android Debug only; r=snorp 2017-09-21 12:39:35 -06:00
Ting-Yu Lin 6aa7882b89 Bug 1281101 Part 2 - Remove mask-image support checking in mochitests. r=cjku
MozReview-Commit-ID: I0GI8ae3J1x
2017-09-21 17:39:37 +08:00
Ting-Yu Lin a78b44acbc Bug 1281101 Part 1 - Remove MOZ_ENABLE_MASK_AS_SHORTHAND from layout code. r=cjku
MozReview-Commit-ID: HWq2IOLsflD
2017-09-21 17:36:57 +08:00
Tom Tromey 5132043cac Bug 1399911 - preserve sourceURL comment directive on style sheets; r=bz,heycam
In addition to the sourceMappingURL comment, there is a second special
comment, "sourceURL", that can be used to set the "display name" of a
style sheet for developer tools.  This name is also used as the base
URL for the source-map URL resolution algorithm.  sourceURL is
described here:
https://blog.getfirebug.com/2009/08/11/give-your-eval-a-name-with-sourceurl/

This patch changes Firefox to record this URL, if specified, and to
expose it (chrome-only) vai StyleSheet.webidl.

MozReview-Commit-ID: 7NwXsOf7nbY
2017-09-14 14:59:32 -06:00
Ting-Yu Lin 781487df22 Bug 1289049 Part 4 - Make <basic-shape> animatable for shape-outside for gecko style system. r=boris
MozReview-Commit-ID: 7x0jdqWqkpL
2017-09-19 17:21:21 +08:00
Boris Chiou 24faf4d2af Bug 1390026 - Update test_transitions_per_property.html for shape-outside. r=birtles
MozReview-Commit-ID: KJKTJkM84UN
2017-09-19 16:35:32 +08:00
Brad Werth 3741f6e4e0 Bug 1399941 Part 2: Add more aspect-ratios to a test of media queries, testing for overflow. r=emilio
MozReview-Commit-ID: 6NLYkLUNP8d
2017-09-15 10:29:45 -07:00
Ting-Yu Lin 5262adc990 Bug 1399767 - Remove preference "layout.css.clip-path-shapes.enabled". r=heycam
The variables (basicShapeSVGBoxValues, etc.) in property_database.js are
moved to the beginning of the file so that they're defined before usage.

MozReview-Commit-ID: 7L3obIY1alP
2017-09-15 15:00:30 +08:00
Fernando Jimenez Moreno a40b653d3e Bug 1384221 - stylo: error reporting lies about property names in some cases. r=jdm 2017-09-11 02:11:00 -04:00
Markus Stange 20d02b9b24 Bug 1387594 - Add a chrome-only CSS property called -moz-font-smoothing-background-color. r=dbaron
This property accepts a color. It's inherited and defaults to transparent.
Its value is respected on macOS when rendering text into transparent pixels.
This property should be used for text that is placed on top of "vibrant"
-moz-appearances, in order to achieve high quality text rendering for such text.

In most cases, the property should be set to a named system color; an upcoming
patch in this patch series will add one such color for each vibrant
-moz-appearance value.
However, in some cases it can also be useful to use a custom color: If text
is rendered into an intermediate surface, for example because a mask is applied
to it, and the background color behind that intermediate surface is known, then
this property can be set to that background color in order to achieve subpixel
AA for the text inside the mask effect. In that case, the font smoothing
background color is respected because text is rendered into transparent pixels
*inside the intermediate surface*. At the moment, the only example of that use
case is the text of the active tab in the state where the text is overflowing.

MozReview-Commit-ID: D98qQnxoFaq
2017-09-14 23:09:46 +02:00
Wes Kocher 31a0efe26a Bug 1398869 - Now re-fix the non-stylo tests a=bustage CLOSED TREE
MozReview-Commit-ID: DzoYfA1gWfq
2017-09-12 17:42:11 -07:00
Josh Matthews 98e698a0ea Bug 1398869 - Fix up test_bug413958.html, too a=bustage CLOSED TREE 2017-09-12 16:37:42 -07:00
Xidorn Quan 3e169eefa6 Bug 1398619 - Correctly inherit backend for document created by DOMParser, and add test for it. r=bholley
The old code doesn't work because mScriptHandlingObject is a nsWeakPtr,
which cannot be casted to nsPIDOMWindowInner directly.

Since scriptHandlingObject is a strong reference to the same object, we
can just try casting that.

MozReview-Commit-ID: JRBs5N6xxc0
2017-09-12 14:28:27 +10:00
Fernando Jimenez Moreno 0d0d62c38c Bug 1382369 - stylo: store specified value of grid layout repeat() function. Tests. r=mats 2017-09-11 11:30:04 +02:00
Fernando Jimenez Moreno b0fb04d4af Bug 1384225 - stylo: Error reporting for unknown media features. Tests. r=jdm 2017-09-09 11:32:01 +02:00
Hiroyuki Ikezoe 27fa8bdf61 Bug 1397122 - Handle values as valid in single transition shorthand even if the transition-property is 'none'. r=xidorn
A single transition value that includes 'none' for transition-property is
valid, so we should store whole specified values (if it's valid).  Whereas,
the spec [1] clearly says for the case where there are multiple entries;
  If there is more than one <single-transition> in the shorthand, and any of
  the transitions has none as the <single-transition-property>, then the
  declaration is invalid.

'none 2s linear 2s' is a test case for the former, '1s width, 2s none' is a
test case for the latter.

Note that with this patch, 'transition: none' is serialized as 'none 0s ease 0s'
instead of 'none' but it matches Gecko.

[1] https://drafts.csswg.org/css-transitions/#single-transition

MozReview-Commit-ID: 3o3z5GFyMqh
2017-09-09 11:34:06 +09:00
Brian Birtles f0560fdf84 Bug 1352336 - Restore intermittently failing OMTA tests: test_animations_playbackrate.html, test_animations_iterationstart.html, test_animations_effect_timing_enddelay.html; r=hiro
This restores the tests disabled in bug 1351038 in the following two changesets:

  https://hg.mozilla.org/mozilla-central/rev/355a5b1ce195
  https://hg.mozilla.org/mozilla-central/rev/42d522a5f9b5

MozReview-Commit-ID: 3chbW5Mkg5S
2017-09-08 16:40:05 +09:00
Emilio Cobos Álvarez 2fb463ee98 Bug 1387410: Stop the grid shorthand from resetting grid-gap properties. r=heycam
MozReview-Commit-ID: GxU9YuAUc00
2017-09-08 10:10:11 +02:00
Brad Werth 70fa727742 Bug 1395322 Part 2: Change timeouts to failures in layout/style/test/chrome/test_stylesheet_clone_import_rule.html. r=xidorn
MozReview-Commit-ID: 8ea7J5ExmzH
2017-08-30 13:10:42 -07:00
Josh Mattheus cab0c2dd51 Bug 1386900 - Add test for parsing invalid filter values. r=xidorn
MozReview-Commit-ID: FxbyxXRGmBB
2017-09-06 21:26:27 +02:00
Emilio Cobos Álvarez ac5e4392ca Bug 1393861: Correctly apply the display fixup for ::before and ::after pseudo-elements. r=heycam
MozReview-Commit-ID: G0bcZmn0mP
2017-09-05 15:07:01 +02:00
Sebastian Hengst a518bd8f7d Backed out changeset 1caa4e7a8319 (bug 1393861) for busting web-platform-tests. r=backout on a CLOSED TREE 2017-09-06 13:44:09 +02:00
Emilio Cobos Álvarez 316256f503 Bug 1393861: Correctly apply the display fixup for ::before and ::after pseudo-elements. r=heycam
MozReview-Commit-ID: G0bcZmn0mP
2017-09-05 15:07:01 +02:00
Manish Goregaokar 8adf756390 Bug 1394302 - stylo: Add mochitest; r=birtles
MozReview-Commit-ID: DJ3zFqqMNXk
2017-09-05 14:50:59 -07:00
Simon Sapin b7076ee9cf Bug 1396664 - re-enable bad-string subtests in test_parser_diagnostics_unprintables.html r=emilio
… and update cssparser to 0.20.1

MozReview-Commit-ID: 8SiFIGk1jtb
2017-09-05 15:40:57 +02:00
Tom Tromey 7ccfa075fd Bug 1388855 - Extract source map URL when parsing CSS, r=bz,heycam
This changes the CSS lexer to extract sourceMappingURL directives from
comments and preserve them; then changes the parser to expose this value
as the style sheet's sourceMapURL.

MozReview-Commit-ID: LfMamJ1PsU0
2017-08-09 13:33:24 -06:00
Ting-Yu Lin 0ff1df05f0 Bug 1382078 Part 3 - Support media changes for XBL stylesheets. r=emilio
MozReview-Commit-ID: EJp8EMyanBT
2017-09-02 15:25:45 +08:00
Simon Sapin e18b814654 Bug 1396665 - Temporarily disable bad-string subtests in test_parser_diagnostics_unprintables.html r=emilio
MozReview-Commit-ID: IUGy4uP6iRS
2017-09-04 23:14:26 +02:00
Simon Sapin 110fd59858 Bug 1396665 - Stylo serializes strings with double quotes r=emilio
MozReview-Commit-ID: 7uMAkhtjKCi
2017-09-04 23:17:54 +02:00
Simon Sapin 9b15c75abf Bug 1396586 - Stop escaping U+0080 to U+009F in CSS serialization. r=emilio
… in the C++ style system, to align with Stylo and the CSSOM spec.

MozReview-Commit-ID: HaDUeNjumnY
2017-09-04 15:00:18 +02:00
Sebastian Hengst 0740ac72b8 Backed out changeset b49d8d47c3f1 (bug 1382078) 2017-09-02 20:43:36 +02:00
Ting-Yu Lin 33901209b6 Bug 1382078 Part 3 - Support media changes for XBL stylesheets. r=emilio
MozReview-Commit-ID: EJp8EMyanBT
2017-09-02 15:25:45 +08:00
Sebastian Hengst 07c95481ad Backed out changeset 820cb0437789 (bug 1394302) for failing new test, at least on Linux x64. r=backout 2017-09-02 10:42:45 +02:00
Manish Goregaokar 65cd382cc0 Bug 1394302 - stylo: Add mochitest; r=birtles
MozReview-Commit-ID: DJ3zFqqMNXk
2017-09-01 23:06:25 -07:00
Nazım Can Altınova 715f8dd4b6 Bug 1391534 - Fix computed prefixed linear gradient direction serialization r=dholbert
Prefixed linear gradients use direction keyword to indicate starting point of the
gradient but modern syntax uses this keyword to indicate ending point of the gradient.
Top-to-bottom direction is the default value for gradients. Therefore `top` is default
value of prefixed linear gradients and `to bottom` is default one for unprefixed one.
For brevity, we omit the direction keyword from our serialization when it matches the
default direction, but we were incorrectly trying to remove `bottom` keyword from
prefixed computed values.

MozReview-Commit-ID: 8UCsFE44LRX
2017-08-30 14:39:44 -07:00
Henri Sivonen e1503a6db8 Bug 1354989 - Avoid pivoting via UTF-16 when loading CSS in the Stylo mode. r=jdm,SimonSapin
MozReview-Commit-ID: Llt29dvB4Io
2017-08-29 16:01:42 +03:00
J. Ryan Stinnett 973d0cee25 Bug 1395751 - Skip test_stylesheet_clone_import_rule.html with Stylo. r=manishearth
MozReview-Commit-ID: smEHAwxRP6
2017-08-31 18:20:39 -05:00
Xidorn Quan db0a0921c3 Bug 1387993 - Enable chrome mochitests on linux debug build. r=jmaher
MozReview-Commit-ID: Aj0movJBDI9
2017-08-30 10:18:30 +10:00
Josh Matthews c770a77709 Bug 1384216 - Part 1: Add a testsuite for CSS parsing error messages. r=heycam
MozReview-Commit-ID: 8Nmwcn396Rl
2017-08-29 12:26:30 -05:00
Simon Sapin 191de4df7b Bug 1394792 - Add gtest microbenchmark for Servo_DeclarationBlock_GetPropertyValueById. r=emilio
MozReview-Commit-ID: 68RkTgnzdZj
2017-08-29 15:27:46 +02:00
Brad Werth e1deb63cfa Bug 1378577: Fix await race condition which causes intermittent timeouts in test_stylesheet_clone_import_rule.html. r=emilio
MozReview-Commit-ID: 2vWsCcnsmwF
2017-08-28 17:02:06 -07:00
Brad Werth a0e19290b2 Bug 1387933 Part 2: Gecko-side add a reusable sheets parameter to Servo_StyleSheet_FromUTF8Bytes, and mark a test as passing. r=xidorn
MozReview-Commit-ID: 9wqJW3SqbbM
2017-08-22 13:53:53 -07:00