W3C home > Mailing lists > Public > public-digipub-ig@w3.org > April 2016

Re: Expected behaviour of quotation marks

From: Gunnar Bittersmann <gunnar@bittersmann.de>
Date: Fri, 8 Apr 2016 14:54:32 +0200
To: W3C Digital Publishing IG <public-digipub-ig@w3.org>
Message-ID: <5707AA08.2010506@bittersmann.de>
fantasai scripsit (2016-04-07 22:26):
>> 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.

Gunnar
Received on Friday, 8 April 2016 12:54:58 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 25 April 2017 10:44:42 UTC