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

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?

-Boris

Received on Tuesday, 17 May 2011 11:05:43 UTC