Re: [webkit-dev] Your opinion on a CSS proposal

2007-06-07 Thread Mark Rowe


On 07/06/2007, at 3:35 PM, Windy Road wrote:


On 06/06/07, David D. Kilzer [EMAIL PROTECTED] wrote:

You may be interested in these blogs as well:

http://webkit.org/blog/55/high-dpi-web-sites/
http://webkit.org/blog/56/high-dpi-part-2/


Thanks for the heads up.  I did find them interesting.

Anyone got any thoughts on how to deliver high resolution images to
high DPI screens and low resolution images to low DPI screens.


http://webkit.org/blog/55/high-dpi-web-sites/ mentions using CSS 3's  
media queries to target a portion of a stylesheet based on the devices  
DPI.  See http://www.w3.org/TR/css3-mediaqueries/ for more  
information.


- Mark

___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-dev


Re: [webkit-dev] Your opinion on a CSS proposal

2007-06-06 Thread Windy Road

On 06/06/07, Rob Burns [EMAIL PROTECTED] wrote:

I think its an interesting idea. However, perhaps it would be better
to have an additional property that wouldn't conflict with the font-
size property. Something like font-size-transform (to avoid conflict
with font-size-adjust though this could still cause author
confusion).


I thought about this as well, but when I was developing the demo I
kept thinking What I really need is a way in CSS to tell the browser
that I don't care what the font size is, just make sure the line
length is X characters, whatever the width of the column is.  This is
why I thought of font-size: auto

hmm... maybe line-length is a better option.  e.g. adjusting my previous example

body {
 width: 100%;
 line-length: 62.5em;
}

#main-column {
 width: 80%;
}

#secondary-column {
 width: 20%;
}

Thoughts?

Cheers,

--
Tom Howard
http://windyroad.org
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-dev


Re: [webkit-dev] Your opinion on a CSS proposal

2007-06-06 Thread Windy Road

On 06/06/07, David D. Kilzer [EMAIL PROTECTED] wrote:

You may be interested in these blogs as well:

http://webkit.org/blog/55/high-dpi-web-sites/
http://webkit.org/blog/56/high-dpi-part-2/


Thanks for the heads up.  I did find them interesting.

Anyone got any thoughts on how to deliver high resolution images to
high DPI screens and low resolution images to low DPI screens.

Cheers,

--
Tom Howard
http://windyroad.org
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-dev


Re: [webkit-dev] Your opinion on a CSS proposal

2007-06-06 Thread Rob Burns
Its not easy to do these days. In my opinion, this is one of the key  
features needed for an HTTP  1.2 (along with event/change  
notifications and a few other things). Apache can probably be  
configured to do this, but I'm not sure that there's a way to easily  
get the HTTP clients to request a particular resolution.


Take care,
Rob


On Jun 7, 2007, at 12:35 AM, Windy Road wrote:


On 06/06/07, David D. Kilzer [EMAIL PROTECTED] wrote:

You may be interested in these blogs as well:

http://webkit.org/blog/55/high-dpi-web-sites/
http://webkit.org/blog/56/high-dpi-part-2/


Thanks for the heads up.  I did find them interesting.

Anyone got any thoughts on how to deliver high resolution images to
high DPI screens and low resolution images to low DPI screens.

Cheers,

--
Tom Howard
http://windyroad.org
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-dev


___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-dev


[webkit-dev] Your opinion on a CSS proposal

2007-06-05 Thread Windy Road

Hi,

Sorry in advance if this is the wrong place/way to ask this.

I recently posted on the www-style list a proposal for allowing the
'font-size' CSS property to have a value of 'auto':
   http://lists.w3.org/Archives/Public/www-style/2007Jun/0016.html

The basic idea is that when font-size: auto is used, the browser would
calculate the font-size based on the element's width margins and
padding.  A javascript mockup is available at:

   http://windyroad.org/static/resolution-independence/

What I would like to know, if you can spare the time, is what you, the
webkit developers, feel about this proposal.  I'm not involved in any
browser development, so I don't know the implications such a proposal
would have if is at all feasible.

Thanks for your time,

--
Tom Howard
http://windyroad.org
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-dev


Re: [webkit-dev] Your opinion on a CSS proposal

2007-06-05 Thread David D. Kilzer
You may be interested in these blogs as well:

http://webkit.org/blog/55/high-dpi-web-sites/
http://webkit.org/blog/56/high-dpi-part-2/

Dave


