Bug 16982 - <script> tag causes :first-child rule to fail to match in Acid3
Summary: <script> tag causes :first-child rule to fail to match in Acid3
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac OS X 10.4
: P2 Normal
Assignee: Dave Hyatt
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-23 00:18 PST by Eric Seidel (no email)
Modified: 2008-01-24 13:53 PST (History)
0 users

See Also:


Attachments
test case (1.13 KB, text/html)
2008-01-23 00:19 PST, Eric Seidel (no email)
no flags Details
Patch to fix the bug. (608 bytes, patch)
2008-01-23 12:37 PST, Dave Hyatt
mitz: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.