Commit Graph
222 Commits
Author SHA1 Message Date
Mats Palmgren 02ce655273 Bug 1507905 - Add -webkit-appearance:textarea and make that the default for <textarea> for compatibility with other UAs. r=jwatt 2018-11-21 22:05:20 +01:00
Yura Zenevich 0030e8d93a Bug 1505848 - expose some of the css color utils and ensure that RGBA alpha value is not cut off at 1 decimal. r=pbro
MozReview-Commit-ID: 6xTExCWRz4p

Differential Revision: https://phabricator.services.mozilla.com/D11367
2018-11-16 03:59:06 +00:00
Razvan Caliman be2b453167 Bug 1500947 - (Part 3) Update indices of tracked declarations when one is removed; r=pbro
Depends on D11209

We need to take care when deleting a declaration. This means shifting the indexes of declarations which follow it in the CSS rule. To do this, we iterate over all tracked added/removed declarations and make sure to decrement their index if it is larger than the index of the deleted one.

The Rule view and specialized editors do not support inserting declarations at any other position other than at the end of the existing declarations list. For now, it is safe to assume all newly added declarations will not shift any tracked indexes. But we will need to handle this for other use cases, like the Style Editor or manual editing of element style attributes.

MozReview-Commit-ID: InrNbsNsqz6

Differential Revision: https://phabricator.services.mozilla.com/D11318
2018-11-13 09:00:48 +00:00
Emilio Cobos Álvarez 7a873f6762 Bug 1492958 - Update the devtools property database. 2018-11-12 13:47:45 +01:00
Margareta Eliza Balazs 9eacffbd58 Backed out 5 changesets (bug 1492958) for bc failures in browser/base/content/test/static/browser_parsable_css.js CLOSED TREE
Backed out changeset d7c8793ee054 (bug 1492958)
Backed out changeset e59edfbbd327 (bug 1492958)
Backed out changeset 5e643bc2e17b (bug 1492958)
Backed out changeset 59cf251c1a59 (bug 1492958)
Backed out changeset edc955448df6 (bug 1492958)
2018-11-12 14:36:43 +02:00
Emilio Cobos Álvarez f46393b0e8 Bug 1492958 - Update the devtools property database. 2018-11-12 11:51:53 +01:00
Gurzau Raul 412b8e6f9c Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-11-09 07:46:56 +02:00
Mats Palmgren 7305dbe3dd Bug 1501506 - Add -webkit-appearance:progress-bar and make that the default for <progress> for compatibility with other UAs. r=jwatt
Keep our old 'progressbar' as an alias for now, but unship
'progresschunk' by restricting it to UA/chrome sheets only.
Unship 'progresschunk-vertical' by removing it since it's
not used internally for anything.
2018-11-09 04:25:56 +01:00
Mats Palmgren 90382edb39 Bug 1501483 - Add -webkit-appearance:meter and make that the default for <meter> for compatibility with other UAs. r=jwatt
Keep our old value 'meterbar' as an alias for now, but unship 'meterchunk'
by restricting it to UA/chrome sheets only.
2018-11-09 04:25:56 +01:00
Emilio Cobos Álvarez 71a4ec791d Bug 1505786 - Implement overflow-wrap: anywhere. r=xidorn,jfkthame
Per https://github.com/w3c/csswg-drafts/issues/2682

Differential Revision: https://phabricator.services.mozilla.com/D11328
2018-11-08 22:39:34 +00:00
Ting-Yu Lin 5482102065 Bug 1504387 - Remove preference "layout.css.shape-outside.enabled". r=bradwerth,xidorn
shape-outside, shape-margin, shape-image-threshold have been shipped in Firefox
62. We can remove the preference.

The change in devtools/shared/css/generated/properties-db.js is generated by
"./mach devtools-css-db"

The actual shape-image CORS mode tests in file_shape_outside_CORS.html are
moved into test_shape_outside_CORS.html because we don't need the <iframe>
trick to enable the feature.

