Граф коммитов

231 Коммитов

Автор SHA1 Сообщение Дата
Tim Nguyen 5e4d1b86a6 Bug 1611118 - Fix invalid selectors in forms.css. r=emilio
This is a regression from bug 981248.

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

--HG--
extra : moz-landing-system : lando
2020-01-23 11:22:34 +00:00
Emilio Cobos Álvarez 43f69ea130 Bug 1430141 - Remove hardcoded <input type=number> width. r=jfkthame
Now that we're subclassing nsTextControlFrame we can use the regular replaced
element intrinsic sizing, rather than just faking it in the UA sheet with a
suspicious width declaration.

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

--HG--
extra : moz-landing-system : lando
2020-01-15 16:52:37 +00:00
Bogdan Tara 1fa2e3839f Backed out changeset 996f7985ca6b (bug 1430141) for reftests/writing-mode/ua-style-sheet-input-number-1.html failures 2020-01-15 16:16:55 +02:00
Bogdan Tara 11eaac8489 Backed out changeset 56421ee87811 (bug 1430141) for libeditor/crashtests/1443664.html crashes 2020-01-15 15:28:25 +02:00
Emilio Cobos Álvarez 321c6744c8 Bug 1430141 - Remove useless declaration in forms.css. r=jfkthame
It is a <div>, it is display: block by default already.

Depends on D59981

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

--HG--
extra : moz-landing-system : lando
2020-01-15 10:22:53 +00:00
Emilio Cobos Álvarez 3a730bcc67 Bug 1430141 - Remove hardcoded <input type=number> width. r=jfkthame
Now that we're subclassing nsTextControlFrame we can use the regular replaced
element intrinsic sizing, rather than just faking it in the UA sheet with a
suspicious width declaration.

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

--HG--
extra : moz-landing-system : lando
2020-01-15 10:22:20 +00:00
Emilio Cobos Álvarez fff6c9e1ac Bug 981248 - Rewrite <input type=number> to avoid an anonymous input. r=masayuki,surkov,jwatt,ntim,jfkthame,smaug
Instead, subclass nsTextControlFrame. This simplifies the code and avoids
correctness issues.

I kept the localization functionality though it is not spec compliant. But I
filed a bug to remove it in a followup.

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

--HG--
extra : moz-landing-system : lando
2020-01-14 19:01:05 +00:00
Mihai Alexandru Michis 0d01c60c37 Backed out 2 changesets (bug 981248) for causing multiple failures.
CLOSED TREE

Backed out changeset 7a96708cc8b7 (bug 981248)
Backed out changeset 1eace7bd28d9 (bug 981248)
2020-01-14 19:28:17 +02:00
Emilio Cobos Álvarez da2e4ef888 Bug 981248 - Rewrite <input type=number> to avoid an anonymous input. r=masayuki,surkov,jwatt,ntim,jfkthame,smaug
Instead, subclass nsTextControlFrame. This simplifies the code and avoids
correctness issues.

I kept the localization functionality though it is not spec compliant. But I
filed a bug to remove it in a followup.

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

--HG--
extra : moz-landing-system : lando
2020-01-14 15:05:22 +00:00
Ting-Yu Lin 41f37efd4f Bug 1603088 Part 1 - Remove "max-block-size: 100%" for -moz-column-set and -moz-column-content. r=dbaron
Simply remove "max-block-size: 100%" for -moz-column-set and
-moz-column-content breaks abspos-breaking-dynamic-{001,002,003}.html.
We need to reflow ColumnSetWrapper's children whenever
ColumnSetWrapper's block-size or max-block-size is changed because both
size affect the available block-size for ColumnSetWrapper's children.

We set `NS_FRAME_CONTAINS_RELATIVE_BSIZE` for ColumnSetWrapperFrame so
that it will set itself dirty in `selfDirty` in
`nsBlockFrame::ReflowDirtyLines`, and mark its lines dirty if
`aState.mReflowInput.IsBResize()` is true.

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

