Open timonson opened 4 years ago
When serving an index.html file with live-server the CSS selector :last-child doesn't select an element.
:last-child
live-server
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <title>'index.html'</title> <link rel="icon" href="data:," /> <style> body div:last-child { background: blue; } </style> </head> <body> <div id="inlineWrapper"> <a href="#" target="_blank">Anchor Text</a> </div> <div id="blockWrapper"> <a href="#" target="_blank">Anchor Text</a> </div> </body> </html>
For more information, look here please: https://github.com/ritwickdey/vscode-live-server/issues/174
same problem here
Issue description
When serving an index.html file with live-server the CSS selector
:last-child
doesn't select an element.Software details
live-server
:live-server
live-server
version: 1.2.1Example