Commit Graph

90 Commits

Author SHA1 Message Date
Mats Palmgren
1285f6a884 Bug 1543477 - Make <input type=file> always clip its content. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D27452

--HG--
extra : rebase_source : 094158d39010feb0f84ca9efb137fe6f3e49648a
2019-04-14 03:01:00 +02:00
Emilio Cobos Álvarez
08173e4af8 Bug 1543161 - Simplify some rules used for file inputs. r=mats
There's only one button in a file input. This used to be an
input[type="button"].

There's no point in using more specific rules or such, the regular UA rules just
work, and content can't style this button so it can't be overriden.

This should be an idempotent patch.

Differential Revision: https://phabricator.services.mozilla.com/D26753
2019-04-10 22:51:47 +02:00
Emilio Cobos Álvarez
f30b7747dd Bug 1528098 - Remove content-select code. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D19869

--HG--
extra : moz-landing-system : lando
2019-02-15 01:51:33 +00:00
Boris Chiou
c35f47093e Bug 1322780 - Part 2: Support unprefixed min-content and max-content. r=mats,emilio
Support unprefixed min-content and max-content and treat the prefixed
version as aliases for
1. width, min-width, max-width if inline-axis is horizontal, and
2. height, min-height, max-height if inline-axis is vertical, and
3. inline-size, min-inline-size, max-inline-size, and
4. flex-basis.

Besides, update the test cases to use unprefixed max-content and
min-content.

Depends on D7535

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

--HG--
extra : moz-landing-system : lando
2018-12-18 18:47:37 +00:00
Emilio Cobos Álvarez
26110eea9b Bug 1513015 - Remove unneeded inherit-scroll-behavior class. r=botond
Use a more general rule instead, since we add the class unconditionally.

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

--HG--
extra : moz-landing-system : lando
2018-12-10 18:03:44 +00:00
Mats Palmgren
300d9dcda4 Bug 1508018 - Use 'initial' instead of literal initial values in <textarea> rule. r=dholbert 2018-11-21 22:05:20 +01:00
Mats Palmgren
91372ff9f3 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
Mats Palmgren
505d7f9d3c Bug 1317870 - Make intrinsic sizing for <input type=range> work properly and make its default margin/padding compatible with Chrome/Safari. r=jwatt 2018-11-15 20:47:33 +01:00
Mats Palmgren
977a22a9c2 Bug 1481593 - Make <input type=range> layout more compatible with WebKit/Blink. r=jwatt
In particular:
-webkit-appearance:none inhibits the range track.
An author-specified 'border' or 'background' does NOT disable the theme.
The default non-themed background-color is opaque.
2018-11-15 20:47:33 +01:00
Mats Palmgren
754a89bb89 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
2882783137 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
Mats Palmgren
c9053c4cfd Bug 1499184 - Add some inline-axis padding after the <select size=1> display frame to avoid the text being flush to the dropdown button when we have a display:none <option>. r=jwatt 2018-11-08 22:15:37 +01:00
Arshad Kazmi
7e335e61a5 Bug 1494255 - Date input: disabled CSS: Shows correct style for whole text r=Gijs,emilio
Differential Revision: https://phabricator.services.mozilla.com/D9557

--HG--
extra : moz-landing-system : lando
2018-10-27 21:53:50 +00:00
Mats Palmgren
0feccf9fd7 Bug 1500530 - Make the anonymous child <label> have display:inline-block so that it applies its min-inline-size. r=jfkthame 2018-10-25 16:51:45 +02:00
Dave Townsend
670b098c38 Bug 1419091: Make TextInputListener handle non-native events for input and textarea too. r=masayuki
platformHTMLBindings attaches event handlers directly to the <input> and
<textarea> elements. This matches that by making TextInputListener look up and
call the <input> and <textarea> event handlers from the static C array.
There is a slight difference in that the event handlers are added to the system
bubbling phase as opposed to the regular bubbling phase but in tests this does
not seem to cause problems.

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