--HG--
extra : moz-landing-system : lando
2020-01-08 02:48:12 +00:00
Bogdan Tara d0de37ac8e Backed out 2 changesets (bug 1603088) for android crashtest failures on 1015844.html
Backed out changeset 2bd2d03f3c45 (bug 1603088)
Backed out changeset d4cc66fb7593 (bug 1603088)
2020-01-08 02:04:06 +02:00
Ting-Yu Lin 06d5a025d1 Bug 1603088 Part 1 - Remove "max-block-size: 100%" for -moz-column-set and -moz-column-content. r=dbaron
Simply remove "max-block-size: 100%" for -moz-column-set and
-moz-column-content breaks abspos-breaking-dynamic-{001,002,003}.html.
We need to reflow ColumnSetWrapper's children whenever
ColumnSetWrapper's block-size or max-block-size is changed because both
size affect the available block-size for ColumnSetWrapper's children.

We set `NS_FRAME_CONTAINS_RELATIVE_BSIZE` for ColumnSetWrapperFrame so
that it will set itself dirty in `selfDirty` in
`nsBlockFrame::ReflowDirtyLines`, and mark its lines dirty if
`aState.mReflowInput.IsBResize()` is true.

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

--HG--
extra : moz-landing-system : lando
2020-01-07 19:17:27 +00:00
Emilio Cobos Álvarez 224c3f6348 Bug 1603049 - Inherit outline-offset from the table. r=dbaron
outline-offset isn't included in the outline shorthand.

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

--HG--
extra : moz-landing-system : lando
2019-12-16 22:10:11 +00:00
Emilio Cobos Álvarez edc814040b Bug 1600536 - user-select: auto on input / textarea should behave as text. r=mats
This is covered by existing tests, via the removal of the rule in forms.css

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

--HG--
extra : moz-landing-system : lando
2019-12-09 18:16:57 +00:00
Mats Palmgren 9d05fc8f63 Bug 471015 - [css-break] Implement <fieldset> fragmentation. r=TYLin
Differential Revision: https://phabricator.services.mozilla.com/D53709

--HG--
extra : moz-landing-system : lando
2019-11-25 21:45:22 +00:00
Brindusan Cristian a79348dd80 Backed out changeset 0186165ee1d8 (bug 471015) for reftest failures at box-shadow/611574-1.html. CLOSED TREE 2019-11-25 21:40:19 +02:00
Mats Palmgren 84b1973502 Bug 471015 - [css-break] Implement <fieldset> fragmentation. r=TYLin
Differential Revision: https://phabricator.services.mozilla.com/D53709

--HG--
extra : moz-landing-system : lando
2019-11-25 18:05:16 +00:00
Ting-Yu Lin 22b2870b5a Bug 1526268 Part 1 - Make AccessibleCaret's #text-overlay and #image children be normal in-flow elements. r=mats
The #text-overlay and #image child divs were "position: absolute" under
the main AccessibleCaret div. However, they don't necessary need to be
position:absolute to achieve the desired layout. We can make them normal
in-flow elements to simplify the frame structure. There should not be
any perceivable change to the user.

Also, AccessibleCaret's position can made more accurate by using float
CSS pixels when converting it from app unit.

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

--HG--
extra : moz-landing-system : lando
2019-11-01 22:16:08 +00:00
Tim Nguyen 5c78a8e3de Bug 1582530 - Fix remaining cases that were relying on blockification. r=dao,dholbert
Differential Revision: https://phabricator.services.mozilla.com/D46676

--HG--
extra : moz-landing-system : lando
2019-09-28 00:20:32 +00:00
Dorel Luca 759e72860c Backed out 2 changesets (bug 1582530) for Creshtest failures in ayout/generic/ReflowInput.cpp. CLOSED TREE
Backed out changeset 536e78fea3de (bug 1582530)
Backed out changeset ae88c31cf531 (bug 1582530)

--HG--
extra : amend_source : cd6928208a1916e72a8f14952adc85f5e5e2c47d
2019-09-28 00:31:24 +03:00
Tim Nguyen 597206ae06 Bug 1582530 - Fix remaining cases that were relying on blockification. r=dao,dholbert
Differential Revision: https://phabricator.services.mozilla.com/D46676

--HG--
extra : moz-landing-system : lando
2019-09-27 20:14:37 +00:00
Cameron McCormack 4ff6c875f8 Bug 1482778 - Include captions within table outlines. r=dbaron
Differential Revision: https://phabricator.services.mozilla.com/D45802

--HG--
extra : moz-landing-system : lando
2019-09-22 23:42:04 +00:00
Jared Wein 895b7027da Bug 1577602 - Allow spinner buttons to grow to full size in input[type=number]. r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D44032

--HG--
extra : moz-landing-system : lando
2019-09-05 21:50:43 +00:00
Ting-Yu Lin b8fee8f71c Bug 1308587 Part 2 - Remove -moz prefix for all multi-column properties in testing and css files. r=dholbert
This patch is generated by the following script:

