Commit Graph
1962 Commits
Author SHA1 Message Date
Emilio Cobos Álvarez 78b87ae8be Bug 2045230 - Add background-clip: border-area support for solid borders. r=gfx-reviewers,layout-reviewers,firefox-style-system-reviewers,lsalzman,dshin
This is useful for nova (which wants to use a gradient border around the
selected tab and right now hack around it with multiple backgrounds).

For now enable only on chrome code by default since we only support
solid borders (which is what we want anyways), and we don't support
combining it with `background-clip: text`.

Differential Revision: https://phabricator.services.mozilla.com/D304960
2026-06-10 12:24:34 +00:00
Tyler B. Thrailkill 500f1618ed Bug 2022783 - Add link-parameter parsing and rendering for svg r=firefox-style-system-reviewers,layout-reviewers,emilio
Differential Revision: https://phabricator.services.mozilla.com/D287695
2026-06-03 01:04:39 +00:00
agoloman 67b7024c99 Revert "Bug 2022783 - Add link-parameter parsing and rendering for svg r=firefox-style-system-reviewers,layout-reviewers,emilio" for causing wpt failures @inheritance.html.
This reverts commit 120c6bb1ac.
2026-06-02 13:57:24 +00:00
Tyler B. Thrailkill 120c6bb1ac Bug 2022783 - Add link-parameter parsing and rendering for svg r=firefox-style-system-reviewers,layout-reviewers,emilio
Differential Revision: https://phabricator.services.mozilla.com/D287695
2026-06-02 11:54:22 +00:00
agoloman cc7d89b94e Revert "Bug 2022783 - Add link-parameter parsing and rendering for svg r=firefox-style-system-reviewers,layout-reviewers,emilio" for causing mochitest failures @test_value_computation.html.
This reverts commit 9df9602da0.
2026-06-02 10:54:16 +00:00
Tyler B. Thrailkill 9df9602da0 Bug 2022783 - Add link-parameter parsing and rendering for svg r=firefox-style-system-reviewers,layout-reviewers,emilio
Differential Revision: https://phabricator.services.mozilla.com/D287695
2026-06-02 09:04:07 +00:00
Mr. M 5f837dd775 Bug 2005007 - Add parsing for CSS corner-shape support r=firefox-style-system-reviewers,emilio,dshin
Differential Revision: https://phabricator.services.mozilla.com/D296935
2026-05-29 12:13:05 +00:00
Sajid Anwar ead20ee980 Bug 2040168 - Support computed-value-time calc() expressions for additional math functions. r=firefox-style-system-reviewers,emilio
Differential Revision: https://phabricator.services.mozilla.com/D300978
2026-05-25 16:25:54 +00:00
Hiroyuki Ikezoe 9bb989d132 Bug 2040247 - Emit nsChangeHint_ScrollbarChange when the root element's overflow toggles between 'visible' and 'clip'. r=layout-reviewers,firefox-style-system-reviewers,emilio
Per the css-overflow propagation rule [1], 'visible' on the viewport is
interpreted as 'auto' and 'clip' is interpreted as 'hidden'. So dynamically
toggling the root element's overflow between 'visible' and 'clip' changes
the viewport's propagated scrollbar styles between 'auto' and 'hidden'.

[1] https://drafts.csswg.org/css-overflow/#overflow-propagation

Differential Revision: https://phabricator.services.mozilla.com/D301231
2026-05-19 11:22:28 +00:00
Emilio Cobos Álvarez 776b68a1a2 Bug 2038136 - Implement image(<color>), and make none in light-dark() compute to image(transparent). r=firefox-style-system-reviewers,layout-reviewers,dshin
See https://github.com/w3c/csswg-drafts/issues/13866