Differential Revision: https://phabricator.services.mozilla.com/D10804
2018-11-05 15:27:36 +00:00
Cameron McCormack d0dcb3da7d Bug 1496617 - Part 1: Support unprefixed image-rendering:crisp-edges r=firefox-style-system-reviewers,emilio
For now, we keep supporting the prefixed version, since there are examples/instructions
on the Web that don't include an unprefixed value.

Differential Revision: https://phabricator.services.mozilla.com/D10451
2018-11-01 01:35:26 +00:00
Boris Chiou 5020af6901 Bug 1496619 - Part 1: Drop frames() timing function r=birtles
frames() timing function was removed from the spec, so we drop it.
Besides, some devtool tests are removed because they use frame(). I will
add them back by using new step function later.

Differential Revision: https://phabricator.services.mozilla.com/D9309
2018-10-26 18:03:24 +00:00
Razvan Caliman b8dbbe9451 Bug 1499049 - (Part 6) Support !important in changed CSS property values; r=pbro
Depends on D8722

Include the "!importat" priority flag when tracking changes to CSS declarations.

Differential Revision: https://phabricator.services.mozilla.com/D8967
2018-10-25 11:06:56 +00:00
Sebastian Hengst d180224679 Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central: fix eslint failure after merge. a=eslint-fix 2018-10-20 13:51:03 +03:00
Daniel Varga 19b44c7933 Merge mozilla-inbound to mozilla-central. a=merge 2018-10-20 13:10:23 +03:00
Gabriel Luong 1d4d455f90 Bug 1500469 - Don't require /shared/css/properties-db.js in the inspector client. r=mtigley 2018-10-19 17:40:31 -04:00
Mark Banner 3d6aaad3f5 Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D8389
2018-10-19 12:55:39 +00:00
Diego Pino Garcia 99514d1cc2 Bug 1498148 - Implement text-transform: full-size-kana. r=xidorn 2018-10-14 09:42:24 +11:00
Noemi Erli 7168ba1159 Backed out changeset a00b402fb8e8 (bug 1498148) for Linting failure in builds/worker/checkouts/gecko/tools/lint/wpt.yml CLOSED TREE 2018-10-14 00:12:12 +03:00
Diego Pino Garcia 777eeb5c59 Bug 1498148 - Implement text-transform: full-size-kana. r=xidorn 2018-10-13 05:03:00 +03:00
Gabriel Luong 264a87a2d8 Bug 1494162 - Part 8: Lazy loadgetAngleValueInDegrees in color.js. r=rcaliman 2018-10-05 10:53:54 -04:00
Yura ZenevichandMicah Tigley b6e9a45310 Bug 1473037 - Display contrast ratio for text nodes inside the accessibility infobar. r=pbro
Co-authored-by: Micah Tigley <[email protected]>

MozReview-Commit-ID: 1KbcRG0bZA3

Differential Revision: https://phabricator.services.mozilla.com/D4954
2018-10-02 13:29:24 +00:00
Razvan Caliman 8ab6683a2c Bug 1490720 - Log changes to CSS declarations from StyleRuleActor. r=pbro
MozReview-Commit-ID: 9J4zBcSxYwj

Differential Revision: https://phabricator.services.mozilla.com/D5681
2018-09-28 17:30:49 +00:00
Xidorn Quan ea51602ee5 Bug 1494501 - Rename pref "layout.css.scrollbar-colors.enabled" to "layout.css.scrollbar-color.enabled". r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D7030
2018-09-27 00:38:16 +00:00
Xidorn Quan a6b0bb22a8 Bug 1492012 - Enable scrollbar-color and scrollbar-width by default. r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D6872
2018-09-26 03:30:32 +00:00
Emilio Cobos Álvarez b85071edf5 Bug 1492567 - Back out bug 1481866. r=dbaron
Summary:
The behavior the WG proposed is way more subtle than what that bug implements,
including:

 * Implementing two logical overflow longhands.
 * Expanding the overflow shorthand to different longhands depending on the
   syntax of that.

Meanwhile, Blink hasn't done the swap and will ship the same behavior that we
shipped in Firefox 61 (bug 1453148), that is, overflow-x, then overflow-y.

