[Webkit-unassigned] [Bug 20181] New: font shorthand with inherit keyword incorrectly parsed and rendered

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Jul 26 16:21:45 PDT 2008


https://bugs.webkit.org/show_bug.cgi?id=20181

           Summary: font shorthand with inherit keyword incorrectly parsed
                    and rendered
           Product: WebKit
           Version: 525.x (Safari 3.1)
          Platform: PC
               URL: http://www.gtalbot.org/BrowserBugsSection/MSIE7Bugs/font
                    -shorthand-inherit.html
        OS/Version: Windows XP
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: CSS
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: browserbugs at gtalbot.org


The following consecutive CSS rules

 h1 {font-size: 32px;}

 h1 {font: 96px inherit;}

should be parsed and only the 
h1 {font-size: 32px;} 
rule should apply. A parsing error should be found for 
h1 {font: 96px inherit;}
rule.

Steps to reproduce:
1- Load provided URL

Actual results in Safari 3.1.2 build 525.21
The rendered text will be using a font-size of 96px 

Expected results
The rendered text should be using a font-size of 32px

Notes:
- Section 15.8 of CSS 2.1
http://www.w3.org/TR/CSS21/fonts.html#font-shorthand
only allows 
font: inherit 
as correct
- CSS validator will report
h1       Value Error : font  Too many values or values are not recognized : 
96px inherit 
- I searched for a duplicate and did not find any


-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list