```
function remove_column_prefix() {
    echo "Renaming $1 to $2"
    find .\
         -type f\
         ! -path "./obj*"\
         ! -path "./.git"\
         ! -path "./.hg"\
         \( -name "*.html" -or\
            -name "*.xhtml" -or\
            -name "*.xht" -or\
            -name "*.xul" -or\
            -name "*.xml" -or\
            -name "*.css"  \)\
            -exec sed -i -e "s/$1/$2/g" "{}" \;
}

remove_column_prefix "-moz-columns" "columns"
remove_column_prefix "-moz-column-width" "column-width"
remove_column_prefix "-moz-column-count" "column-count"
remove_column_prefix "-moz-column-fill" "column-fill"
remove_column_prefix "-moz-column-gap" "column-gap"
remove_column_prefix "-moz-column-rule" "column-rule"
remove_column_prefix "-moz-column-rule-width" "column-rule-width"
remove_column_prefix "-moz-column-rule-color" "column-rule-color"
remove_column_prefix "-moz-column-rule-style" "column-rule-style"

```

Note: after running the above script, I reverted one minor change to the
file multicol-nested-column-rule-001.xht in the theoretically read-only
directory layout/reftests/w3c-css/received/css-multicol/.

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

--HG--
extra : moz-landing-system : lando
2019-09-05 21:37:32 +00:00
Emilio Cobos Álvarez a04d027dce No bug - add a comment to forms.css about how we reset line-height.
MANUAL PUSH: Comment only, no bug.
2019-09-02 10:30:57 +02:00
Mats Palmgren a9c174c337 Bug 1572923 - Add default size for vertical range input ::-moz-range-track pseudo. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D43292

--HG--
extra : moz-landing-system : lando
2019-08-23 21:54:43 +00:00
Emilio Cobos Álvarez 24fd3e3679 Bug 1481112 - Be consistent on which properties we allow to inherit through for input, textarea, button and select, for compat with other UAs. r=mats
There should be no change in behavior for <input> and <textarea>. Tests need to
be written for <button> and <select>.

Tests are at https://github.com/web-platform-tests/wpt/pull/17152

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

--HG--
extra : moz-landing-system : lando
2019-08-23 13:24:05 +00:00
Emilio Cobos Álvarez bb6b92b5f7 Bug 1574179 - Simplify <img align> rules in quirks.css. r=jfkthame
It seems to me that it should be equivalent, and we don't need to do
directionality-dependent stuff. align=right and align=left map to the physical
values anyway:

  https://searchfox.org/mozilla-central/rev/3366c3d24f1c3818df37ec0818833bf085e41a53/dom/html/nsGenericHTMLElement.cpp#1165

This also matches Chromium:

  https://cs.chromium.org/chromium/src/third_party/blink/renderer/core/html/resources/quirks.css?l=26&rcl=e019448580f331c4c7c756271843d1bcf27e0071

(Modulo the case-insensitivity)

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

--HG--
extra : moz-landing-system : lando
2019-08-15 19:26:02 +00:00
Emilio Cobos Álvarez a27b5bf655 Bug 782551 - Remove two quirks that other browsers don't have. r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D42148

--HG--
extra : moz-landing-system : lando
2019-08-15 15:57:42 +00:00
Emilio Cobos Álvarez 03209c7dd2 Bug 1569078 - Back out changeset 97e691afc504c62ba2295bb3e9c3d33204b15d60 (bug 1456052) for causing this bug.
MANUAL PUSH: Backout
2019-08-09 13:06:40 +02:00
Ting-Yu Lin d6aaf98bcd Bug 1565665 - Make ColumnSet and -moz-column-content frames always "display: block". r=dbaron
We expect ColumnSet and -moz-column-content to be block outside.

If ColumnSets' display style is inherit from ColumnSetWrapper, then a
multicol with "display: inline-block" is going to wrap ColumnSet in a
inline nsLineBox when ColumnSet is added to ColumnSetWrapper, which is
not what we want.

This change fixed [.multicol 4] and [.multicol 6] in
multicol-gap-percentage-001.html with column-span disable, but it can
also fix [.multicol 5] in multicol-gap-percentage-001.html when
column-span is enabled (bug 1489298), so I go ahead and enable the pref
in that test.

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