So I think lacking a clear way forward we should revert this change and preserve
our shipped behavior.

Reviewers: dbaron!

Tags: #secure-revision

Bug #: 1492567

Differential Revision: https://phabricator.services.mozilla.com/D6317
2018-09-20 01:27:55 +02:00
Xidorn Quan 73fdf6c586 Bug 1483075 - Merge the two scrollbar color properties into scrollbar-color. r=heycam,hiro
Differential Revision: https://phabricator.services.mozilla.com/D6115
2018-09-19 05:33:12 +00:00
Boris Chiou dbba63a0f0 Bug 1246764 - Part 2: Define path() for clip-path. r=emilio
For now, |clip-path: path()| is chrome-only, and not for shape-outside,
so we only implement the parser for clip-path. Besides, I didn't put
path() in BasicShape because path() doesn't use the reference box to
resolve the percentage or keywords (i.e. SVG path only accept floating
point or integer number as the css pixel value). Therefore, I add it into
ShapeSource, instead of BasicShape.

Differential Revision: https://phabricator.services.mozilla.com/D3633
2018-08-24 11:37:53 -07:00
Boris Chiou 2ff8effaea Bug 1429298 - Part 7: Tests. r=emilio
In wpt, now we support "offset-path: none | path()", so parsing none or
path function should be correct. Animations which animate "from none"
or "to none" will pass because we could serialize "none", even if we
don't support animations on offset-path.

Differential Revision: https://phabricator.services.mozilla.com/D2969
2018-08-21 22:41:46 -07:00
Boris Chiou aeb006d62c Bug 1429298 - Part 2: Define offset-path and implement it in style system. r=emilio
Define OffsetPath & SVGPathData on the servo-side, and StyleMotion &
StyleSVGPath on the gecko-side. We parse the SVG Path string into a
vector of PathCommand. To build the gfx::Path, we will convert it into
gfx::Path later in a different patch.

The basic flow is:
* Parse SVG Path String into SVGPathData (in Rust).
* Use cbindgen to make sure the layout of PathCommand and StylePathCommand,
  and then set the Box[PathCommand] into nsTArray<StylePathCommand>.
* Try to convert nsTArray<StylePathCommand> into gfx::Path. (This part
  will be implemented in a different patch.)

Finally, we use the gfx::Path to create a motion path transform.
The layout implementation is in the later patch.

Differential Revision: https://phabricator.services.mozilla.com/D2963
2018-08-21 22:41:38 -07:00
Xidorn Quan 6367ef83f6 Bug 1475033 part 3 - Add scrollbar-width property. r=heycam
MozReview-Commit-ID: CmCbaZosUrU
2018-08-01 14:13:41 +10:00
L. David Baron cb835eba9b Bug 1481866: Swap order of values in 'overflow' shorthand property. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D3069
2018-08-10 02:20:53 +00:00
Tiberius Oros 36a1369d53 Merge inbound to mozilla-central. a=merge 2018-08-09 13:02:05 +03:00
Xidorn Quan 6642bbdfe4 Bug 1464786 - Implement flow-relative values for resize property. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D2908
2018-08-08 23:40:06 +00:00
Daniel Varga 30e730e116 Merge mozilla-central to mozilla inbound. a=merge 2018-08-09 01:10:56 +03:00
Xidorn Quan a60f36a38e Bug 1481781 followup - Fixup order in properties-db.js on a CLOSED TREE. 2018-08-08 23:20:04 +10:00
Jonathan Watt 4cd8d5ae9c Bug 1480073 pt 2. Enable the '-webkit-appearance' alias for '-moz-appearance' for EARLY_BETA_OR_EARLIER. r=emilio 2018-08-01 12:01:33 +01:00
Tom Tromey 6f40174e25 Bug 1478184 - fix handling of html comments in parseDeclarations; r=gl
parseDeclarations was ignoring html comment tokens, but in fact they
should not be treated any differently from other CSS tokens.

