![]() | |
#1
| |||
| |||
|
|
On 2009-10-29, dorayme <doraymeRidThis (AT) optusnet (DOT) com.au> wrote: In article <slrnheik1s.334.spamspam (AT) bowser (DOT) marioworld>, Ben C <spamspam (AT) spam (DOT) eggs> wrote: On 2009-10-29, dorayme <doraymeRidThis (AT) optusnet (DOT) com.au> wrote: [...] .... As with many other presentational matters, there are initial values set by the browser via internal coding, sometimes in conjunction with user preferences or options. The initial values are all in the CSS specification, and the browser _has_ to do those as printed (see the "full property table" in one of the appendices). |
#2
| |||||
| |||||
|
|
In article <slrnhel82c.39n.spamspam (AT) bowser (DOT) marioworld>, Ben C <spamspam (AT) spam (DOT) eggs> wrote: On 2009-10-29, dorayme <doraymeRidThis (AT) optusnet (DOT) com.au> wrote: In article <slrnheik1s.334.spamspam (AT) bowser (DOT) marioworld>, Ben C <spamspam (AT) spam (DOT) eggs> wrote: On 2009-10-29, dorayme <doraymeRidThis (AT) optusnet (DOT) com.au> wrote: [...] ... As with many other presentational matters, there are initial values set by the browser via internal coding, sometimes in conjunction with user preferences or options. The initial values are all in the CSS specification, and the browser _has_ to do those as printed (see the "full property table" in one of the appendices). The actual values set as 'normal' get to be decided, I was supposing, by the browser via internal coding, sometimes in conjunction with user preferences or options. Are we talking at cross purposes? |
|
(Btw, it is hard to know which is the right group for this topic as it is really about a number of issues that straddles HTML authoring and CSS. Perhaps alt.html? Anyway, perhaps too late.) A useful fiction to buy out of having to know the details of how browsers are made and operate: A browser produces an output only with a virtual master CSS sheet. In this sheet are all the styles down to as exact a value as possible. This sheet can be overridden of course by author or user sheets. |
|
Now, to go into something, in FF, if you can, try: http://dorayme.netweaver.com.au/anything.html Open the web developer facilities and go to Edit CSS, stick in a style on body for line-height. I have Geneva 16 set for my normal sans-serif and if I set body {line-height: 1.36} I get about the same look as me not setting any line-height. What do you want to say about where the line height is being supplied from in the case? I am happy with my rich fictitious master sheet that is very far from the minimalist: http://www.w3.org/TR/CSS21/sample.html Note how grabbing all this and making an explicit set of styles in the head of anything.html, leaves the show virtually unchanged. Meaning partly that this example sheet is certainly very congruent with the one that FF actually operates with, it may even be exactly the same. |
|
There is a menu item under Disable Styles that reads Browser Default Styles. |
|
Tick this and see what happens to the line height. Now it is a mingy thing! Where is this coming from? It is coming presumably from browser coding. It looks like 'line-height: 1;' To see this, open a couple of tabs. In one tick the Browser Default Styles, in the other simply add under Edit CSS, body {line-height:1;}. Compare by eye. |
#3
| |||
| |||
|
|
On 2009-10-29, dorayme <doraymeRidThis (AT) optusnet (DOT) com.au> wrote: [...] ... A useful fiction to buy out of having to know the details of how browsers are made and operate: A browser produces an output only with a virtual master CSS sheet. In this sheet are all the styles down to as exact a value as possible. This sheet can be overridden of course by author or user sheets. Yes, although in this "virtual master CSS sheet", all selectors are just *. It would look this: * display { inline } * line-height { normal } etc. The initial value is a property only of properties, not of elements. I'm assuming by "virtual master CSS sheet" you don't mean the same thing as "browser default stylesheet". |
|
Now, to go into something, in FF, if you can, try: http://dorayme.netweaver.com.au/anything.html Open the web developer facilities and go to Edit CSS, stick in a style on body for line-height. I have Geneva 16 set for my normal sans-serif and if I set body {line-height: 1.36} I get about the same look as me not setting any line-height. What do you want to say about where the line height is being supplied from in the case? I am happy with my rich fictitious master sheet that is very far from the minimalist: http://www.w3.org/TR/CSS21/sample.html Note how grabbing all this and making an explicit set of styles in the head of anything.html, leaves the show virtually unchanged. Meaning partly that this example sheet is certainly very congruent with the one that FF actually operates with, it may even be exactly the same. I think it's mostly the same, yes. There is a menu item under Disable Styles that reads Browser Default Styles. I can't find that menu! Tick this and see what happens to the line height. Now it is a mingy thing! Where is this coming from? It is coming presumably from browser coding. It looks like 'line-height: 1;' To see this, open a couple of tabs. In one tick the Browser Default Styles, in the other simply add under Edit CSS, body {line-height:1;}. Compare by eye. You should get line-height: normal, which is usually a bit more than 1 (but depends on the font). And I would expect that to be the same as with browser default styles since there aren't any line-height rules in the suggested default stylesheet, which I think is very close to what the main browsers use. But perhaps what you have discovered is that this is not the case. |
#4
| ||||||||||
| ||||||||||
|
|
In article <slrnheo786.34o.spamspam (AT) bowser (DOT) marioworld>, Ben C <spamspam (AT) spam (DOT) eggs> wrote: ... On 2009-10-29, dorayme <doraymeRidThis (AT) optusnet (DOT) com.au> wrote: [...] ... A useful fiction to buy out of having to know the details of how browsers are made and operate: A browser produces an output only with a virtual master CSS sheet. In this sheet are all the styles down to as exact a value as possible. This sheet can be overridden of course by author or user sheets. Yes, although in this "virtual master CSS sheet", all selectors are just *. It would look this: * display { inline } * line-height { normal } etc. The initial value is a property only of properties, not of elements. I'm assuming by "virtual master CSS sheet" you don't mean the same thing as "browser default stylesheet". Well, no, not just this, but I did mean to include this latter. Basically, it is a complicated business always having to think, what is due to some actual but hidden default style sheet (a la the appendix one you mentioned) and what to hard wiring and what to hard-wiring-with-some values set by user preferences. Three different things here, all contributing to what you get when you use a browser in anger. Two or three technical levers complicating the understanding. JK says things about browsers setting too small a line-height. |
|
For me, this usefully means that the fictitious master sheet of many browsers has body {line-height: 1.2} (or thereabouts) and this is too small for some popular fonts. |
|
So override with at least 1.3 in author sheet. Simple enough. Try working all this out in terms of what exactly it is in each browser that sets 1.2 when it comes brand new out of the box. No thanks, would say the practical website designer. |
|
I was imagining a possible useful fiction that would free the practical web designer uninterested in actual browser wiring to have a simple model. The idea is a modernish one in that the browser is an engine that has no internal biases towards any sort of presentation at all. |
|
Without the virtual master CSS sheet, it simply cannot operate. It just sulks and does nothing like some widowers and widows do sans their partners. You cannot turn off this master sheet because it is its way into the world. The browser becomes a useful object in conjunction with a master CSS sheet. |
|
Under this idea, what are to make of the act of turning styles off? Well, for me, you can't turn all styles off, it is too absurd a concept. |
|
Remove all styles and you remove all meaning and usefulness. But all is not lost, it can mean turn off all author styles. It can mean, turn off many or all the default styles in one of the actual but hidden sheets. But it can't under my idea mean turn off the master sheet. I was imagining a super el basic sheet when I ticked the command that you are not seeing in your FF. |
|
Now, to go into something, in FF, if you can, try: http://dorayme.netweaver.com.au/anything.html Open the web developer facilities and go to Edit CSS, stick in a style on body for line-height. |
|
I have Geneva 16 set for my normal sans-serif and if I set body {line-height: 1.36} I get about the same look as me not setting any line-height. What do you want to say about where the line height is being supplied from in the case? |
|
You should get line-height: normal, which is usually a bit more than 1 (but depends on the font). And I would expect that to be the same as with browser default styles since there aren't any line-height rules in the suggested default stylesheet, which I think is very close to what the main browsers use. But perhaps what you have discovered is that this is not the case. I am hard pressed to quite fathom all the conversation between you and 'the boss' <g> but I would not mind putting in my $US25's worth - OK, I am not cheap, I have pride. When we are testing what is 'given' by the browser as default, I feel less confused when I think of this virtual master sheet. One can *easily* test for what the master styles are. Just override with author sheet in respect to a property *to see* if there is a change. If not, you have all you need to really know for the practical website making. Maybe under different pressures this idea is less than baked. But I go with it for the moment. |
#5
| |||
| |||
|
|
In article <slrnheo786.34o.spams... (AT) bowser (DOT) marioworld>, *Ben C <spams... (AT) spam (DOT) eggs> wrote: A sufficiently good mental model for everyone except Korpela is that the browser hard-wires somewhere the initial values for each > > property and then loads its own default stylesheet from somewhere > > just like any other stylesheet. JK says things about browsers setting too small a line-height. |
#6
| |||||||||||||
| |||||||||||||
|
|
If you want to think of initial values as coming from a fictitious sheet, which you can if you like, |
|
My motive is to get away from such a variable as "normal", to cash its value! |
|
In this sheet, there would simply be body {line-height: 1.2;} |
|
The point of the 'useful fiction' is to not worry where values are coming from, they are what actually confronts the website maker. |
|
The master sheet will be different for every browser but not that different. Although you and he might not know it, when JK says words to the effect that line-height is set too small..., this in effect means that in most browsers, the master sheet is giving too much below 1.3 to be comfortable with some popular fonts. |
|
So override with at least 1.3 in author sheet. Simple enough. Try working all this out in terms of what exactly it is in each browser that sets 1.2 when it comes brand new out of the box. No thanks, would say the practical website designer. OK, but it's worth clarifying what the spec means when it talks about "initial values". |
|
This is an excellent point and I am not meaning to dispute it. |
|
We recommend a used value for 'normal' between 1.0 to 1.2). Between indeed! It is either 1.bloody2 or not for the practical website maker! <g |
|
To me this sounds like the master CSS sheet contains the initial values. Yes, indeed, that is the idea. |
|
For example, if you wake up in the middle of the night in a bad sweat thinking your browser makes child divs of divs inline, you can easily test that this is not so by div div {display: block} and seeing if anything at all changes on the pages you might have had in mind as examples. |
|
So what do you make of FF showing a line-height of a mere 1 times font size when "Browser Default Style' is turned off? |
|
That is the initial value, no? |
|
I know, it is "normal" - but I am talking brass tacks, what it comes down to. |
#7
| ||||
| ||||
|
|
The "initial value" concept is simple enough and needs no clarification, but it may need a motivation, a description of _why_ initial values need to be set. Consider an XML document, for a change. As such, it is a data structure with some data in it, without any defined or suggested rendering. Now, if you add a reference to a CSS style sheet in it, the picture changes. You can set values for properties of elements as you like, but what happens to properties that you don't set at all? Without defined initial values, you would have to set them all - all CSS properties for all elements (though admittedly you could use the universal selector *) - in order to have a defined rendering. The initial values set simple, unimaginative rock-bottom defaults for everything. Of course they are partly quite inappropriate e.g. for headings, paragraphs, tables, etc., but it is the author's responsibility to set the properties that are essential to rendering - but he does not need to worry about setting _everything_. |
|
With HTML, the picture is different, since many elements have default renderings different from those corresponding to initial values in CSS. |
|
Thus, what you see (when not using any author or user style sheet) is the net effect of initial values, browser's style sheet, and browser idiosyncracies (like rendering elements outside the scope and control of CSS, as browser often do, and used to do even more often, with form fields. |
|
When authoring HTML documents, you cannot rely on initial values. |
#8
| |||
| |||
|
|
In this sheet, there would simply be body {line-height: 1.2;} or even, I don't mind and it makes no difference anyway, other things being equal, * {line-height: 1.2] The point of the 'useful fiction' is to not worry where values are coming from, they are what actually confronts the website maker. The master sheet will be different for every browser but not that different. Although you and he might not know it, when JK says words to the effect that line-height is set too small..., this in effect means that in most browsers, the master sheet is giving too much below 1.3 to be comfortable with some popular fonts. |
#9
| |||
| |||
|
|
Given that 1.2 is too low for some popular fonts, why set it to 1.2? |
|
I found when I had line- height:1.2, and selected Palatino in my browser, then printed my Web page, that the underscores under links sometimes didn't print because they interfered with the ascenders of the following line. |
|
Isn't "normal" better than a specific number because it lets the browser pick a line-height based on choice of font? |
#10
| |||
| |||
|
|
Mon, 02 Nov 2009 13:41:46 +1100 from dorayme doraymeRidThis (AT) optusnet (DOT) com.au>: In this sheet, there would simply be body {line-height: 1.2;} or even, I don't mind and it makes no difference anyway, other things being equal, * {line-height: 1.2] The point of the 'useful fiction' is to not worry where values are coming from, they are what actually confronts the website maker. The master sheet will be different for every browser but not that different. Although you and he might not know it, when JK says words to the effect that line-height is set too small..., this in effect means that in most browsers, the master sheet is giving too much below 1.3 to be comfortable with some popular fonts. Sorry, I don't understand. Given that 1.2 is too low for some popular fonts, why set it to 1.2? I found when I had line- height:1.2, and selected Palatino in my browser, then printed my Web page, that the underscores under links sometimes didn't print because they interfered with the ascenders of the following line. Isn't "normal" better than a specific number because it lets the browser pick a line-height based on choice of font? |
![]() |
| Thread Tools | |
| Display Modes | |
| |