mirror of
https://github.com/servo/servo.git
synced 2025-08-09 07:25:35 +01:00
Handle dynamic addition of attributes
Handles dynamic addition of attributes to <link rel=stylesheet> elements. Fixes #3361
This commit is contained in:
parent
ab17d31bbf
commit
8e77422d8e
4 changed files with 52 additions and 19 deletions
|
@ -129,6 +129,7 @@ flaky_gpu,flaky_linux == acid2_noscroll.html acid2_ref_broken.html
|
|||
== float_table_a.html float_table_ref.html
|
||||
== table_containing_block_a.html table_containing_block_ref.html
|
||||
== link_style_order.html link_style_order_ref.html
|
||||
== link_style_dynamic_addition.html link_style_dynamic_addition_ref.html
|
||||
== percent_height.html percent_height_ref.html
|
||||
== inline_block_with_margin_a.html inline_block_with_margin_ref.html
|
||||
== table_padding_a.html table_padding_ref.html
|
||||
|
|
11
tests/ref/link_style_dynamic_addition.html
Normal file
11
tests/ref/link_style_dynamic_addition.html
Normal file
|
@ -0,0 +1,11 @@
|
|||
<html>
|
||||
<head></head>
|
||||
<body>
|
||||
<script>
|
||||
var link = document.createElement("link");
|
||||
document.head.appendChild(link);
|
||||
link.setAttribute("rel", "stylesheet");
|
||||
link.setAttribute("href", "data:text/css,body{background:green}");
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
7
tests/ref/link_style_dynamic_addition_ref.html
Normal file
7
tests/ref/link_style_dynamic_addition_ref.html
Normal file
|
@ -0,0 +1,7 @@
|
|||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" href="data:text/css,body{background:green}">
|
||||
</head>
|
||||
<body>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue