Bug 16982

Summary: <script> tag causes :first-child rule to fail to match in Acid3
Product: WebKit Reporter: Eric Seidel (no email) <eric>
Component: CSSAssignee: Dave Hyatt <hyatt>
Status: RESOLVED FIXED    
Severity: Normal    
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Mac   
OS: OS X 10.4   
Attachments:
Description Flags
test case
none
Patch to fix the bug. mitz: review+

Description Eric Seidel (no email) 2008-01-23 00:18:51 PST
<script> tag causes :first-child rule to fail to match Acid3

See attached test case.  Compare with Opera's rendering.
Comment 1 Eric Seidel (no email) 2008-01-23 00:19:07 PST
Created attachment 18617 [details]
test case
Comment 2 Dave Hyatt 2008-01-23 00:23:51 PST
The <script> should be in the implicit <head> created by <style>.  Not sure why that didn't happen.  Investigating.

Comment 3 Dave Hyatt 2008-01-23 12:37:09 PST
Created attachment 18622 [details]
Patch to fix the bug.

Existing layout tests change and so no new ones are required.
Comment 4 mitz 2008-01-23 12:40:24 PST
Comment on attachment 18622 [details]
Patch to fix the bug.

r=me
Comment 5 Dave Hyatt 2008-01-24 13:53:42 PST
Fixed in r29775-29777.