--HG--
extra : moz-landing-system : lando
2019-07-31 21:44:07 +00:00
Emilio Cobos Álvarez d81592dcc2 Bug 1456052 - Change overflow-clip-box of textarea to be consistent with text inputs and match other browsers. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D38794

--HG--
extra : moz-landing-system : lando
2019-07-24 14:56:13 +00:00
Ciure Andrei 065e9a00d1 Backed out changeset 8514a3095fca (bug 1456052) for causing padding-scrollbar-placement.html to perma fail CLOSED TREE 2019-07-23 02:50:38 +03:00
Emilio Cobos Álvarez 2db7de5c3d Bug 1456052 - Change overflow-clip-box of textarea to be consistent with text inputs and match other browsers. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D38794

--HG--
extra : moz-landing-system : lando
2019-07-22 21:17:18 +00:00
Masayuki Nakano 5febecd19b Bug 1548389 - part 5: Make `nsTextFrame` and related code treat masking password characters as text-transform r=jfkthame
Anonymous text node in password field has `NS_MAYBE_MASKED` flag and
`TextEditor` managing the node has range of unmasking.  This patch makes
`BuildTextRunsScanner::BuildTextRunForFrames()` treat text frame in
password field as `text-transform` applied.  For recording the unmask range,
this patch creates `nsTransformedCharStyle::mMaskPassword` and treats unmask
range start/end edges as different style boundary.  Therefore,
`nsCaseTransformTextRunFactory::TransformString()` can replace each character
with a password mask character with the information.

Note that we need to kill bidi algorithm in password fields with forms.css
because caret position will tell everybody whether the typing character is
an RTL or an LTR character.

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

--HG--
extra : moz-landing-system : lando
2019-07-22 03:54:50 +00:00
Emilio Cobos Álvarez cf7beea50e Bug 1561794 - Do not crop display text of themed comboboxes due to padding. r=dbaron
This is a potential fix that I thought it was worth doing rather than
implementing Blink's platform-dependent silliness. This ensures that the display
frame always has enough space to display itself.

Note that it may still get clipped, if there's no room for both the display
frame and the button.

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

--HG--
extra : moz-landing-system : lando
2019-07-20 14:54:33 +00:00
Tim Nguyen 9916bc6b41 Bug 1567053 - Make default ::-moz-focus-inner border color more accessible. r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D38448

--HG--
extra : moz-landing-system : lando
2019-07-18 04:17:18 +00:00
Csoregi Natalia 5c50393ac1 Backed out changeset 05c5e4d30587 (bug 1561794) for multiple failures e.g. test_bug320799.html. CLOSED TREE 2019-07-17 04:24:52 +03:00
Emilio Cobos Álvarez d146066640 Bug 1561794 - Do not to crop display text of themed comboboxes due to padding. r=dbaron
This is a potential fix that I thought it was worth doing rather than
implementing Blink's platform-dependent silliness. This ensures that the display
frame always has enough space to display itself.

Note that it may still get clipped, if there's no room for both the display
frame and the button.

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

--HG--
extra : moz-landing-system : lando
2019-07-16 23:11:42 +00:00
Emilio Cobos Álvarez b2494dc0fa Bug 1457628 - Remove broken rule for the file input button. r=jfkthame
Inheriting block-size is just plain wrong in presence of calc or percentages.

The layout without these rules also matches other browsers, so I see no reason
not to do this.

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

--HG--
extra : moz-landing-system : lando
2019-07-12 10:10:43 +00:00
Gurzau Raul c99bec025b Backed out changeset 13b62d64e105 (bug 1457628) for reftest failures at /forms/input/file/button-height.html on a CLOSED TREE.
--HG--
extra : rebase_source : 0322d1819c6bb5f1b86cb98c65889949d89f2b3d
extra : histedit_source : fa4c921ec16cb24154c9543ae6ff85502fa19aa7
2019-07-12 06:31:29 +03:00
Emilio Cobos Álvarez 85c5fe106f Bug 1565214 - Don't apply property restrictions to pseudo-elements in UA stylesheets. r=boris
And remove some of the ::placeholder and ::cue hacks where we need to use
!important to make the property not apply for content but apply on UA sheets.

The comment about the white-space property was wrong, we don't enforce it with
!important in the UA stylesheets for <input> (we do for <textarea> though), so
I've kept the flag since it really applies.

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

