<script> tag causes :first-child rule to fail to match Acid3 See attached test case. Compare with Opera's rendering.
Created attachment 18617 [details] test case
The <script> should be in the implicit <head> created by <style>. Not sure why that didn't happen. Investigating.
Created attachment 18622 [details] Patch to fix the bug. Existing layout tests change and so no new ones are required.
Comment on attachment 18622 [details] Patch to fix the bug. r=me
Fixed in r29775-29777.