W3C home > Mailing lists > Public > www-style@w3.org > August 2014

Re: [css3-background] PFWG input on focus ring

From: Antony Kennedy <booshtukka@me.com>
Date: Wed, 30 Jul 2014 04:04:40 +0000
Message-id: <2006601A-7953-4451-9D94-278DFC5E3A0B@me.com> (sfid-20140730_040447_458851_14CE66D5)
To: www-style list <www-style@w3.org>

> On 28 Jul 2014, at 09:01, Tab Atkins Jr. <jackalmage@gmail.com> wrote:
> 
> On Fri, Jul 25, 2014 at 1:56 PM, Antony Kennedy <booshtukka@me.com> wrote:
>>> On 25 Jul 2014, at 12:14, fantasai <fantasai.lists@inkedblade.net> wrote:
>>> On 07/25/2014 07:30 PM, Tab Atkins Jr. wrote:
>>>> On Fri, Jul 25, 2014 at 11:21 AM, Boris Zbarsky <bzbarsky@mit.edu> wrote:
>>>>> On 7/25/14, 2:08 PM, Tab Atkins Jr. wrote:
>>>>>> There is not. It has to either be marked !important in the UA style
>>>>>> sheet by the UA, or duplicated in the user style sheet and marked
>>>>>> !important.
>>>>> 
>>>>> That said, if we did have a "default" value which meant "cascaded UA-level
>>>>> value" in user sheets and "cascaded UA+user level value" in author sheets),
>>>>> and the default focus ring were in fact a UA-level value, then doing
>>>>> "default !important" in a user sheet would in fact work.
>>>> 
>>>> I thought the only reason we didn't have that was implementation
>>>> concerns? If people are down with it, I can add that easily.
>>> 
>>> s/add/re-add/ ;)
>>> 
>>> http://www.w3.org/TR/2013/WD-css3-cascade-20130103/#default
>> 
>> For my use case, I would like to have a single user stylesheet that states e.g.
>> 
>> :focus {outline: default !important;}
>> 
>> Which maintains the author defined focus outline, and stops authors from overriding it. This seems like it would meet this requirement?
> 
> Assuming you meant "UA-defined focus outline", then yes, that would do
> what you want.
> 
> ~TJ
> 

Do we have a way to apply this with a cross-selector? For example, say I have:

<div role=“button” tabindex=“0” id=“fake button”>Focus me</div>

Is there a way to apply the UA default focus outline for a button element to this element on focus?

A
Received on Friday, 8 August 2014 17:08:25 UTC

This archive was generated by hypermail 2.3.1 : Friday, 8 August 2014 17:08:25 UTC