This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 22528 - The computedStyle attribute
Summary: The computedStyle attribute
Status: RESOLVED FIXED
Alias: None
Product: CSS
Classification: Unclassified
Component: CSSOM (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Simon Pieters
QA Contact: public-css-bugzilla
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-01 17:11 UTC by Ian 'Hixie' Hickson
Modified: 2013-08-20 01:37 UTC (History)
1 user (show)

See Also:


Attachments

Description Ian 'Hixie' Hickson 2013-07-01 17:11:41 UTC
http://dev.w3.org/csswg/cssom/#the-getstyleutils-interface

  "The computedStyle attribute must return [...] the computed value"
  "getComputedStyle([...]) [...] must [...] return [...] the resolved value"

That's just confusing. Please can we either have .computedStyle return the resolved style, or rename it?

Yes, the spec is confusing, but let's not let that confusion go into the API as well. It's far better for the API to be self-consistent and disagree with the formal terminology, than it is for the API to follow our evolving terminology.

Same reason we use URL in all our APIs and syntax, rather than the evolving term.
Comment 1 Simon Pieters 2013-08-06 12:27:41 UTC
I don't mind calling it rawComputedStyle. Any other candidates?
Comment 2 Simon Pieters 2013-08-12 19:51:44 UTC
https://dvcs.w3.org/hg/csswg/rev/59be33863762
Comment 3 Ian 'Hixie' Hickson 2013-08-20 01:37:32 UTC
It's a bit better, but still confusing, IMHO. I don't have a compellingly better suggestion, though.