-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Should stylesheets be obtained in documents without a browsing context? #1495
Comments
I mean, per spec, they should not be; I think that's pretty clear. Do you have evidence browsers do things differently? |
Where does the spec say they shouldn't? |
Ah, I see, sorry I misread :(. I guess per spec they should be fetched. Again, is that not what browsers do? |
None of Gecko, Blink, or Webkit fetch the CSS file when executing |
I see! Sounds like a spec bug then. We should definitely add a requirement that it be in a browsing context, then. |
@igrigorik presumably this applies equally for the various preloading types? |
On a related note, for
|
Quick test for |
Don't load stylesheets in documents without browsing contexts Per whatwg/html#1495, this fixes the most commonly reported panic in nightlies by making us match what other browsers do. --- - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #12047 (github issue number if applicable). - [X] There are tests for these changes OR <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/12241) <!-- Reviewable:end -->
Going to wait on working on this until #1483 is merged, to avoid conflicts. |
This fixes #1495 by changing the "appropriate times to obtain the resource" to require that the <link rel="stylesheet"> element be in a document that has a browsing context.
This fixes #1495 by changing the "appropriate times to obtain the resource" to require that the <link rel="stylesheet"> element be in a document that has a browsing context.
This fixes #1495 by changing the "appropriate times to obtain the resource" to require that the <link rel="stylesheet"> element be in a document that has a browsing context.
This fixes whatwg#1495 by changing the "appropriate times to obtain the resource" to require that the <link rel="stylesheet"> element be in a document that has a browsing context.
…wsing contexts (from jdm:multiple-stylesheets); r=notriddle Per whatwg/html#1495, this fixes the most commonly reported panic in nightlies by making us match what other browsers do. --- - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #12047 (github issue number if applicable). - [X] There are tests for these changes OR Source-Repo: https://github.com/servo/servo Source-Revision: 61491447e21655a1eca01a85797b25a254525d98 UltraBlame original commit: 3d72d0ed4143696590799c52cc0f51697fc8f2f0
…wsing contexts (from jdm:multiple-stylesheets); r=notriddle Per whatwg/html#1495, this fixes the most commonly reported panic in nightlies by making us match what other browsers do. --- - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #12047 (github issue number if applicable). - [X] There are tests for these changes OR Source-Repo: https://github.com/servo/servo Source-Revision: 61491447e21655a1eca01a85797b25a254525d98 UltraBlame original commit: 3d72d0ed4143696590799c52cc0f51697fc8f2f0
…wsing contexts (from jdm:multiple-stylesheets); r=notriddle Per whatwg/html#1495, this fixes the most commonly reported panic in nightlies by making us match what other browsers do. --- - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #12047 (github issue number if applicable). - [X] There are tests for these changes OR Source-Repo: https://github.com/servo/servo Source-Revision: 61491447e21655a1eca01a85797b25a254525d98 UltraBlame original commit: 3d72d0ed4143696590799c52cc0f51697fc8f2f0
https://html.spec.whatwg.org/multipage/semantics.html#link-type-stylesheet:concept-link-obtain lists a bunch of conditions for obtaining a stylesheet based on whether the link element is in a document or not. What about documents without browsing contexts?
The text was updated successfully, but these errors were encountered: