Re: shortcut "font" in CSS

2019-06-22 Thread John-Mark Bell

On 22/06/2019 19:09, Jim Nagel wrote:

Does the shortcut version of the "font" property in CSS work properly in
Netsurf?


Yes, it does. You can find extensive test data at [1].


This CSS gives me the display I want:
  font-family: serif;
  font-style: italic;
  font-weight: bold;
  font-size: 24pt;

This single CSS expression is supposed to be equivalent, but Netsurf
ignores it:
  font: serif italic bold 24pt;

Or am I failing to understand the spec?


I'm afraid so. The spec[2,3] says that (assuming none of the 
single-token values are specified -- e.g. caption or inherit):


* font-style, font-variant, font-weight appear first (in any order), if
  required
* font-size comes next (and is always required)
* an optional line-height may be specified next
* font-family appears last

So, given the long-hand you have specified above, you want something like:

  font: bold italic 24pt serif;


J.

1. https://git.netsurf-browser.org/libcss.git/tree/test/data/parse2/font.dat
2. https://www.w3.org/TR/CSS21/fonts.html#font-shorthand
3. https://www.w3.org/TR/css-fonts-3/#font-prop



Re: 3.9 Release

2019-06-22 Thread Vincent Sanders
On Sat, Jun 22, 2019 at 05:36:39PM +0100, Richard Torrens (lists) wrote:
> In article <20190615175934.gh14...@kyllikki.org>,
>Vincent Sanders  wrote:
> > A lot of features and bug fixes have happened since the 3.8 release so
> > I am considering producing a 3.9 soon.
> 
> A (hopefully small) point:  for some time now Netsurf seems to be picking
> up only the first css link.

Please could you create an issue on the tracker with some actual
details? or this simply will never be looked at

Futher if you are refering to http://www.torrens.org/ (btw please
consider https, https://letsencrypt.org/ is a brilliant idea) you have
two stylesheet links in the head element

http://css.torrens.org/main; type="text/css">
http://css.torrens.org/navbar.css; type="text/css">

the first is garbage relative link and all browsers i tried it with
treat it as such and ignore it.

> 
> On all my www pages I have two css links - the second one defines the
> header and is ignored.

on other pages (i picked cats for an example) the link elements are:

http://css.torrens.org/styles1.css; 
type="text/css">
http://css.torrens.org/navbar.css; type="text/css">

and the styles from both are used in NetSurf causing the header
bar contact, home and search backgrounds to be coloured (for example)

> 
> But great work what has been done. Thanks for that.
> 
> -- 
> Richard Torrens.
> http://www.Torrens.org for genealogy, natural history, wild food, walks, cats
> and more!
> 
> 

-- 
Regards Vincent
http://www.kyllikki.org/



shortcut "font" in CSS

2019-06-22 Thread Jim Nagel
Does the shortcut version of the "font" property in CSS work properly in 
Netsurf?

This CSS gives me the display I want:
 font-family: serif;
 font-style: italic;
 font-weight: bold;
 font-size: 24pt;

This single CSS expression is supposed to be equivalent, but Netsurf 
ignores it:
 font: serif italic bold 24pt;

Or am I failing to understand the spec?

Using #4682 and many previous builds.

-- 
Jim Nagelwww.archivemag.co.uk





Re: 3.9 Release

2019-06-22 Thread Richard Torrens (lists)
In article <20190615175934.gh14...@kyllikki.org>,
   Vincent Sanders  wrote:
> A lot of features and bug fixes have happened since the 3.8 release so
> I am considering producing a 3.9 soon.

A (hopefully small) point:  for some time now Netsurf seems to be picking
up only the first css link.

On all my www pages I have two css links - the second one defines the
header and is ignored.

But great work what has been done. Thanks for that.

-- 
Richard Torrens.
http://www.Torrens.org for genealogy, natural history, wild food, walks, cats
and more!