--HG--
extra : rebase_source : ced468c778aea2f616c2fc544c7c908f969f268c
extra : intermediate-source : 2224ee809328bf70ded5648d0a2896d507def220
extra : source : 0e16c555c00a0321e96c9b62e3df9508dd4ba06a
2018-10-15 12:19:30 -07:00
Daniel Varga
b8e466e4e8 Backed out 5 changesets (bug 1419091) for reftest failure at tests/layout/reftests/bugs/1377447-1.html.
Backed out changeset 15811bce212a (bug 1419091)
Backed out changeset 2224ee809328 (bug 1419091)
Backed out changeset ac56492b6ed6 (bug 1419091)
Backed out changeset 72ccc9444916 (bug 1419091)
Backed out changeset 58d5a882493d (bug 1419091)

--HG--
extra : rebase_source : d0bb1df6e29618f515a5c1860db41ff1e3f4c6a3
2018-10-23 01:08:26 +03:00
Dave Townsend
1d9152ef0d Bug 1419091: Make TextInputListener handle non-native events for input and textarea too. r=masayuki
platformHTMLBindings attaches event handlers directly to the <input> and
<textarea> elements. This matches that by making TextInputListener look up and
call the <input> and <textarea> event handlers from the static C array.
There is a slight difference in that the event handlers are added to the system
bubbling phase as opposed to the regular bubbling phase but in tests this does
not seem to cause problems.

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

--HG--
extra : rebase_source : cd3cff63cb6a1da1d9130a04bd7ebe9cd7b62b4e
extra : source : 0e16c555c00a0321e96c9b62e3df9508dd4ba06a
2018-10-15 12:19:30 -07:00
Mats Palmgren
c33780d631 Bug 1499230 - Make empty <select>s have zero content-box inline-size, like in other UAs. r=emilio 2018-10-22 00:54:56 +02:00
Mats Palmgren
960944e003 Bug 1499578 - Make one line-height the intrinsic block-size for <select> comboboxes. r=emilio
Also, remove the !important on 'line-height' on <select> since other
UAs allows authors to change it.
2018-10-22 00:54:56 +02:00
Emilio Cobos Álvarez
d03714e54f Bug 1498632 - Remove cursor overrides from datetimebox.css r=Gijs
Instead set the cursor from the UA sheet, and allow authors to override it. This
matches what other UAs do.

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

--HG--
extra : moz-landing-system : lando
2018-10-14 19:55:22 +00:00
Mats Palmgren
5cf920d8be Bug 1495153 part 1 - Replace the XUL label in <input type=file> with an HTML label. r=emilio 2018-10-07 09:44:51 +02:00
Narcis Beleuzu
5786b9be9f Backed out 2 changesets (bug 1495153) for causing perma failures on dynamic-max-width.html
Backed out changeset 6d95f0e0cc76 (bug 1495153)
Backed out changeset 6800eb348ebe (bug 1495153)
2018-10-07 05:14:44 +03:00
Mats Palmgren
771d50381e Bug 1495153 part 1 - Replace the XUL label in <input type=file> with an HTML label. r=emilio 2018-10-06 19:31:51 +02:00
Yatri
539a94a5fc Bug 1338158: use 'unset' value more in UA stylesheets, in cases where we're already just resetting the property. r=dholbert
--HG--
extra : rebase_source : a3fa80a793a8a531e9f31c7097c2b2451020d724
2018-09-22 11:46:06 -07:00
Cameron McCormack
fe196275ba Bug 1489529 - Update comments to no longer point to nsRuleNode. r=emilio
There are a few mentions of nsRuleNode left but they are mostly
historical references so it makes sense to keep them.

Differential Revision: https://phabricator.services.mozilla.com/D5505
2018-09-12 17:37:37 +10:00
Xidorn Quan
fae150af6e Bug 1488657 - Have anonymous element in text input inherit scrollbar-width from the element. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D5101

--HG--
extra : moz-landing-system : lando
2018-09-06 23:12:44 +00:00
Margareta Eliza Balazs
0489b50e96 Backed out changeset d4191ae7bccd (bug 1488657) for bc failures in browser/base/content/test/static/browser_parsable_css.js CLOSED TREE 2018-09-06 11:51:46 +03:00
Xidorn Quan
151fb96849 Bug 1488657 - Have anonymous element in text input inherit scrollbar-width from the element. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D5101

