-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Legacy scrollbar corner pseudo styles used despite standard scrollbar…
… property usage https://bugs.webkit.org/show_bug.cgi?id=258773 Reviewed by Simon Fraser. This patch changes the code that retrieves the ScrollbarCorner pseudo styles to check that there's no standard property usage. * LayoutTests/imported/w3c/web-platform-tests/css/css-scrollbars/scrollbar-color-006-expected.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-scrollbars/scrollbar-color-006-ref.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-scrollbars/scrollbar-color-006.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-scrollbars/scrollbar-color-007-expected.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-scrollbars/scrollbar-color-007-ref.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-scrollbars/scrollbar-color-007.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-scrollbars/scrollbar-color-008-expected.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-scrollbars/scrollbar-color-008-ref.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-scrollbars/scrollbar-color-008.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-scrollbars/scrollbar-color-009-expected.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-scrollbars/scrollbar-color-009-ref.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-scrollbars/scrollbar-color-009.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-scrollbars/scrollbar-color-010-expected.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-scrollbars/scrollbar-color-010-ref.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-scrollbars/scrollbar-color-010.html: Added. * Source/WebCore/page/LocalFrameView.cpp: (WebCore::LocalFrameView::updateScrollCorner): * Source/WebCore/rendering/RenderLayerScrollableArea.cpp: (WebCore::RenderLayerScrollableArea::updateScrollCornerStyle): * Source/WebCore/rendering/style/RenderStyle.h: * Source/WebCore/rendering/style/RenderStyleInlines.h: (WebCore::RenderStyle::usesStandardScrollbarStyle const): (WebCore::RenderStyle::usesLegacyScrollbarStyle const): Canonical link: https://commits.webkit.org/265990@main
- Loading branch information
1 parent
36e066b
commit 3ac44ba
Showing
19 changed files
with
337 additions
and
5 deletions.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
...ests/imported/w3c/web-platform-tests/css/css-scrollbars/scrollbar-color-006-expected.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<!doctype html> | ||
<html> | ||
<style> | ||
.container { | ||
scrollbar-gutter: stable; | ||
overflow: auto; | ||
height: 200px; | ||
min-width: 200px; | ||
margin: 1px; | ||
padding: 0px; | ||
border: none; | ||
background: deepskyblue; | ||
scrollbar-color: yellow blue; | ||
} | ||
|
||
.content { | ||
height: 300px; | ||
width: 300px; | ||
background: red; | ||
} | ||
</style> | ||
<div id="one" class="container"> | ||
<div class="content"></div> | ||
</div> |
24 changes: 24 additions & 0 deletions
24
LayoutTests/imported/w3c/web-platform-tests/css/css-scrollbars/scrollbar-color-006-ref.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<!doctype html> | ||
<html> | ||
<style> | ||
.container { | ||
scrollbar-gutter: stable; | ||
overflow: auto; | ||
height: 200px; | ||
min-width: 200px; | ||
margin: 1px; | ||
padding: 0px; | ||
border: none; | ||
background: deepskyblue; | ||
scrollbar-color: yellow blue; | ||
} | ||
|
||
.content { | ||
height: 300px; | ||
width: 300px; | ||
background: red; | ||
} | ||
</style> | ||
<div id="one" class="container"> | ||
<div class="content"></div> | ||
</div> |
32 changes: 32 additions & 0 deletions
32
LayoutTests/imported/w3c/web-platform-tests/css/css-scrollbars/scrollbar-color-006.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<!doctype html> | ||
<html> | ||
<title>CSS Scrollbars: scrollbar-color on scrollable areas correctly interacts with ::-webkit-scrollbar-corner</title> | ||
<link rel="author" title="Luke Warlow" href="mailto:luke@warlow.dev" /> | ||
<link rel="match" href="scrollbar-color-006-ref.html" /> | ||
<link rel="help" href="https://drafts.csswg.org/css-scrollbars-1/" /> | ||
<style> | ||
.container { | ||
scrollbar-gutter: stable; | ||
overflow: auto; | ||
height: 200px; | ||
min-width: 200px; | ||
margin: 1px; | ||
padding: 0px; | ||
border: none; | ||
background: deepskyblue; | ||
scrollbar-color: yellow blue; | ||
} | ||
|
||
::-webkit-scrollbar-corner { | ||
background-color: purple; | ||
} | ||
|
||
.content { | ||
height: 300px; | ||
width: 300px; | ||
background: red; | ||
} | ||
</style> | ||
<div id="one" class="container"> | ||
<div class="content"></div> | ||
</div> |
23 changes: 23 additions & 0 deletions
23
...ests/imported/w3c/web-platform-tests/css/css-scrollbars/scrollbar-color-007-expected.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<!doctype html> | ||
<html> | ||
<style> | ||
.container { | ||
scrollbar-gutter: stable; | ||
overflow: auto; | ||
height: 200px; | ||
min-width: 200px; | ||
margin: 1px; | ||
padding: 0px; | ||
border: none; | ||
background: deepskyblue; | ||
} | ||
|
||
.content { | ||
height: 300px; | ||
width: 300px; | ||
background: red; | ||
} | ||
</style> | ||
<div id="one" class="container"> | ||
<div class="content"></div> | ||
</div> |
23 changes: 23 additions & 0 deletions
23
LayoutTests/imported/w3c/web-platform-tests/css/css-scrollbars/scrollbar-color-007-ref.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<!doctype html> | ||
<html> | ||
<style> | ||
.container { | ||
scrollbar-gutter: stable; | ||
overflow: auto; | ||
height: 200px; | ||
min-width: 200px; | ||
margin: 1px; | ||
padding: 0px; | ||
border: none; | ||
background: deepskyblue; | ||
} | ||
|
||
.content { | ||
height: 300px; | ||
width: 300px; | ||
background: red; | ||
} | ||
</style> | ||
<div id="one" class="container"> | ||
<div class="content"></div> | ||
</div> |
32 changes: 32 additions & 0 deletions
32
LayoutTests/imported/w3c/web-platform-tests/css/css-scrollbars/scrollbar-color-007.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<!doctype html> | ||
<html> | ||
<title>CSS Scrollbars: scrollbar-color on scrollable areas correctly interacts with ::-webkit-scrollbar-corner on container</title> | ||
<link rel="author" title="Luke Warlow" href="mailto:luke@warlow.dev" /> | ||
<link rel="match" href="scrollbar-color-007-ref.html" /> | ||
<link rel="help" href="https://drafts.csswg.org/css-scrollbars-1/" /> | ||
<style> | ||
.container { | ||
scrollbar-gutter: stable; | ||
overflow: auto; | ||
height: 200px; | ||
min-width: 200px; | ||
margin: 1px; | ||
padding: 0px; | ||
border: none; | ||
background: deepskyblue; | ||
scrollbar-color: yellow blue; | ||
} | ||
|
||
.container::-webkit-scrollbar-corner { | ||
background-color: purple; | ||
} | ||
|
||
.content { | ||
height: 300px; | ||
width: 300px; | ||
background: red; | ||
} | ||
</style> | ||
<div id="one" class="container"> | ||
<div class="content"></div> | ||
</div> |
23 changes: 23 additions & 0 deletions
23
...ests/imported/w3c/web-platform-tests/css/css-scrollbars/scrollbar-color-008-expected.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<!doctype html> | ||
<html> | ||
<style> | ||
.container { | ||
scrollbar-gutter: stable; | ||
overflow: auto; | ||
height: 200px; | ||
min-width: 200px; | ||
margin: 1px; | ||
padding: 0px; | ||
border: none; | ||
background: deepskyblue; | ||
} | ||
|
||
.content { | ||
height: 300px; | ||
width: 300px; | ||
background: red; | ||
} | ||
</style> | ||
<div id="one" class="container"> | ||
<div class="content"></div> | ||
</div> |
23 changes: 23 additions & 0 deletions
23
LayoutTests/imported/w3c/web-platform-tests/css/css-scrollbars/scrollbar-color-008-ref.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<!doctype html> | ||
<html> | ||
<style> | ||
.container { | ||
scrollbar-gutter: stable; | ||
overflow: auto; | ||
height: 200px; | ||
min-width: 200px; | ||
margin: 1px; | ||
padding: 0px; | ||
border: none; | ||
background: deepskyblue; | ||
} | ||
|
||
.content { | ||
height: 300px; | ||
width: 300px; | ||
background: red; | ||
} | ||
</style> | ||
<div id="one" class="container"> | ||
<div class="content"></div> | ||
</div> |
35 changes: 35 additions & 0 deletions
35
LayoutTests/imported/w3c/web-platform-tests/css/css-scrollbars/scrollbar-color-008.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<!doctype html> | ||
<html> | ||
<title>CSS Scrollbars: scrollbar-color on body correctly interacts with ::-webkit-scrollbar-corner on container</title> | ||
<link rel="author" title="Luke Warlow" href="mailto:luke@warlow.dev" /> | ||
<link rel="match" href="scrollbar-color-008-ref.html" /> | ||
<link rel="help" href="https://drafts.csswg.org/css-scrollbars-1/" /> | ||
<style> | ||
body { | ||
scrollbar-color: yellow blue; | ||
} | ||
|
||
.container { | ||
scrollbar-gutter: stable; | ||
overflow: auto; | ||
height: 200px; | ||
min-width: 200px; | ||
margin: 1px; | ||
padding: 0px; | ||
border: none; | ||
background: deepskyblue; | ||
} | ||
|
||
.container::-webkit-scrollbar-corner { | ||
background-color: purple; | ||
} | ||
|
||
.content { | ||
height: 300px; | ||
width: 300px; | ||
background: red; | ||
} | ||
</style> | ||
<div id="one" class="container"> | ||
<div class="content"></div> | ||
</div> |
11 changes: 11 additions & 0 deletions
11
...ests/imported/w3c/web-platform-tests/css/css-scrollbars/scrollbar-color-009-expected.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<!doctype html> | ||
<html> | ||
<style> | ||
:root { | ||
scrollbar-color: yellow blue; | ||
} | ||
|
||
body { | ||
overflow: scroll; | ||
} | ||
</style> |
11 changes: 11 additions & 0 deletions
11
LayoutTests/imported/w3c/web-platform-tests/css/css-scrollbars/scrollbar-color-009-ref.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<!doctype html> | ||
<html> | ||
<style> | ||
:root { | ||
scrollbar-color: yellow blue; | ||
} | ||
|
||
body { | ||
overflow: scroll; | ||
} | ||
</style> |
19 changes: 19 additions & 0 deletions
19
LayoutTests/imported/w3c/web-platform-tests/css/css-scrollbars/scrollbar-color-009.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<!doctype html> | ||
<html> | ||
<title>CSS Scrollbars: scrollbar-color on root correctly interacts with ::-webkit-scrollbar-corner</title> | ||
<link rel="author" title="Luke Warlow" href="mailto:luke@warlow.dev" /> | ||
<link rel="match" href="scrollbar-color-009-ref.html" /> | ||
<link rel="help" href="https://drafts.csswg.org/css-scrollbars-1/" /> | ||
<style> | ||
:root { | ||
scrollbar-color: yellow blue; | ||
} | ||
|
||
body { | ||
overflow: scroll; | ||
} | ||
|
||
::-webkit-scrollbar-corner { | ||
background-color: purple; | ||
} | ||
</style> |
11 changes: 11 additions & 0 deletions
11
...ests/imported/w3c/web-platform-tests/css/css-scrollbars/scrollbar-color-010-expected.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<!doctype html> | ||
<html> | ||
<style> | ||
:root { | ||
scrollbar-color: yellow blue; | ||
} | ||
|
||
body { | ||
overflow: scroll; | ||
} | ||
</style> |
11 changes: 11 additions & 0 deletions
11
LayoutTests/imported/w3c/web-platform-tests/css/css-scrollbars/scrollbar-color-010-ref.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<!doctype html> | ||
<html> | ||
<style> | ||
:root { | ||
scrollbar-color: yellow blue; | ||
} | ||
|
||
body { | ||
overflow: scroll; | ||
} | ||
</style> |
19 changes: 19 additions & 0 deletions
19
LayoutTests/imported/w3c/web-platform-tests/css/css-scrollbars/scrollbar-color-010.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<!doctype html> | ||
<html> | ||
<title>CSS Scrollbars: scrollbar-color on root correctly interacts with ::-webkit-scrollbar-corner on body</title> | ||
<link rel="author" title="Luke Warlow" href="mailto:luke@warlow.dev" /> | ||
<link rel="match" href="scrollbar-color-010-ref.html" /> | ||
<link rel="help" href="https://drafts.csswg.org/css-scrollbars-1/" /> | ||
<style> | ||
:root { | ||
scrollbar-color: yellow blue; | ||
} | ||
|
||
body { | ||
overflow: scroll; | ||
} | ||
|
||
body::-webkit-scrollbar-corner { | ||
background-color: purple; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters