Re: [css-d] CSS content attribute.

2012-10-22 Thread Philip TAYLOR
Philippe Wittenbergh wrote: I am not sure I would consider this a 'bug', rather an experimental feature. The (now marked as obsolete) css-content module allowed the content property ( with value: string) to be applied to any element (as opposed to only generated content pseudo elements):

Re: [css-d] CSS content attribute.

2012-10-22 Thread Philippe Wittenbergh
Le 22 oct. 2012 à 18:10, Philip TAYLOR p.tay...@rhul.ac.uk a écrit : Thank you for your comments, Philippe, for which I am very grateful. I am, however, puzzled by your view that it can be considered a feature (albeit an experimental feature) rather than a bug. If an implementation chooses

Re: [css-d] CSS content attribute.

2012-10-22 Thread Philip TAYLOR
Thank you for your further comments, Philippe : as we are moving on to philosophy rather than CSS per se, I will not continue the debate here. However, to address your closing query : PS - If one makes an error in a stylesheet (did you wrote E { content: 'foo'; } instead of E::after {} ?)

Re: [css-d] CSS content attribute.

2012-10-22 Thread Jukka K. Korpela
2012-10-22 19:50, Philip TAYLOR wrote: SPAN class=Apparatus referentium style=content: 'Set: 1; parts: 2' I use it because (a) it is permitted (i.e., it is in accordance with the specification and therefore validates, yet has no effect on the rendered output in any conforming browser),

Re: [css-d] CSS content attribute.

2012-10-22 Thread Jukka K. Korpela
2012-10-22 20:31, Philip TAYLOR wrote: You are effectively using the 'style' attribute as a carrier for application-specific data, not for making presentational suggestions. [...] But no better option appeared to present itself; title was an option, but there was a distinct risk that a

Re: [css-d] CSS content attribute.

2012-10-22 Thread Philip TAYLOR
Jukka K. Korpela wrote: I don't think the constraints prevent that; class=Set: 1; parts: 2 is valid HTML 4.01, Well I'm d@mned : so it does. Thank you for drawing that to my attention. What is somewhat odd is that when I use the validator to confirm that it is indeed valid, and then use

Re: [css-d] CSS content attribute.

2012-10-22 Thread Jukka K. Korpela
2012-10-22 20:58, Philip TAYLOR wrote: What is somewhat odd is that when I use the validator to confirm that it is indeed valid, and then use the CSS link- through to validate the CSS, it (a) validates against the CSS 3 specification (why ?), They decided the default to CSS3 a while ago. Some

[css-d] CSS content attribute.

2012-10-21 Thread Philip TAYLOR
According to : http://www.w3.org/TR/CSS21/generate.html#content the computed value of the content attribute for an element (/qua/ element) is normal; Seamonkey and Internet Explorer both respect this, and render : SPAN style=content: 'bar'foo/SPAN as : foo It has

Re: [css-d] CSS content attribute.

2012-10-21 Thread Barney Carroll
For what it's worth, I noticed this behaviour in Opera at least 2 years ago. It strikes me as definitely wrong, and a bug according to the spec (depends on how much implication you want to read into it — Opera have arguably excelled in pursuing an aggressively imaginative approach to implementing

Re: [css-d] CSS content attribute.

2012-10-21 Thread Philippe Wittenbergh
Le 22 oct. 2012 à 08:25, Philip TAYLOR p.tay...@rhul.ac.uk a écrit : According to : http://www.w3.org/TR/CSS21/generate.html#content the computed value of the content attribute for an element (/qua/ element) is normal; Seamonkey and Internet Explorer both respect this, and render

Re: [css-d] CSS content attribute.

2012-10-21 Thread Barney Carroll
By the by, in terms of zealous generated content as a philosophy, the type=date inputs are another great example of Opera bringing huge unasked-for gifts to the table. Uh? that is part of HTML5 (and actively under development for Gecko and WebKit):

[css-d] CSS Content

2011-09-22 Thread Giles, Sarah
I want to add an img before a div tag using CSS content. Is this possible? Before I get my rear jumped about adding content with CSS and the whole separation of presentation and content thing I will state this img IS presentation. Basically I have a grouping of div (section might be a more

Re: [css-d] CSS Content

2011-09-22 Thread Tim Arnold
On Thu, Sep 22, 2011 at 10:38 AM, Giles, Sarah sarah.gi...@cookmedical.com wrote: Some of these groups are Special And their specialness changes on a personal whim. So I am creating a class to denote their specialness that will change their background color, give a boarder, and change font

Re: [css-d] CSS Content

2011-09-22 Thread Giles, Sarah
On 9/22/11 10:53 AM, Tim Arnold tim.arn...@gmail.com wrote: You could use the :after pseudoclass, but it might be simpler (certainly better supported in all browsers) to place it as a background image to the div in question. Position it top left and add enough left padding to the div to make

Re: [css-d] CSS Content

2011-09-22 Thread Tedd Sperling
On Sep 22, 2011, at 10:38 AM, Giles, Sarah wrote: I want to add an img before a div tag using CSS content. Is this possible? Before I get my rear jumped about adding content with CSS and the whole separation of presentation and content thing I will state this img IS presentation.

Re: [css-d] CSS Content

2011-09-22 Thread G.Sørtun
On 22.09.2011 16:38, Giles, Sarah wrote: I want to add an img before adiv tag using CSS content. Is this possible? Yes, no problem. Example-page: http://www.gunlaug.com/index.html ...where I use the following site-wide styles to insert 3 birds, an (R) and a (C) in the header-area, and a

Re: [css-d] CSS Content

2011-09-22 Thread Giles, Sarah
On 9/22/11 4:01 PM, G.Sørtun gunla...@c2i.net wrote: On 22.09.2011 16:38, Giles, Sarah wrote: I want to add an img before adiv tag using CSS content. Is this possible? Yes, no problem. Example-page: http://www.gunlaug.com/index.html ...where I use the following site-wide styles to insert 3

Re: [css-d] CSS Content

2011-09-22 Thread G.Sørtun
On 22.09.2011 22:01, G.Sørtun wrote: Example-page: http://www.gunlaug.com/index.html Note that I have wrapped the before: and after: styles in a ... @media screen {} ...where I initially set all before: and after: to display: none to hide these styles from a few semi-old browsers that

Re: [css-d] CSS Content

2011-09-22 Thread G.Sørtun
On 22.09.2011 22:14, Giles, Sarah wrote: This is what I went with: [.] Should work OK, although I would normally define position: absolute on the generated content and position: relative on the .featured_offer container or one of its parents. Find positioning to be more flexible that

[css-d] CSS content scroller

2010-03-12 Thread Neil Hunt
Anyone have any good example of a scroller (some call conveyor) using just CSS...similiar to what it being used on front page of USA Today for Top Picks? Looking for good sample or how-to instructions. __ css-discuss