Skip to content

[css-scrollbars-1][unclear-issue] #2007

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
retyui opened this issue Nov 24, 2017 · 4 comments
Closed

[css-scrollbars-1][unclear-issue] #2007

retyui opened this issue Nov 24, 2017 · 4 comments
Labels
Closed as Retracted When the person who raised the issue thinks that there's no issue after all. css-scrollbars-1 Current Work

Comments

@retyui
Copy link

retyui commented Nov 24, 2017

Link to spec: https://drafts.csswg.org/css-scrollbars-1/
These new css properties allow you to influence only the color of the scrollbar.
Is it inherent in the complexity of realization?
would like ::-webkit-scrollbar CSS pseudo-element?

@tabatkins tabatkins added the css-scrollbars-1 Current Work label Nov 27, 2017
@tabatkins
Copy link
Member

I'm not sure what you're trying to say here?

@Nadya678
Copy link

Nadya678 commented Nov 28, 2017

scrollbar-3dlight-color, scrollbar-arrow-color, scrollbar-base-color, scrollbar-darkshadow-color, scrollbar-face-color, scrollbar-highlight-color, scrollbar-track-color, scrollbar-shadow-color.

Definitive "NO" for this draft.

I propose:
::scrollbar - it describes position, base colour, width/height of the scrollbar.
::scrollbar-thumb - it describes with use of standard styles the thumb of scrollbar. Including center icon (background-image) if present.
::scrollbar-prev - button for scroll left or top,
::scrollbar-next - button for scroll right or bottom,
::scrollbar-grip - resizing handle.

Pseudoclasses:
:vertical, :horizontal, :disabled (none to scroll if overflow:scroll),:end(position is maximum), :start (thumb position is 0).

We don't need scrollbar-3dlight-color etc. It is possible to describe scrollbar with use of standard styles for example border-bottom.

Reason: The manipulation of scrollbars shall be complete. The scrollbar is composed with real elements: background, thumb, buttons and there shall be reflected in CSS.
The scrollbar-darkshadow-color is not applicable for smartphone scrollbar look.

Edit: If the width of scrollbar will be defined as 16px and user will select zoom:200% in their browser settings, the scrollbar shall have visual size equivalent to 32px (200%*16px). This also shall be clarified in future draft.

Edit 2: still not ideal due to fact the pseudoelements cannot have pseudocalsses. I proposed new solution. #2153

@Nadya678
Copy link

Nadya678 commented Dec 27, 2017

Additionally:

Security/privacy problem of the css-scrollbars-1 @ 14 Nov 2107 draft:
ThreeDFace, ThreeDDarkShadow etc. can be used to detect user colour composition in OS. If user has set non-standard composition in their OS (for example Windows Classic in Windows 8.1, extended personalized themes etc.), the browser will inherit these colours and in computed values or copied area (with JavaScript both) the real colour values of these 8 values. There may be tracked 8 colours (each of them having three 0..255 values) and additionally there is able to track original width and height of scrollbar. There is 25-byte length identifier that can be unique and help to thrack the user! It is strong impact for privacy and security.

Thus: the standard width/height of scrollbar shall be standarized to 17px (it is the most often value), the colours of each pseudoelement of scrollbar also shall be standarized for PC browsers and smartphones. Web-developers shall be possible to mainpulate these values but shall not be able to read colours of OS composition.

If the ThreeDDarkShadow etc. are used in any working draft/recommendation, PLEASE define standard values for them. For example ThreeDDarkShadow ::= #808080 (I propose grayscale for them).

@tantek tantek changed the title [css-scrollbars-1] [css-scrollbars-1][unclear-issue] Mar 31, 2018
@ExE-Boss
Copy link
Contributor

ExE-Boss commented Apr 14, 2018

Edit: If the width of scrollbar will be defined as 16px and user will select zoom:200% in their browser settings, the scrollbar shall have visual size equivalent to 32px (200%*16px). This also shall be clarified in future draft.

From testing, I’ve determined that Firefox doesn’t scale the scrollbars to match the web content.

@retyui retyui closed this as completed Nov 1, 2018
@frivoal frivoal added Closed as Retracted When the person who raised the issue thinks that there's no issue after all. and removed Commenter Response Pending Needs Thought labels Dec 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Closed as Retracted When the person who raised the issue thinks that there's no issue after all. css-scrollbars-1 Current Work
Projects
None yet
Development

No branches or pull requests

6 participants