Bug 89291
| Summary: | Webkit's stylesheetlist length value does not reflect sheets loaded via javascript | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Jesse Bounds <jesse> |
| Component: | CSS | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED CONFIGURATION CHANGED | ||
| Severity: | Normal | CC: | aestes, ahmad.saleem792, ap, bfulgham, eoconnor, jesse, karlcow, koivisto, mike, mmaxfield, shanestephens, simon.fraser, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | 528+ (Nightly build) | ||
| Hardware: | Mac | ||
| OS: | OS X 10.7 | ||
| URL: | http://test.csswg.org/shepherd/testcase/ttwf-cssom-doc-ext-load-count/spec/CSSOM/author/boundsj/status/submitted/ | ||
Jesse Bounds
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 | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Brent Fulgham
It looks like Test 3 continues to fail.
Radar WebKit Bug Importer
<rdar://problem/96959348>
Ahmad Saleem
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
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
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
nice