"disabled=true" not working in link for stylesheet at initial load
Categories
(Core :: DOM: CSS Object Model, defect, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox68 | --- | fixed |
People
(Reporter: amnon.david, Assigned: emilio)
References
Details
(Keywords: dev-doc-complete, Whiteboard: [webcompat][wptsync upstream])
Attachments
(1 file)
Reporter | ||
Updated•8 years ago
|
Comment 2•8 years ago
|
||
Comment 3•8 years ago
|
||
Updated•8 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
Assignee | ||
Updated•6 years ago
|
Assignee | ||
Comment 5•6 years ago
|
||
WebKit / Blink behavior for <link rel="stylesheet" disabled>
is a bit fishy, but I'll take a look.
Assignee | ||
Comment 6•6 years ago
|
||
I proposed something in that HTML spec issue.
Assignee | ||
Comment 7•6 years ago
|
||
...instead of forwarding to the sheet like HTMLStyleElement does.
I've proposed this behavior in:
https://github.com/whatwg/html/issues/3840#issuecomment-480894419
I think this is one of the sane behaviors we can have, what Blink / WebKit do
makes no sense to me.
Alternative potentially-sane behavior is making the initial value of the
stylesheet's disabled bit the same as the content attribute, and both reflect
and forward the attribute from the setter.
That means that setAttribute does something different than setting disabled
,
which means that you can get into all sorts of funny states when reloading the
sheet... So I rather not do that.
Updated•5 years ago
|
Comment 9•5 years ago
|
||
Backed out changeset ef991fe893a4 (Bug 1281135) for failures in browser_bug839103.js
Push with failures: https://treeherder.mozilla.org/#/jobs?repo=autoland&resultStatus=testfailed%2Cbusted%2Cexception&selectedJob=241381337&revision=ef991fe893a435f4416bde5f518135655a9740e1
Failure log: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=241381337&repo=autoland&lineNumber=1699
Backout: https://hg.mozilla.org/integration/autoland/rev/0ca59c12ed2a1c6d5aec3cd06b274a18cfab26e8
Assignee | ||
Updated•5 years ago
|
Comment 10•5 years ago
|
||
Comment 11•5 years ago
|
||
bugherder |
Comment 12•5 years ago
|
||
Comment 13•5 years ago
|
||
bugherder |
Comment 15•5 years ago
|
||
Documentation has been updated:
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link
Changes include moving the disabled
attribute from the obsolete properties section up into the main list, and updating the text to describe the behavior implemented by this spec change.
BCD data update has been submitted and is pending review:
https://github.com/mdn/browser-compat-data/pull/4323
Reviews appreciated; feel free to correct any errors yourself or point them out to me.
Assignee | ||
Comment 16•5 years ago
|
||
Thanks Eric, I did some edits (please review if you find some time as English is not my first language), and left a few comments in BCD regarding a misunderstanding between what the old and new behavior is :)
Comment 17•5 years ago
|
||
:emilio -- I am working on an update to the BCD patch which I will submit shortly. I have read your changes to the article and think I see what you're saying there. I did rewrite the text to be more specific on a couple of things (I think) and would appreciate it if you would read it again to be sure I didn't screw up my rewrite. Otherwise, I'll restore your original text and just make minor grammatical tweaks.
Thanks for jumping on the reviewing right away! I very much appreciate it!
Description
•