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

On Thu, Jul 24, 2014 at 3:43 PM, Antony Kennedy <booshtukka@me.com> wrote:
>> On 23 Jul 2014, at 15:14, fantasai <fantasai.lists@inkedblade.net> wrote:
>> On 07/23/2014 06:26 PM, Antony Kennedy wrote:
>>>> A user can disable such modifications by restricting it via !important
>>>> rules in the user style sheet (or an equivalent UI control) just like
>>>> disabling author-specified colors and fonts.
>>>
>>> A user can set their own outline with !important, but out of interest,
>>> is there a way for them to stop the author overriding browser defaults?
>>
>> Yes. From CSS’s perspective, the browser defaults are represented
>> in the cascade as user-level style rules. So making those rules
>> !important (or in any case having them enter the cascade at the
>> user !important level) will "stop the author overriding browser
>> defaults".
>>
>> This is how we represent all such preferences, such as default
>> colors and fonts.
>
> Sure, but perhaps I am misunderstanding here.
>
> If I am writing my own user stylesheet, and I want to say "do not allow the author to change the focus outline from the browser defaults" is there a way I can do that without duplicating the browser defaults in my user stylesheet?
>
> I understand the vendor could add !important, or I could write my own rules, but I am interested in knowing if there is a way to mark certain rules as immutable, even if the vendor has not done this themselves.

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.

~TJ

Received on Friday, 25 July 2014 18:09:14 UTC