Differential Revision: https://phabricator.services.mozilla.com/D299322
2026-05-08 14:32:09 +00:00
Emilio Cobos Álvarez 139d1a428f Bug 2023450 - Honor CSS display on <select> with appearance: base/base-select. r=keithamus
Differential Revision: https://phabricator.services.mozilla.com/D287828
2026-05-06 20:12:48 +00:00
Emilio Cobos Álvarez eaf0d03637 Bug 1977176 - Implement field-sizing for <input> / <textarea>. r=keithamus,layout-reviewers,dholbert
Differential Revision: https://phabricator.services.mozilla.com/D294135
2026-04-17 08:32:03 +00:00
David Shin ad9f711c8f Bug 2030351: Implement position-anchor: normal. r=layout-anchor-positioning-reviewers,firefox-style-system-reviewers,layout-reviewers,emilio,devtools-reviewers,nchevobbe
As per the CSSWG resolution [1], this is now the default value.

Differential Revision: https://phabricator.services.mozilla.com/D292959
2026-04-16 20:15:48 +00:00
agoloman df0061cbd3 Revert "Bug 2030351: Implement position-anchor: normal. r=layout-anchor-positioning-reviewers,firefox-style-system-reviewers,layout-reviewers,emilio" for causing dt failures @browser_rules_anchor-names-autocomplete.js.
This reverts commit 2a373806b6.
2026-04-15 23:01:45 +00:00
David Shin 2a373806b6 Bug 2030351: Implement position-anchor: normal. r=layout-anchor-positioning-reviewers,firefox-style-system-reviewers,layout-reviewers,emilio
As per the CSSWG resolution [1], this is now the default value.

Differential Revision: https://phabricator.services.mozilla.com/D292959
2026-04-15 21:30:16 +00:00
Silaghi 3373b81387 Revert "Bug 2022783 - Add link-parameter parsing and rendering for svg r=firefox-style-system-reviewers,layout-reviewers,emilio" for causing mochitests and wpt failures at link-parameters
This reverts commit f607d44e5f.
2026-04-15 00:21:11 +00:00
Tyler B. Thrailkill f607d44e5f Bug 2022783 - Add link-parameter parsing and rendering for svg r=firefox-style-system-reviewers,layout-reviewers,emilio
Differential Revision: https://phabricator.services.mozilla.com/D287695
2026-04-14 22:56:20 +00:00
rperta ec14dbdf0b Revert "Bug 1977176 - Part 1: Ensure change hint for field-sizing reflows size r=emilio" for causing assertion failures at nsStyleChangeList.cpp
This reverts commit 5ae01c480e.
2026-04-12 19:01:41 +00:00
Keith Cirkel 5ae01c480e Bug 1977176 - Part 1: Ensure change hint for field-sizing reflows size r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D257248
2026-04-12 18:11:14 +00:00
Emilio Cobos Álvarez 26bc57e700 Bug 2026592 - Optimize storage of scoped names and view-transition-name. r=firefox-style-system-reviewers,layout-reviewers,janv,dshin
With the TreeScopedTag + the extra tag, these end up being massive.

Compact their representation by reusing the array. Since they're dashed idents
we can just store the regular values however we want.

Differential Revision: https://phabricator.services.mozilla.com/D290101
2026-03-27 06:53:34 +00:00
Hiroyuki Ikezoe f65f37da89 Bug 1977511 - Handle ::-webkit-scrollbar { display:none } as if it's scrollbar-width: none. r=layout-reviewers,firefox-style-system-reviewers,emilio
Note about layout.css.scrollbar-width-thin.disabled:

In the case where the pref is false (default),

```
.scrollabler { scrollbar-wdith: thin; }
.scrollable::-webkit-scrollbar { display: none; }
```
does NOT hide the scrollbars just like what Chrome does.

In the case where the pref is true,

