mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Implement disabled
attribute for <link rel="stylesheet">
(#36446)
Adds support for both the content and the IDL attribute. Note this doesn't cover dynamic updates to `document.styleSheets` and the owner node of the sheet. Testing: Covered by WPT Fixes: #26739 Signed-off-by: Oriol Brufau <obrufau@igalia.com>
This commit is contained in:
parent
e62aecb103
commit
2d40fb7fe2
9 changed files with 46 additions and 28 deletions
|
@ -214,7 +214,7 @@ impl FetchResponseListener for StylesheetContext {
|
|||
document.quirks_mode(),
|
||||
));
|
||||
|
||||
if link.is_alternate() {
|
||||
if link.is_effectively_disabled() {
|
||||
sheet.set_disabled(true);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue