Re: Font Family failure

On 14/01/2017 05:12, Wayne Dick wrote:
> I found a test page, and applied the CSS.
>
> * {
>      font-family: verdana !important;
> }
>
> i, em, dfn {
>      font-family: "Courier New" !important;
> }
>
> h1, h2, h3, h4, h5, h6 {
>     font-family: "comic sans MS" !important;
>     color: red !important;
>   }
>
> First I used Stylsih. An h1 did not change font family. So, then I
> inserted the this as the last element of the <head> element using the
> inspector. The h1 didn't change to comic sans.
>
> The website is:
> https://www.w3.org/WAI/GL/low-vision-a11y-tf/wiki/Line_Length
>
>
> Whoever wrote this site won't allow a change of font family even if the
> change is the last author font family specification set to !important.

The problem is with your CSS, not with the page. This is not something 
you can pin on the page author.

Taking that first "Line Length" heading, the markup for that is

<h1 id="firstHeading" class="firstHeading" lang="en"><span 
dir="auto">Line Length</span></h1>

So a <span> nested inside an <h1>.

Your custom CSS does set all h1, h2, h3 etc to comic sans, but then your 
universal selector sets everything else to verdana. So the <h1> is comic 
sans, but then then <span> inside the heading is set to verdana.

P
-- 
Patrick H. Lauke

www.splintered.co.uk | https://github.com/patrickhlauke
http://flickr.com/photos/redux/ | http://redux.deviantart.com
twitter: @patrick_h_lauke | skype: patrick_h_lauke

Received on Saturday, 14 January 2017 10:24:48 UTC