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
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
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
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
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.
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
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.
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
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
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.
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
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
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
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.
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.