summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/semantics/document-metadata/interactions-of-styling-and-scripting/stylesheet.py
blob: d5ae5b9ccad74cfe9233c9d296f991e637749268 (plain)
1
2
3
4
5
6
7
8
9
10
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;}'