On Thu, Jul 26, 2018, at 7:44 AM, Karl Tomlinson wrote:
> Thanks very much for answering some of my questions for me.
> 
> Xidorn Quan writes:
> 
> > On Wed, Jul 25, 2018, at 6:29 PM, Karl Tomlinson wrote:
> >> Is there a plan to avoid the contrast problems we have mixing
> >> document colors with system colors in other widgets?
> >> 
> >> e.g. If one scrollbar color is specified by the document, then
> >> what ensures that other parts of the scrollbar are visually
> >> distinct?
> >> 
> >> Does the computed value of the other scrollbar color change so
> >> that it contrasts with the specified color?
> >
> > There are only two scrollbar color properties. If a platform has
> > other parts which need different colors, we would derive such
> > colors from the given one based on the native scheme and
> > constrast.
> 
> Does the second sentence also apply when only one of the two
> properties is auto?
> 
> Would the color for the auto property be derived in such as way as
> to hide the thumb or to make it constrast?

No, currently we don't derive them from each other. We simply use some fallback 
color in that case.

It is not impossible to derive them, but I would expect authors to specify them 
together. We may add a shorthand property to set them at the same time.

The spec currently says track can use face color if that's auto... which I 
don't think I agree with. But I can consider adding some deriving if it's 
likely to be useful.

- Xidorn
_______________________________________________
dev-platform mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to