--HG--
extra : moz-landing-system : lando
2018-09-06 07:36:20 +00:00
Daniel Holbert
6fc91f26dc Bug 1483499: Give <legend> consistent default padding, regardless of whether it's a child of fieldset. r=mats
Differential Revision: https://phabricator.services.mozilla.com/D4029

--HG--
extra : moz-landing-system : lando
2018-08-24 21:23:56 +00:00
Emilio Cobos Álvarez
fe71af2bfe Bug 1483211 - Make fieldset UA rule use min-inline-size instead of min-width. r=dholbert
Per https://github.com/whatwg/html/pull/3914

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

--HG--
extra : moz-landing-system : lando
2018-08-16 14:59:19 +00:00
Daniel Holbert
03ba2de2e4 Bug 1483527: Change fieldset block-end & inline-axis padding to match other browsers. r=emilio
This mirrors the web-platform-tests change at
6058e914c1

According to that commit, WebKit/Chromium/EdgeHTML all have the behavior
that we're switching to here.

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

--HG--
extra : moz-landing-system : lando
2018-08-16 18:26:39 +00:00
Ciure Andrei
da22f27e86 Backed out 1 changesets (bug 1483527) for fieldset reftest failures CLOSED TREE
Backed out changeset 3d98e379dc38 (bug 1483527)
2018-08-16 21:04:03 +03:00
Daniel Holbert
0a2578eafa Bug 1483527: Change fieldset block-end & inline-axis padding to match other browsers. r=emilio
This mirrors the web-platform-tests change at
6058e914c1

According to that commit, WebKit/Chromium/EdgeHTML all have the behavior
that we're switching to here.

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

--HG--
extra : moz-landing-system : lando
2018-08-16 14:54:39 +00:00
Jonathan Watt
f3ea3c7d86 Bug 1428676 pt 3. Change our existing consumers of 'menulist-button' to use '-moz-menulist-button'. r=emilio 2018-06-20 13:50:23 +01:00
shindli
0a48a3cd3c 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
449e0fddad Bug 1428676 pt 3. Change our existing consumers of 'menulist-button' to use '-moz-menulist-button'. r=emilio
--HG--
extra : rebase_source : 5fd3de8c33cd0d168c63accbf98f50e9947bf31c
2018-06-20 13:50:23 +01:00
Emilio Cobos Álvarez
d7bfa8a3bb Bug 1460382: Make element-backed pseudos inherit from NAC subtree roots and other NAC inherit from their parents. r=heycam
Currently, NAC always inherits from the closest non-NAC ancestor element,
regardless of whether it is for an element-backed pseudo or not.

This patch changes the inheritance so that for element-backed pseudos, we
inherit from the closest native anonymous root's parent, and for other NAC we
inherit from the parent.

This prevents the following two issues and allows us to remove the
NODE_IS_NATIVE_ANONYMOUS flag:

 * Avoiding inheriting from the non-NAC ancestor in XBL bindings bound to NAC.

   - This is no longer a problem since we apply the rule only if we're a
     pseudo-element, and all pseudo-elements are in native anonymous subtrees.

   - This also allows to remove the hack that propagates the
     NODE_IS_NATIVE_ANONYMOUS flag from the ::cue pseudo-element from
     BindToTree.

 * Inheriting from the wrong thing if we're a nested NAC subtree.

   - We no longer look past our NAC subtree, with the exception of
     ::-moz-number-text's pseudo-elements, for which we do want to propagate
     ::placeholder to.

A few rules from forms.css have been modified because they're useless or needed
to propagate stuff to the anonymous form control in input[type="number"] which
previously inherited from the input itself.

MozReview-Commit-ID: IDKYt3EJtSH
2018-05-30 10:14:46 +02:00
Emilio Cobos Álvarez
c2d8ef1e49 Bug 1463511: Remove impossible combinations from forms.css. r=heycam
Those classes are only applied when !IsSingleLineTextControl(). No need for the
rules.

MozReview-Commit-ID: KOIWJVaw4pt

--HG--
extra : rebase_source : f4c738b7b1637c9cc7ad6958b53705cd82966864
2018-05-22 19:54:18 +02:00
Emilio Cobos Álvarez
10ce8b38a0 Bug 1463511: Remove useless form.css rule and nsTextControlFrame anon class. r=heycam
Only <textarea> has GetWrapRows() > 0, and the rule for textarea disappeared in
bug 82711.

