-
Notifications
You must be signed in to change notification settings - Fork 0
Style testing
karak edited this page Apr 28, 2018
·
4 revisions
It is useful to test <style>
section easily.
We could have special shorthands to test 'show' directive show
and other utility.
We should construct the APIs on computedStyle
or runtimeStyle
API to make them meaningful.
Ideally, we could do up to their appearance in clients' sight. Are they in the visible area on screen? Are their contents overflown? …etc.
Now, we must fight against riot itself, for Riot inject Now, fixed.<style>
section into the global document. So, we must find the way to destroy those garbages on riot.unregister
to keep reproducibility of our tests.