I think we had a miscommunication.
Style sheet file contents did not change.
You did change the extension.
HTML file without DOCTYPE accepted and used css files with .php extension.
HTML file with DOCTYPE would not use css files with .php extenstion.
Right?