Questions tagged [cssom]

CSSOM defines APIs (including generic parsing and serialization rules) for Media Queries, Selectors, and CSS itself.

The core features of the CSSOM are oriented towards providing basic capabilities to author-defined scripts to permit access to and manipulation of style related state information and processes.

Documentation: http://dev.w3.org/csswg/cssom/

64 questions
0
votes
0 answers

Does the order of your CSS properties effect rendering time?

Quick question which I suppose is trivial. Let's say I write the following CSS: .card{ width: 200px, height: 500px } Now I open the page up in Chrome and look at the "computed" tab whilst I have .card selected and it's arranged in alphabetical…
Josh Dempsey
  • 253
  • 1
  • 2
  • 10
-1
votes
2 answers

Where is the best place to put external css files (performance-wise)?

I have read about the render tree and how it's made out of the CSSOM and DOM trees and I want to achieve the optimal UI performance on my sites. I'm wondering - what are the best practices that I can provide to the external CSS files so it will…
Ran Turner
  • 14,906
  • 5
  • 47
  • 53
-1
votes
1 answer

onmouseover function() to access all css background-image url() in HTML document?

const bg = document.getElementsByTagName("*"); bg.forEach(bgi => { const b = bgi.computedStyleMap(); const c = b.get('background-image'); c.addEventListener("mouseover", e => { const img = e.target.c; if (c) location.assign(c); …
-1
votes
1 answer

After downloading the CSS, does CSS parsing and DOM parsing go side by side

What i know when browser sees a script tag in while parsing html it stops its execution and get the script executes it and then again starts parsing the dom. Does the same thing happen for CSS as well? or can CSSOM parsing and dom parsing goes side…
Ashok
  • 487
  • 5
  • 22
1 2 3 4
5