W3C home > Mailing lists > Public > whatwg@whatwg.org > May 2011

[whatwg] Proposal: content-style attribute for contenteditable elements

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Tue, 17 May 2011 11:40:18 -0700
Message-ID: <BANLkTi=0Ez9nJcfG1msfuEu1aR-pQ68SGw@mail.gmail.com>
On Tue, May 17, 2011 at 11:05 AM, Boris Zbarsky <bzbarsky at mit.edu> wrote:
> On 5/17/11 11:23 AM, Tab Atkins Jr. wrote:
>> On Tue, May 17, 2011 at 1:09 AM, Markus Ernst<derernst at gmx.ch> ?wrote:
>>> Special cases:
>>> - If the linked CSS document contains declarations for the body element,
>>> they are applied to the contenteditable element itself. (This could be
>>> necessary in case of light text on dark backgrounds, where you want to
>>> apply
>>> the background to the contenteditable area.)
>>
>> It would be cleaner to simply say that the contenteditable element
>> matches the :root pseudoclass in the linked sheet.
>
> :root, or :scope?

Doesn't really matter to me; either seems sensical.  :root has the
benefit of existing.  ^_^

~TJ
Received on Tuesday, 17 May 2011 11:40:18 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:09:06 UTC