Sign in
chromium
/
external
/
w3c
/
web-platform-tests
/
refs/heads/active-script-webidl-callbacks
/
.
/
html
/
semantics
/
document-metadata
/
interactions-of-styling-and-scripting
/
stylesheet.py
blob: d5ae5b9ccad74cfe9233c9d296f991e637749268 [
file
] [
log
] [
blame
] [
edit
]
from
time
import
sleep
def
main
(
request
,
response
):
if
b
"delay"
in
request
.
GET
:
delay
=
int
(
request
.
GET
[
b
"delay"
])
sleep
(
delay
)
if
b
"stylesNotMatchingEnvironment"
in
request
.
GET
:
return
u
'h1 {color: brown;}'
else
:
return
u
'h1 {color: purple;}'