:last-child and :last-of-type are not working when open with live server
See original GitHub issueI’m submitting a…
[ ] Regression (a behavior that used to work and stopped working in a new release)
[x] Bug report <!-- Please search GitHub for a similar issue or PR before submitting -->
[ ] Feature request
[ ] Documentation issue or request
[ ] Other: <!-- Please describe: -->
Current behavior
css pseudo-classes :last-child and :last-of-type are not working with div element when open with live server
index.html
main.css
On live server (no border on last div element)
Expected behavior
Open index.html directly (there is a border on last div element )
Environment
Browser:
- [X] Chrome (desktop) version 67.0.3396.99
- [ ] Firefox version XX
- [ ] Safari (desktop) version XX
- [ ] IE version XX
- [ ] Edge version XX
--
For Tooling issues:
- Live Server: 5.1.1
- Platform: Windows 10 64 bits
- Visual Studio Code: 1.25.1
Others
Issue Analytics
- State:
- Created 5 years ago
- Comments:10 (3 by maintainers)
Top Results From Across the Web
last-child and :last-of-type not working as intended [duplicate]
When I place the above CSS selector into Chrome's Developer Tools, it selects the last-child as intended but doesn't actually do anything -...
Read more >Why Visual Studio Code Live Server Not Working? - YouTube
Live Server extension works fine with most of the machines but some of you might face an issue, it's not working perfectly on...
Read more >Web scraping using Python: requests and lxml - GitHub Pages
It facilitates extracting the text, attribute values or HTML for a particular element. It knows how to handle badly-formed HTML (such as an...
Read more >visited - CSS-Tricks
I'm a learning newbie and I've spent the best part of a morning trying to work out why my “visited” links would not...
Read more >How to retrieve data using HTTP with Observables in Angular
Most applications obtain data from the backend server. They need to make an HTTP GET request. In this article, we'll look at making...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This lines are not working with live server.
I was looking for someone with the same problem, and that’s exactly it, when opened without Live Server it works correctly.