```
.scrollabler { scrollbar-wdith: thin; }
.scrollable::-webkit-scrollbar { display: none; }
```
does NOT hide the scrollbars either, the width of scrollbar is rendered
as if it's 'auto`.

Differential Revision: https://phabricator.services.mozilla.com/D286183
2026-03-27 04:32:25 +00:00
Cosmin Sabou a2d880fc9b Revert "Bug 1977511, Bug 2026430 - Guard mScrollbarActivity access with WeakFrame. r=emilio,layout-reviewers"
This reverts commit 0bc649e1df.

Revert "Bug 1977511 - Handle `::-webkit-scrollbar { display:none }` as if it's `scrollbar-width: none`. r=layout-reviewers,firefox-style-system-reviewers,emilio"

This reverts commit fe392b1cd5.

Revert "Bug 1977511 - Add reftests for ::-webkit-scrollbar. r=layout-reviewers,emilio"

This reverts commit 1b6d4641c7.

Revert "Bug 1977511 - Disable overlay scrollbars if there's any non-zero width and height defined in ::-webkit-scrollbar. r=layout-reviewers,firefox-style-system-reviewers,emilio"

This reverts commit 926eea5a10.

Revert "Bug 1977511 - Resolve ::-webkit-scrollbar pseudo element styles soon after the scroll container style was set. r=layout-reviewers,devtools-reviewers,firefox-style-system-reviewers,nchevobbe,emilio"

This reverts commit 8164020c76.

Revert "Bug 1977511 - Introduce nsLayoutUtils::UseOverlayScrollbars and use it in proper places instead of nsPresContext::UseOverlayScrollbars. r=layout-reviewers,emilio"

This reverts commit 8856d35471.

Revert "Bug 1977511 - Use ScrollContainerFrame::UseOverlayScrollbars in ResizeObserver and ScrollbarAreaToExcludeFromCompositionBoundsFor. r=layout-reviewers,emilio"

This reverts commit 5baba0ed09.
2026-03-27 02:33:00 +00:00
Hiroyuki Ikezoe fe392b1cd5 Bug 1977511 - Handle ::-webkit-scrollbar { display:none } as if it's scrollbar-width: none. r=layout-reviewers,firefox-style-system-reviewers,emilio
Note about layout.css.scrollbar-width-thin.disabled:

In the case where the pref is false (default),

```
.scrollabler { scrollbar-wdith: thin; }
.scrollable::-webkit-scrollbar { display: none; }
```
does NOT hide the scrollbars just like what Chrome does.

In the case where the pref is true,

```
.scrollabler { scrollbar-wdith: thin; }
.scrollable::-webkit-scrollbar { display: none; }
```
does NOT hide the scrollbars either, the width of scrollbar is rendered
as if it's 'auto`.

Differential Revision: https://phabricator.services.mozilla.com/D286183
2026-03-27 01:57:06 +00:00
Emilio Cobos Álvarez d44dbe0c16 Bug 2026592 - Use some free storage in nsStyleUIReset. r=firefox-style-system-reviewers,layout-reviewers,dshin
There are some holes we can use to gain some space.

Differential Revision: https://phabricator.services.mozilla.com/D290102
2026-03-26 17:34:04 +00:00
Atila Butkovits a6cb0e6249 Revert "Bug 1977511 - Handle ::-webkit-scrollbar { display:none } as if it's scrollbar-width: none. r=layout-reviewers,firefox-style-system-reviewers,emilio" for causing a top crash in bug 2026487.
This reverts commit e7e66a8471.

Revert "Bug 1977511 - Add reftests for ::-webkit-scrollbar. r=layout-reviewers,emilio"

This reverts commit 1ef6a456dc.

Revert "Bug 1977511 - Disable overlay scrollbars if there's any non-zero width and height defined in ::-webkit-scrollbar. r=layout-reviewers,firefox-style-system-reviewers,emilio"

This reverts commit 904febaca7.

Revert "Bug 1977511 - Resolve ::-webkit-scrollbar pseudo element styles soon after the scroll container style was set. r=layout-reviewers,devtools-reviewers,firefox-style-system-reviewers,nchevobbe,emilio"

This reverts commit b8f0d32cfb.

