Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

189
Views
Chrome ignora `filter: hue-rotate(...)` si el argumento es `attr(...)`

He configurado un sitio pequeño donde el color de fondo cambia a medida que se desplaza. Usé el siguiente código para establecer un atributo data-scroll en el elemento html :

 const debounce = (fn) => { let frame; return (...args) => { if (frame) cancelAnimationFrame(frame); frame = requestAnimationFrame(() => fn(...args)); }; }; const storeScroll = () => { document.documentElement.dataset.scroll = window.scrollY; }; document.addEventListener('scroll', debounce(storeScroll), { passive: true }); storeScroll();

y el siguiente css para cambiar el color de fondo:

 h1 { /* Add some height to the page */ padding-bottom: 10000000px; } html { background: #f00; filter: hue-rotate(attr(data-scroll)); }

Chrome DevTools me muestra esto , sin información.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!