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

Tab Atkins Jr. jackalmage at gmail.com
Tue May 17 11:40:18 PDT 2011

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.  ^_^


More information about the whatwg mailing list