Revert "Bug 1977511 - Introduce nsLayoutUtils::UseOverlayScrollbars and use it in proper places instead of nsPresContext::UseOverlayScrollbars. r=layout-reviewers,emilio"

This reverts commit 0694ea2bf8.

Revert "Bug 1977511 - Use ScrollContainerFrame::UseOverlayScrollbars in ResizeObserver and ScrollbarAreaToExcludeFromCompositionBoundsFor. r=layout-reviewers,emilio"

This reverts commit 19303dead1.
2026-03-26 08:05:45 +00:00
Hiroyuki Ikezoe e7e66a8471 Bug 1977511 - Handle ::-webkit-scrollbar { display:none } as if it's scrollbar-width: none. r=layout-reviewers,firefox-style-system-reviewers,emilio
Note about layout.css.scrollbar-width-thin.disabled:

In the case where the pref is false (default),

```
.scrollabler { scrollbar-wdith: thin; }
.scrollable::-webkit-scrollbar { display: none; }
```
does NOT hide the scrollbars just like what Chrome does.

In the case where the pref is true,

```
.scrollabler { scrollbar-wdith: thin; }
.scrollable::-webkit-scrollbar { display: none; }
```
does NOT hide the scrollbars either, the width of scrollbar is rendered
as if it's 'auto`.

Differential Revision: https://phabricator.services.mozilla.com/D286183
2026-03-25 15:43:32 +00:00
Jari Jalkanen b431814632 Bug 1970954 - Resolve documents for tree-scoped ViewTransitionClass objects. r=layout-reviewers,firefox-style-system-reviewers,emilio,dshin
Differential Revision: https://phabricator.services.mozilla.com/D287437
2026-03-17 21:51:05 +00:00
Jari Jalkanen 34b238d3dc Bug 2022861 - Make ViewTransitionNames tree-scoped. r=layout-reviewers,firefox-style-system-reviewers,dshin
Differential Revision: https://phabricator.services.mozilla.com/D287435
2026-03-17 21:50:59 +00:00
Emilio Cobos Álvarez eb87d1158b Bug 2011820 - appearance: {base,base-select} support via an @appearance-base rule. r=tlouw
Differential Revision: https://phabricator.services.mozilla.com/D287818
2026-03-17 17:44:30 +00:00
Serban Stanca e5d7b9992f Revert "Bug 2011820 - appearance: {base,base-select} support via an @appearance-base rule. r=tlouw" for causing wpt failures in closed-listbox-rendering.html.
This reverts commit 2b592196ab.
2026-03-17 15:26:31 +00:00
Emilio Cobos Álvarez 2b592196ab Bug 2011820 - appearance: {base,base-select} support via an @appearance-base rule. r=tlouw
Differential Revision: https://phabricator.services.mozilla.com/D287818
2026-03-17 12:11:53 +00:00
Sylvestre Ledru 55481ac4b5 Bug 2023419 - Remove Emacs/Vim modelines from layout/ r=emilio,firefox-style-system-reviewers,layout-reviewers
replaced by .editorconfig

Differential Revision: https://phabricator.services.mozilla.com/D287852
2026-03-17 12:05:43 +00:00
Serban Stanca 756241a7ce Revert "Bug 2011820 - appearance: {base,base-select} support via an @appearance-base rule. r=tlouw" for causing wpt failures in select-appearance-sizing-in-flex.html.
This reverts commit 7669d5a11e.
2026-03-17 11:49:24 +00:00
Emilio Cobos Álvarez 7669d5a11e Bug 2011820 - appearance: {base,base-select} support via an @appearance-base rule. r=tlouw
Differential Revision: https://phabricator.services.mozilla.com/D287818
2026-03-17 10:14:28 +00:00
rperta 2362c10a63 Revert "Bug 2011820 - appearance: {base,base-select} support via an @appearance-base rule. r=tlouw" for causing wr failures at closed-listbox-rendering.html
This reverts commit b957d18e90.
2026-03-17 01:32:58 +00:00
Emilio Cobos Álvarez b957d18e90 Bug 2011820 - appearance: {base,base-select} support via an @appearance-base rule. r=tlouw
Differential Revision: https://phabricator.services.mozilla.com/D287818
2026-03-16 22:41:27 +00:00
David Shin 0ca928e841 Bug 2016258: Move timeline-scope to the UI struct. r=firefox-style-system-reviewers,emilio
Previously lived alongside `anchor-scope` in the box struct, but as emilio
pointed out, it makes sense for it to live with animation properties it
impacts.

Differential Revision: https://phabricator.services.mozilla.com/D286335
2026-03-09 20:56:16 +00:00
Sandor Molnar beb1b1bcb8 Revert "Bug 2014914 - Part 5: Define the default values for StyleGenericAnimationRangeValue. r=firefox-style-system-reviewers,emilio" for timelineManager crashes
This reverts commit 644a9ce730.

Revert "Bug 2014914 - Part 4: Normalize the timing if the timeline data is changed. r=layout-scroll-driven-animation-reviewers,layout-reviewers,dshin"

This reverts commit b41cc1b969.

Revert "Bug 2014914 - Part 3: Calculate the animation attachment range when updating the timing. r=firefox-style-system-reviewers,layout-scroll-driven-animation-reviewers,dshin"

This reverts commit 7dfe5e7abb.

Revert "Bug 2014914 - Part 2: Store the style of the animation range in Animation. r=firefox-style-system-reviewers,layout-scroll-driven-animation-reviewers,dshin"

This reverts commit 3f1c0188b5.

Revert "Bug 2014914 - Part 1: Cache the necessary layout info and calculate the timeline data lazily. r=layout-scroll-driven-animation-reviewers,layout-reviewers,dshin"

This reverts commit 3de9737bd5.

Revert "Bug 2016258: Move timeline-scope to the UI struct. r=firefox-style-system-reviewers,emilio"

This reverts commit eb6ede0c75.

Revert "Bug 2016258: Implement timeline-scope. r=layout-scroll-driven-animation-reviewers,firefox-style-system-reviewers,boris"

This reverts commit 87b661808e.

Revert "Bug 1782995: Get rid of sibling traversal for named timeline. r=layout-scroll-driven-animation-reviewers,firefox-style-system-reviewers,boris"

This reverts commit be1f75b1e9.

Revert "Bug 2018310: Add hashmap to keep track of all possible timeline targets of that name. r=layout-scroll-driven-animation-reviewers,firefox-style-system-reviewers,boris"

This reverts commit bd0754e023.

Revert "Bug 2018310: Track timeline-scope on DOM side. r=layout-scroll-driven-animation-reviewers,firefox-style-system-reviewers,boris,emilio"

This reverts commit afd2fa8cb8.
2026-03-08 09:27:29 +00:00
serge-sans-paille ae1341ef2a Bug 2020590 - Replace copy assignment by move assignment in misc subdirectory r=firefox-style-system-reviewers,layout-reviewers,emilio
Commit automatically generated through clang-tidy's
performance-use-std-move new pass.

- nsCOMPtr benefits from being moved
- Maybe type has a custom move-assign operator
- nsAutoCString benefits from being moved
- nsRegion benefits from being moved

Differential Revision: https://phabricator.services.mozilla.com/D285677
2026-03-06 10:47:28 +00:00
David Shin eb6ede0c75 Bug 2016258: Move timeline-scope to the UI struct. r=firefox-style-system-reviewers,emilio
Previously lived alongside `anchor-scope` in the box struct, but as emilio
pointed out, it makes sense for it to live with animation properties it
impacts.

Differential Revision: https://phabricator.services.mozilla.com/D286335
2026-03-05 23:51:34 +00:00
Boris Chiou aa20f44849 Bug 1825427 - Support animation-range-start and animation-range-end. r=firefox-style-system-reviewers,layout-scroll-driven-animation-reviewers,dshin
Parse these two longhand properties and do serialization for them.
We use two different structs to wrap `AnimationRangeValue` because their
`parse()` and `to_css()` are slightly different.

Besides, these properties should be applied to ::marker and we will add
them in the following patch.

Differential Revision: https://phabricator.services.mozilla.com/D284969
2026-02-28 03:19:06 +00:00
Emilio Cobos Álvarez 57cd2b4174 Bug 2018697 - Reframe when text-orientation changes since it affects mWritingMode. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D284770
2026-02-27 02:26:19 +00:00
David Shin 584d00ceb7 Bug 2016245: Add parsing for timeline-scope. r=layout-scroll-driven-animation-reviewers,firefox-style-system-reviewers,boris
Differential Revision: https://phabricator.services.mozilla.com/D284561
2026-02-25 14:28:02 +00:00
David Shin e6b5166b7a Bug 2016245: Rename anchor-scope's backing type for general use. r=layout-scroll-driven-animation-reviewers,firefox-style-system-reviewers,layout-reviewers,boris
Differential Revision: https://phabricator.services.mozilla.com/D284560
2026-02-25 14:28:00 +00:00
iulian moraru 25fc25a6f9 Revert "Bug 2016245: Parse tree-scoped names in scroll-timeline, view-timeline, animation-timeline. r=layout-scroll-driven-animation-reviewers,firefox-style-system-reviewers,boris" for causing multiple mochitest failures.
This reverts commit 103fd273bc.

Revert "Bug 2016245: Add parsing for timeline-scope. r=layout-scroll-driven-animation-reviewers,firefox-style-system-reviewers,boris"

This reverts commit 8e5fa13d51.

Revert "Bug 2016245: Rename anchor-scope's backing type for general use. r=layout-scroll-driven-animation-reviewers,firefox-style-system-reviewers,layout-reviewers,boris"

This reverts commit 7b7e701073.
2026-02-24 21:11:26 +00:00
David Shin 8e5fa13d51 Bug 2016245: Add parsing for timeline-scope. r=layout-scroll-driven-animation-reviewers,firefox-style-system-reviewers,boris
Differential Revision: https://phabricator.services.mozilla.com/D284561
2026-02-24 19:56:48 +00:00
David Shin 7b7e701073 Bug 2016245: Rename anchor-scope's backing type for general use. r=layout-scroll-driven-animation-reviewers,firefox-style-system-reviewers,layout-reviewers,boris
Differential Revision: https://phabricator.services.mozilla.com/D284560
2026-02-24 19:56:46 +00:00
Cosmin Sabou 61f86e6d73 Revert "Bug 2016245: Parse tree-scoped names in scroll-timeline, view-timeline, animation-timeline. r=layout-scroll-driven-animation-reviewers,firefox-style-system-reviewers,boris" for causing mochitest plain failures on test_computed_style_difference.
This reverts commit 4caefb9c09.

Revert "Bug 2016245: Add parsing for timeline-scope. r=layout-scroll-driven-animation-reviewers,firefox-style-system-reviewers,boris"

This reverts commit c6f5455dd1.

Revert "Bug 2016245: Rename anchor-scope's backing type for general use. r=layout-scroll-driven-animation-reviewers,firefox-style-system-reviewers,layout-reviewers,boris"

This reverts commit 007f70e272.
2026-02-24 05:18:37 +00:00
David Shin c6f5455dd1 Bug 2016245: Add parsing for timeline-scope. r=layout-scroll-driven-animation-reviewers,firefox-style-system-reviewers,boris
Differential Revision: https://phabricator.services.mozilla.com/D284561
2026-02-24 03:50:28 +00:00
David Shin 007f70e272 Bug 2016245: Rename anchor-scope's backing type for general use. r=layout-scroll-driven-animation-reviewers,firefox-style-system-reviewers,layout-reviewers,boris
Differential Revision: https://phabricator.services.mozilla.com/D284560
2026-02-24 03:50:25 +00:00