Re: Survival of Styling with Copy and Paste

On Wed, 21 Feb 2007, Daniel Glazman wrote:
> On 21/02/2007 00:13, Daniel Glazman wrote:
> 
> > > So the only feasible option of inter-document copying is use of
> > > pure html without any styling information. CSS (cascading) simply
> > > does not work in this use case.
> > 
> > This is false. The second feasible option is to get the computed style
> > of the element copied and compared it to the initial values of all
> > properties to extract minimalist inline styles that could be applied
> > to the element when copied. Not that hard to implement...
> 
> Forgot to mention one thing : why do you think I will _always_ be 
> against the deprecation of the style attribute if our styles are 
> CSS-based ?-)))

How would that work when the document has media-specific style sheets, 
such that an element has different styles in different media?

Wouldn't scope stylesheets (e.g. using <style scoped> from HTML5 [1]) be a 
better way to do this?

[1] http://www.whatwg.org/specs/web-apps/current-work/#scoped

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'

Received on Wednesday, 21 February 2007 00:07:52 UTC