MozReview-Commit-ID: ERcoLVcufbH

--HG--
extra : rebase_source : 687ae89ce94e0e7f3682f434264661f7b9554819
2018-05-22 19:52:41 +02:00
Cameron McCormack
3a70eaa88b Bug 1317541 - Merge number-control.css back into forms.css. r=mats
MozReview-Commit-ID: AGfsSF4dORN

--HG--
extra : rebase_source : b0fbe05bcef3e7228f43f6fb417fdaf430961f03
2018-04-10 11:04:41 +10:00
Emilio Cobos Álvarez
82778d6954 Bug 1405087: Nix -moz-user-input: disabled. r=bz
It does nothing, and there's only one use of it anyway.

See the intent to unship for research on out of the tree usage:

  https://groups.google.com/d/msg/mozilla.dev.platform/E6tfP__wkwg/YVW6nPX9CQAJ

MozReview-Commit-ID: 5XnsewYdvgQ
2018-02-15 21:48:59 +01:00
KuoE0
4c91f63774 Bug 1428960 - Use universal selector for -moz-dropdown-list r=heycam
-moz-dropdown-list is only allowed to use universal selector, so change
it back to universal selector.

MozReview-Commit-ID: 5E9Z98xIadh

--HG--
extra : rebase_source : fa6406cbe1b6bab582a1ee8dd2c7e89a4c66591e
2018-01-09 11:48:29 +08:00
KuoE0
0bcba466df Bug 1425088 - (Part 2) Change the dropdown frame to a top-level absolute frame when content-select is enabled. r=mats
MozReview-Commit-ID: E77XdiELqhm

--HG--
extra : rebase_source : 19cc0bccf5dc4160e2b8dff9a710961d0cc38adc
2017-12-13 17:59:29 -06:00
Botond Ballo
c1cb97c6d8 Bug 1425485 - Propagate overscroll-behavior on a text input to the anonymous scrollable <div> inside it. r=tnikkel
MozReview-Commit-ID: Ey1Ns34GXJL

--HG--
extra : rebase_source : 67676a085787170ff99bae8142890616cc3e774c
2017-12-15 13:23:24 -05:00
Mats Palmgren
feb949d1a8 Bug 752790 - Allow <input> content to overflow into the padding area in the block-axis (but not in the inline-axis). r=dholbert
MozReview-Commit-ID: FnPW6mKxWE6
2017-12-06 12:36:50 +01:00
Emilio Cobos Álvarez
2b97da363f Bug 1417200: Stop using -moz-border-*-colors in forms.css. r=xidorn
On a CLOSED TREE, since the servo patch got in.

This removes one px of "padding" in:

 <progress style="-moz-appearance: none"></progress>

But it'd be worse to not be able as an author to override those somehow.

MozReview-Commit-ID: EFZIBHaUskM
2017-12-01 23:25:17 +01:00
Jessica Jong
93235e7dd3 Bug 1404327 - Move CSS font-family property to date/time input so that it can be overriden. r=dholbert
MozReview-Commit-ID: 4sqXQSZMlmd
2017-10-16 15:24:50 +08:00
Emilio Cobos Álvarez
e808575ca4 Bug 1406631: Remove the color-picker-available system metric. r=xidorn
All our widgets support it with a constant true.

MozReview-Commit-ID: JMEItUsxYWq

--HG--
extra : rebase_source : e7e0a3f83001813239338bc5b3895252e1fb3ea6
2017-10-07 14:06:44 +02:00
Sebastian Hengst
b29f365446 Backed out changeset f70d6fcdb760 (bug 1406631) for failing color related reftests like layout/reftests/writing-mode/ua-style-sheet-input-color-1.html on Android. r=backout 2017-10-07 20:08:12 +02:00
Emilio Cobos Álvarez
b7befbe6b5 Bug 1406631: Remove the color-picker-available system metric. r=xidorn
All our widgets support it with a constant true.

MozReview-Commit-ID: JMEItUsxYWq

--HG--
extra : rebase_source : a2661dce1ac191fdf098e631cd7878f0215643d5
2017-10-07 14:06:44 +02:00