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

2011-05-19 Thread Markus Ernst
Am 19.05.2011 20:39 schrieb Aryeh Gregor: On Tue, May 17, 2011 at 4:09 AM, Markus Ernstderer...@gmx.ch wrote: While discussing about contenteditable elements, the WYSIWYG aspect was mentioned. For real WYSIWYG in a text editor of a CMS, Blog, Forum or whatever, it would be necessary for the

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

2011-05-17 Thread Markus Ernst
Hello While discussing about contenteditable elements, the WYSIWYG aspect was mentioned. For real WYSIWYG in a text editor of a CMS, Blog, Forum or whatever, it would be necessary for the contents of the contenteditable element to: - Disable the styles of the surrounding page - Enable the

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

2011-05-17 Thread Tab Atkins Jr.
On Tue, May 17, 2011 at 1:09 AM, Markus Ernst derer...@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

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

2011-05-17 Thread Boris Zbarsky
On 5/17/11 11:23 AM, Tab Atkins Jr. wrote: On Tue, May 17, 2011 at 1:09 AM, Markus Ernstderer...@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

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

2011-05-17 Thread Tab Atkins Jr.
On Tue, May 17, 2011 at 11:05 AM, Boris Zbarsky bzbar...@mit.edu wrote: On 5/17/11 11:23 AM, Tab Atkins Jr. wrote: On Tue, May 17, 2011 at 1:09 AM, Markus Ernstderer...@gmx.ch  wrote: Special cases: - If the linked CSS document contains declarations for the body element, they are applied to

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

2011-05-17 Thread Boris Zbarsky
On 5/17/11 2:40 PM, Tab Atkins Jr. wrote: Doesn't really matter to me; either seems sensical. :root has the benefit of existing. ^_^ :scope has the benefit of making more sense (and happens to exist in my tree, is used in the proposed selectors API, etc). -Boris