<!DOCTYPE html> <title>Don't crash when using ::first-line and <input type=image></title> <link rel="help" href="https://crbug.com/1486128"> <style> * { display:initial; } *::first-line { color:green; } </style> <div>PASS if no crash</div> <input type="image">