WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
168170
REGRESSION: Update volume and scrubbing slider to match HI designs
https://bugs.webkit.org/show_bug.cgi?id=168170
Summary
REGRESSION: Update volume and scrubbing slider to match HI designs
mitz
Reported
2017-02-11 08:15:32 PST
The black border around the thumb in the volume slider is clipped out at the top. See screenshot.
Attachments
Volume slider
(38.84 KB, image/png)
2017-02-11 08:15 PST
,
mitz
no flags
Details
Patch
(139.79 KB, patch)
2017-02-13 15:29 PST
,
Antoine Quint
dino
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
mitz
Comment 1
2017-02-11 08:15:58 PST
Created
attachment 301257
[details]
Volume slider
Antoine Quint
Comment 2
2017-02-13 02:14:12 PST
<
rdar://problem/28095266
>
Antoine Quint
Comment 3
2017-02-13 02:15:40 PST
We have a radar for bringing the blending and rendering of the controls bar, volume slider and track menu up to spec. We'll use this Bugzilla bug to track this as well.
Antoine Quint
Comment 4
2017-02-13 09:18:54 PST
I have the code ready for this but there are a lot of tests to rebaseline, currently there are 31 broken tests due to the source changes.
Antoine Quint
Comment 5
2017-02-13 15:29:23 PST
Created
attachment 301400
[details]
Patch
Dean Jackson
Comment 6
2017-02-13 17:24:49 PST
Comment on
attachment 301400
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=301400&action=review
> Source/WebCore/ChangeLog:27 > + On macOS, we draw the whole slider with a <canvas> element with "mix-blend-mode" > + set to "plus-lighter". On iOS, we draw the track as a <div> with "mix-blend-mode" > + set to "plus-darker" and draw the fill (up to the thumb) in the <canvas> with > + no blend mode to obtain a pure white color, finally the thumb is rendered by the > + <input> element. We couldn't draw the pure white color with the track in the > + same <canvas> due to the "plus-darker" blend mode.
Why are iOS and macOS different designs here? I thought you'd want the loaded bar in macOS too.
> Source/WebCore/Modules/modern-media-controls/controls/airplay-button.css:28 > + mix-blend-mode: normal !important;
Why?
Antoine Quint
Comment 7
2017-02-14 00:00:18 PST
(In reply to
comment #6
)
> Comment on
attachment 301400
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=301400&action=review
> > > Source/WebCore/ChangeLog:27 > > + On macOS, we draw the whole slider with a <canvas> element with "mix-blend-mode" > > + set to "plus-lighter". On iOS, we draw the track as a <div> with "mix-blend-mode" > > + set to "plus-darker" and draw the fill (up to the thumb) in the <canvas> with > > + no blend mode to obtain a pure white color, finally the thumb is rendered by the > > + <input> element. We couldn't draw the pure white color with the track in the > > + same <canvas> due to the "plus-darker" blend mode. > > Why are iOS and macOS different designs here? I thought you'd want the > loaded bar in macOS too.
We do, it's just drawn in the same <canvas> as everything else because the colours used agree with the blend mode, unlike for iOS.
> > Source/WebCore/Modules/modern-media-controls/controls/airplay-button.css:28 > > + mix-blend-mode: normal !important; > > Why?
Because the selector setting the blend mode for inline controls on macOS is more specific.
Antoine Quint
Comment 8
2017-02-14 00:13:26 PST
Committed
r212280
: <
http://trac.webkit.org/changeset/212280
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug