New issue
Advanced search Search tips

Issue 667132 link

Starred by 1 user

Issue metadata

Status: ExternalDependency
Owner: ----
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 3
Type: Feature



Sign in to add a comment

Adding <style> with disabled = true flips it back to disabled = false

Project Member Reported by phistuck@gmail.com, Nov 20 2016

Issue description

UserAgent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.99 Safari/537.36

Steps to reproduce the problem:
1. Enter this in the Developer Tools on this page -
var css = 'body { transform: rotate(10deg) }';
var style = document.createElement('style');
style.innerHTML = someCSS;
style.disabled = true;
document.head.appendChild(style);

What is the expected behavior?
The style sheet is not applied to the document. The page does not rotate.

What went wrong?
The style sheet is applied to the document. The page rotates.

Did this work before? N/A 

Does this work in other browsers? Yes

Chrome version: 54.0.2840.99  Channel: stable
OS Version: 6.1 (Windows 7, Windows Server 2008 R2)
Flash Version: 

I tested Internet Explorer 11. It behaves as expected.
 
Status: Untriaged (was: Unconfirmed)

Comment 2 by tkent@chromium.org, Nov 24 2016

Components: -Blink>DOM Blink>HTML
Labels: -Pri-2 Pri-3
Status: Available (was: Untriaged)
Confirmed.
Lower priority because 'disabled' IDL attribute is not standardized.

Comment 3 by phistuck@gmail.com, Nov 24 2016

Oops. Corrected code (though you figured it out already) -
var css = 'body { transform: rotate(10deg) }';
var style = document.createElement('style');
style.innerHTML = css;
style.disabled = true;
document.head.appendChild(style);

Firefox behaves like Chrome.

I file an HTML issue for the missing attribute -
https://github.com/whatwg/html/issues/2092
Project Member

Comment 4 by sheriffbot@chromium.org, Nov 24 2017

Labels: Hotlist-Recharge-Cold
Status: Untriaged (was: Available)
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue.

Sorry for the inconvenience if the bug really should have been left as Available. If you change it back, also remove the "Hotlist-Recharge-Cold" label.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot

Comment 5 by kochi@chromium.org, Nov 27 2017

Labels: -Type-Bug Type-Feature
Status: Available (was: Untriaged)
The issue (in comment#3, github #2092) was merged to
https://github.com/whatwg/html/issues/1081
and is still open.

Once the upstream bug is settled and precisely specified, someone
can take this.
Project Member

Comment 6 by sheriffbot@chromium.org, Nov 27

Status: Untriaged (was: Available)
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue.

Sorry for the inconvenience if the bug really should have been left as Available.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Labels: -Hotlist-Recharge-Cold
Status: ExternalDependency (was: Untriaged)
https://www.chromestatus.com/metrics/feature/timeline/popularity/812

Sign in to add a comment