Closed
Bug 1376729
Opened 8 years ago
Closed 5 months ago
disabled-attribute on link-element does not take effect
Categories
(Core :: DOM: CSS Object Model, defect, P3)
Tracking
()
RESOLVED
DUPLICATE
of bug 1281135
| Tracking | Status | |
|---|---|---|
| firefox57 | --- | wontfix |
People
(Reporter: info, Unassigned)
Details
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36
Steps to reproduce:
I added a link-element for a stylesheet in my html head and set the attribute disabled.
<link id="stylesheet" rel="stylesheet" href="..." disabled>
Actual results:
The stylesheet takes effect and all styles will applied until I disabled the link element with javascript:
document.getElementById('stylesheet').disabled = false
Expected results:
Firefox should support disabling stylesheets or simply should let it be. If I do it with javascript or with html should be the same.
I prefer to support disabling stylesheets.
Updated•8 years ago
|
Component: Untriaged → DOM: CSS Object Model
Product: Firefox → Core
Updated•8 years ago
|
Priority: -- → P3
Comment 1•8 years ago
|
||
https://drafts.csswg.org/cssom/#concept-css-style-sheet-disabled-flag
Latest spec draft states disabled is unset by default. I can imagine use cases for having stylesheets disabled in the markup though, and I like the suggestion.
Filed the spec issue: https://github.com/w3c/csswg-drafts/issues/1799
status-firefox57:
--- → wontfix
Updated•3 years ago
|
Severity: normal → S3
Updated•5 months ago
|
Status: UNCONFIRMED → RESOLVED
Closed: 5 months ago
Duplicate of bug: 1281135
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•