Windy Road [EMAIL PROTECTED] wrote:

 Hi,
 
 Sorry in advance if this is the wrong place/way to ask this.
 
 I recently posted on the www-style list a proposal for allowing the
 'font-size' CSS property to have a value of 'auto':
 http://lists.w3.org/Archives/Public/www-style/2007Jun/0016.html
 
 The basic idea is that when font-size: auto is used, the browser would
 calculate the font-size based on the element's width margins and
 padding.  A javascript mockup is available at:
 
 http://windyroad.org/static/resolution-independence/
 
 What I would like to know, if you can spare the time, is what you, the
 webkit developers, feel about this proposal.  I'm not involved in any
 browser development, so I don't know the implications such a proposal
 would have if is at all feasible.
 
 Thanks for your time,
 
 -- 
 Tom Howard
 http://windyroad.org
 ___
 webkit-dev mailing list
 webkit-dev@lists.webkit.org
 http://lists.webkit.org/mailman/listinfo/webkit-dev
 

___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-dev


Re: [webkit-dev] Your opinion on a CSS proposal

2007-06-05 Thread Wesley Moore

Tom,
Overlooking for the moment the problem Dave H raised, what would the
rendering engine be aiming to do with the text when font-size was
auto? I assume this is to make the resolution independent example
you've made easier to implement, how does it help that?

WM

On 6/6/07, Windy Road [EMAIL PROTECTED] wrote:

Hi,

Sorry in advance if this is the wrong place/way to ask this.

I recently posted on the www-style list a proposal for allowing the
'font-size' CSS property to have a value of 'auto':
http://lists.w3.org/Archives/Public/www-style/2007Jun/0016.html

The basic idea is that when font-size: auto is used, the browser would
calculate the font-size based on the element's width margins and
padding.  A javascript mockup is available at:

http://windyroad.org/static/resolution-independence/

What I would like to know, if you can spare the time, is what you, the
webkit developers, feel about this proposal.  I'm not involved in any
browser development, so I don't know the implications such a proposal
would have if is at all feasible.

Thanks for your time,

--
Tom Howard
http://windyroad.org

___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-dev


Re: [webkit-dev] Your opinion on a CSS proposal

2007-06-05 Thread Rob Burns


On Jun 6, 2007, at 12:01 AM, Windy Road wrote:


On 06/06/07, Wesley Moore [EMAIL PROTECTED] wrote:

Overlooking for the moment the problem Dave H raised, what would the
rendering engine be aiming to do with the text when font-size was
auto? I assume this is to make the resolution independent example
you've made easier to implement, how does it help that?


Just say you wanted a RI (resolution independent) web page with a body
width of 62.5em, which comprises of a main column which is takes up
80% and a secondary column which takes up the remaining 20%.  The hope
is font-size: auto, would allow you to use the following CSS

body {
 width: 62.5em;
 font-size: auto;
}

#main-column {
 width: 80%;
}

#secondary-column {
 width: 20%;
}

Such a page would look identical on a 640px wide browser as a 1900px
wide browser in every aspect, except that the font would be much more
detailed in the 1900px wide browser.

While the demonstration shows this is achievable with Javascript,
there is quite a lot of 'scaffolding' to hold it all together.  Also,
I feel it is something that belongs more in the realms of CSS than
Javascript (you know, the whole separation of responsibilities).

I'll also admit that font-size auto does not address how to request
the server to deliver a correctly scaled version of an image, video or
similar.


I think its an interesting idea. However, perhaps it would be better  
to have an additional property that wouldn't conflict with the font- 
size property. Something like font-size-transform (to avoid conflict  
with font-size-adjust though this could still cause author  
confusion). In this way, the width and height in the box model could  
continue to bet set relative to font-size (an important part of  
resolution independent CSS). However, there could be a font-size- 
transform that scaled the font-size relative to the enclosing content  
box after the other properties are determined. That's just a reaction  
off the top of my head.


Take care,
Rob
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-dev


Re: [webkit-dev] Your opinion on a CSS proposal

2007-06-05 Thread Windy Road

On 06/06/07, David Hyatt [EMAIL PROTECTED] wrote:

Except that the width of an element can depend on the font size.


And in those situations (say a floated element), specifying font-size:
auto would be invalid and should be ignored.


Your idea is interesting, but it can't really be defined using font-
size.  It's more of an after-the-fact adjiustment based off the
calculated width of a block.


So let me rephase the question.  Do you think the effect I'm trying to
achieve should be specified via CSS or Javascript?  If the former, do
you have any suggestions on how?

Cheers,

--
Tom Howard
http://windyroad.org
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-dev