- From: fantasai <fantasai.lists@inkedblade.net>
- Date: Fri, 8 Apr 2016 14:53:04 -0400
- To: Gunnar Bittersmann <gunnar@bittersmann.de>, www-international@w3.org
On 04/08/2016 02:45 AM, Gunnar Bittersmann wrote:
>>> I'm not quite sure how to say that in selector-speak yet.
>>
>> [lang] { quotes: whatever; }
>> q, q [lang] { quotes: inherit; }
>
> In case of <q lang="tlh">, this rule would generate quotation marks depending on the language of the quote instead of the
> language of the context (undesired Klingon quotation marks, not Terranian in this example). Hence:
>
> :lang(…) > q { quotes: … }
>
>
> If you want nested quotes to inherit from the outermost quote, this should do the trick, cf.
> http://codepen.io/gunnarbittersmann/pen/repYNq?editors=1100
>
> q q { quotes: inherit !important }
>
> Using `!important` is not (always) a sin.
No, but this is not a case where its appropriate, either. =)
Think about: what if this was the UA style sheet?
~fantasai
Received on Friday, 8 April 2016 18:53:32 UTC