00:12
<Hixie>
i am embarassingly incompetent at remembering the css box model these days
00:12
Hixie
tries to remember how inline boxes work
00:15
<TabAtkins>
What specifically are you trying to remember?
00:21
<Hixie>
TabAtkins: i need to turn a tree of WebSRT Node Objects (http://www.whatwg.org/specs/web-apps/current-work/complete.html#websrt-node-object) into a tree of CSS boxes
00:22
<llrcombs>
How do I detect if a <video> is playing?
00:22
<TabAtkins>
If a particular video is playing, or if a video *somewhere* on the page is playing?
00:23
<llrcombs>
a particular <video>
00:24
<TabAtkins>
I think just check that video.paused and video.ended are both false.
00:25
<TabAtkins>
http://www.whatwg.org/specs/web-apps/current-work/multipage/video.html#playing-the-media-resource
00:25
<TabAtkins>
Read the paragraph "A media element is said to be potentially playing..."
00:26
<llrcombs>
ahh, paused
00:26
<llrcombs>
erm, wait
00:26
<llrcombs>
is there a reliable method of actually asking "is this playing"?
00:27
<TabAtkins>
llrcombs: No way of asking that directly. I gave one that works well enough - the spec itself describes a few more things you can check as well.
00:27
<TabAtkins>
Hixie: So what exactly is the problem?
00:28
<Hixie>
TabAtkins: not sure even where to begin in doing that, but that's just because i haven't read the css specs again yet :-)
00:31
<TabAtkins>
I'd think you'd handle it in the obvious way - test, italic, bold, ruby, and ruby text nodes all create inline boxes. That's it.
00:32
<Hixie>
well there have to be block boxes and ruby boxes and line boxes and the like
00:32
<TabAtkins>
Each group gets wrapped in a block box.
00:33
<TabAtkins>
Ruby boxes are just inline boxes with appropriate ruby display values set.
00:33
<Hixie>
inline boxes with display values set aren't inline boxes :-P
00:33
<TabAtkins>
Bah, semantics.
00:33
<TabAtkins>
Are you going in deeply enough to need to describe lineboxes?
00:34
<Hixie>
i have to go in all the way, don't i?
00:35
<Hixie>
not sure how else to make the spec well-defined
00:36
<TabAtkins>
Hm, I guess, since you're choosing to not require an existing html engine, which could just display them normally.
00:37
<Hixie>
"normally"?
00:37
<Hixie>
if it was a disconnected DOM tree I'd still have to hook into the CSS model pretty deeply
00:37
<Hixie>
only if it was a whole document would it be easy
00:39
<TabAtkins>
Hmm, I guess so.
02:36
<boblet>
Hixie: what was the reason behind no XML literals in microdata? no compelling use cases?
02:47
<TabAtkins>
boblet: Heading home for the weekend now, but I sent you a draft of my post via twitter.
02:50
<boblet>
TabAtkins: sweet! will check it out
10:51
<annevk>
how can you check in wireshark what the server transmits back?
10:51
<annevk>
I only see the outgoing part of the request
10:59
<annevk>
hmm, used web-sniffer.net for now
11:00
<Matjas>
hurl.it is also pretty good
11:50
<Philip`>
annevk: Wireshark ought to show traffic in both directions, but it may depend on what network interface you're monitoring
11:50
<Slaanesh>
annevk: You might be using the wrong filter
11:58
<annevk>
I filtered on "http"
11:59
<Slaanesh>
I usually use "port 80" and that shows both ways
13:13
<annevk>
no luck here btw
13:13
<annevk>
but it's not much of a problem anymore
13:13
<annevk>
though it would be nice to know
13:16
<Slaanesh>
Are you checking a wireless connection?
13:16
<annevk>
no
18:10
<llrcombs>
is it possible to get the current width of the actual video playing in a <video> (i.e. not including the pillarbox)?