RESOLVED CONFIGURATION CHANGED 89291
Webkit's stylesheetlist length value does not reflect sheets loaded via javascript
https://bugs.webkit.org/show_bug.cgi?id=89291
Summary Webkit's stylesheetlist length value does not reflect sheets loaded via javas...
Jesse Bounds
Reported 2012-06-16 16:15:00 PDT
According to the cssom spec (http://www.w3.org/TR/cssom/#stylesheetlist) the stylesheet length property list should always reflect exactly how many sheets are loaded in the HEAD section of the DOM. This test provides all the details: http://test.csswg.org/shepherd/testcase/ttwf-cssom-doc-ext-load-count/spec/CSSOM/author/boundsj/status/submitted/ (results of test here: http://test.csswg.org/shepherd/repository/tip/contributors/ttwf/boundsj/submitted/ttwf-cssom-doc-ext-load-count.html) In a nutshell, the stylesheetlist length property accurately reflects the loaded css sheet count in Firefox and Opera but not in Webkit and Chromium. The length property should update to show the correct count even if the sheets are not loaded in the head originally and are loaded with javascript. Firefox and Opera do this.
Attachments
Brent Fulgham
Comment 1 2022-07-13 10:14:43 PDT
It looks like Test 3 continues to fail.
Radar WebKit Bug Importer
Comment 2 2022-07-13 10:14:54 PDT
Ahmad Saleem
Comment 3 2024-01-30 10:31:58 PST
Safari 17.3 fails first two but passes last one while Chrome Canary 123 and Firefox Nightly 124 both matches each other and pass first two tests and fails last one. Test Case (Direct): http://test.csswg.org/shepherd/repository/bbc09e4c2581d270eb7b8b9704032d2b745c20e1/cssom-1/ttwf-cssom-doc-ext-load-count.html
Ahmad Saleem
Comment 4 2024-01-30 10:45:51 PST
NOTE - Safari Technology Preview 187 is matching Chrome Canary 123 and Firefox Nightly 124. Do we need to track it and this test seems to be also submitted and if it is not on WPT, I think we can just close since we are matching other browsers. @Karl & Brent - any input?
Ahmad Saleem
Comment 5 2024-01-30 10:54:48 PST
It is now WPT test case: https://wpt.fyi/results/css/cssom/ttwf-cssom-doc-ext-load-count.html?label=master&label=experimental&aligned&q=cssom Safari Technology Preview 187 is passing all tests. So marking this as 'RESOLVED CONFIGURATION CHANGED'. One less bug to track. :-)
Antti Koivisto
Comment 6 2024-01-31 00:30:00 PST
nice
Note You need to log in before you can comment on or make changes to this bug.