MozReview-Commit-ID: 27Mxt5zbSSJ
2018-08-07 13:03:34 -07:00
Emilio Cobos Álvarez f76bafd53e Bug 1480043: Remove the concept of 'canonical' pseudos. r=xidorn
We only have this so that ::-moz-placeholder keeps serializing as
::-moz-placeholder, but I don't think anybody really cares.

Edge aliases ::-webkit-input-placeholder to ::-ms-input-placeholder at parse
time as well, as can be seen in:

```
let s = document.createElement('style');
s.innerHTML = `input::-webkit-input-placeholder { color: red };`;
document.body.appendChild(s);
document.body.innerHTML = s.sheet.cssRules[0].cssText;
```

And I think this is more consistent with what we do for CSS properties that are
aliases.

Differential Revision: https://phabricator.services.mozilla.com/D2595

MozReview-Commit-ID: 3ImDWamJhxh
2018-08-01 15:57:47 +02:00
Jonathan Watt 2d83c66620 Bug 1428676 pt 1. Add a '-moz-menulist-button' value to '-moz-appearance'. r=emilio
The '-moz-menulist-button' value currently behavies identically to the
'menulist-button' value.  This is not implemented as an alias because later
patches in this patch series will change the behavior of our pre-existing
'menulist-button' value to more closely match what Chrome does.
2018-06-19 20:12:45 +01:00
shindli 08d66172c3 Backed out 3 changesets (bug 1428676) for bc failures in browser/base/content/test/static/browser_parsable_css.js on a CLOSED TREE
Backed out changeset 6ba5975115fc (bug 1428676)
Backed out changeset 7f1270a9ec3d (bug 1428676)
Backed out changeset 662bfc31a950 (bug 1428676)
2018-07-31 19:30:46 +03:00
Jonathan Watt 79df9214f6 Bug 1428676 pt 1. Add a '-moz-menulist-button' value to '-moz-appearance'. r=emilio
The '-moz-menulist-button' value currently behavies identically to the
'menulist-button' value.  This is not implemented as an alias because later
patches in this patch series will change the behavior of our pre-existing
'menulist-button' value to more closely match what Chrome does.
2018-06-19 20:12:45 +01:00
Emilio Cobos Álvarez 32bb029c5c Bug 1478990: Make NonCustomPropertyId <-> nsCSSPropertyId conversions fast. r=xidorn
We have a different order in nsCSSPropertyId for no good reason. The only
invariant there is that longhands come before shorthands, and shorthands before
aliases.

Luckily that's also an invariant that NonCustomPropertyId has, so we can reuse
them.

Differential Revision: https://phabricator.services.mozilla.com/D2463

MozReview-Commit-ID: 1hsQu6hmqiN
2018-07-30 12:51:19 +02:00
Emilio Cobos Álvarez a631ec6689 Bug 1471838: Update the properties database. r=me CLOSED TREE
MozReview-Commit-ID: IXeZmnElMHU
2018-07-12 07:29:09 +02:00
Cameron McCormack cebd37ab1f Bug 1473450 - Remove angle values from image-orientation. r=emilio
MozReview-Commit-ID: FB74ILJM6Fm
2018-07-05 12:04:58 +10:00
Andreea Pavel 428a0800b5 Backed out 2 changesets (bug 1471838) for failing css/vendor-imports/mozilla/mozilla-central-reftests/shapes1/shape-outside-border-box-border-radius-005.html
Backed out changeset b21c5080232a (bug 1471838)
Backed out changeset 5e99a3c65b2f (bug 1471838)
2018-07-05 10:44:45 +03:00
Emilio Cobos Álvarez 544e8ab10f Bug 1471838: Update the properties database. r=me CLOSED TREE
MozReview-Commit-ID: IXeZmnElMHU
2018-07-05 05:46:56 +02:00
Gerald Squelart cdceb7bc1b 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
2018-06-28 14:51:38 +10:00
Emilio Cobos Álvarez 7f975aca45 Bug 1464782: Regenerate the devtools db. r=me
MozReview-Commit-ID: FJxRDsDFsaU
2018-06-27 18:03:10 +02:00