--HG--
extra : moz-landing-system : lando
2019-07-11 23:06:41 +00:00
Emilio Cobos Álvarez 609a5a9af0 Bug 1457628 - Remove broken rule for the file input button. r=jfkthame
Inheriting block-size is just plain wrong in presence of calc or percentages.

The layout without these rules also matches other browsers, so I see no reason
not to do this.

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

--HG--
extra : moz-landing-system : lando
2019-07-11 18:34:33 +00:00
Emilio Cobos Álvarez 2189015730 Bug 1565129 - Re-introduce plain_text.wrap_long_lines. r=bzbarsky
Looks like some users use it, and it's not too much effort to support. This is
somewhat simpler, and IMO better than what existed before bug 1514655 because:

 * It doesn't regress bidi rendering when the pref is disabled (before, the pref
   would prevent plaintext.css from applying altogether).

 * It's consistent with the way view-source docs work.

 * It doesn't use non-standard stylesheet APIs to toggle the stylesheet
   (bug 1260720).

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

--HG--
extra : moz-landing-system : lando
2019-07-11 18:49:50 +00:00
Bogdan Tara fa0329b09b Backed out changeset 6f468ad73df2 (bug 1565129) for causing leaks CLOSED TREE 2019-07-11 21:00:59 +03:00
Emilio Cobos Álvarez f75dd725f5 Bug 1565129 - Re-introduce plain_text.wrap_long_lines. r=bzbarsky
Looks like some users use it, and it's not too much effort to support. This is
somewhat simpler, and IMO better than what existed before bug 1514655 because:

 * It doesn't regress bidi rendering when the pref is disabled (before, the pref
   would prevent plaintext.css from applying altogether).

 * It's consistent with the way view-source docs work.

 * It doesn't use non-standard stylesheet APIs to toggle the stylesheet
   (bug 1260720).

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

--HG--
extra : moz-landing-system : lando
2019-07-11 16:32:08 +00:00
alwu c2ca57258b Bug 1305732 - part5 : set CSS properties directly on '::cue'. r=heycam,emilio
According to the spec [1], we have to set those CSS properties on the root node, and then this root node would have a child node, background box [2], which would contain all other child nodes.

In our case, the background box is `cueDiv` [3].

In theory, all those properties set on the root node should be inherited by the background box. However, when the background box is a pseudo element `::cue`, they won't be directly inherit from the the background box's parent, inherited styles would acutally come from video instead.

Therefore, we have to directly set these properties on the pseudo element and mark them as `!important` to avoid being overrided by user style script.

[1] https://www.w3.org/TR/webvtt1/#ref-for-list-of-webvtt-node-objects-9
[2] https://www.w3.org/TR/webvtt1/#webvtt-cue-background-box
[3] https://searchfox.org/mozilla-central/rev/11712bd3ce7454923e5931fa92eaf9c01ef35a0a/dom/media/webvtt/vtt.jsm#533-534

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

--HG--
extra : moz-landing-system : lando
2019-07-09 01:42:45 +00:00
Hiroyuki Ikezoe ae4a1bc2c7 Bug 1560704 - Revert the change `transform-style: inherit` added to ::-moz-table-wrapper in ua.css. r=birtles
It caused rendering issues just like a reftest in this commit.  We don't know
the reason but fixing it will be some amount of work which couldn't be uplifted
to 68.  So we just revert the change here now.  Probably we should revisit the
problem once we got a bug report that the lack of the `transform-style: inherit`
causes rendering issues.

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

--HG--
extra : moz-landing-system : lando
2019-06-26 10:29:37 +00:00
Emilio Cobos Álvarez 1e7b303431 Bug 1539469 - Make all input elements display: inline-block, for compat with other UAs. r=mats
See https://github.com/whatwg/html/issues/4082 for the data and some comments
from Boris and David.

I didn't look into fixing the font-inflation reftests, see bug 1540176 for that.

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

--HG--
extra : moz-landing-system : lando
2019-06-04 15:39:47 +00:00
Martin Stransky ba6373e9aa Bug 1531338 - [Linux/Gtk] Get and use Gtk theme text color for active/pressed button, r=dao,emilio
- Follow Gtk and get theme button text color directly from "button" CSS node instead of "button label"
- Provide new -moz-gtk-buttonactivetext color for active/pressed button text color
- Replace ButtonText color with -moz-gtk-buttonactivetext when it's appropriate

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

--HG--
extra : moz-landing-system : lando
2019-05-24 08:51:48 +00:00