Explorar o código

Add browser rect queries, table rowspan and form controls

Johannes Zellner hai 1 semana
pai
achega
e0e19e2b34

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 846 - 69
browser.c


+ 121 - 17
browser_html.c

@@ -26,6 +26,11 @@ const char *br_bg_image_url(unsigned int idx)
 	return bg_urls[idx];
 }
 
+unsigned int br_root_font_px(void)
+{
+	return (unsigned int)root_font_px;
+}
+
 /* ---- tag table ---- */
 
 struct tag_name {
@@ -2216,6 +2221,8 @@ enum {
 	PROP_ALIGN, PROP_UNDERLINE,
 	PROP_DISPLAY, PROP_MT, PROP_MR, PROP_MB, PROP_ML,
 	PROP_PT, PROP_PR, PROP_PB, PROP_PL,
+	PROP_MT_U, PROP_MR_U, PROP_MB_U, PROP_ML_U,
+	PROP_PT_U, PROP_PR_U, PROP_PB_U, PROP_PL_U,
 	PROP_BORDER_W, PROP_BORDER_COLOR,
 	PROP_BW_T, PROP_BW_R, PROP_BW_B, PROP_BW_L,
 	PROP_BC_T, PROP_BC_R, PROP_BC_B, PROP_BC_L,
@@ -2525,8 +2532,75 @@ static int parse_len(const char *s, unsigned int len, unsigned int *pos)
  * can centre a box with a definite width. */
 #define CSS_LEN_AUTO (-32768)
 
+/* A box length with its unit preserved for layout-time resolution:
+ * 0 px, 1 %, 2 em, 3 rem, 4 auto.  The raw value is hundredths for %/em/
+ * rem and whole pixels for px. */
+static int parse_css_len(const char *s, unsigned int len,
+			 unsigned int *pos, int *unit)
+{
+	unsigned int i = *pos;
+	int sign = 1;
+	long v = 0;
+	int digits = 0, frac = 0;
+
+	*unit = 0;
+	while (i < len && is_space(s[i]))
+		i++;
+	if (i < len && (s[i] == '-' || s[i] == '+')) {
+		if (s[i] == '-')
+			sign = -1;
+		i++;
+	}
+	while (i < len && s[i] >= '0' && s[i] <= '9') {
+		v = v * 10 + (s[i] - '0');
+		digits = 1;
+		i++;
+	}
+	if (i < len && s[i] == '.') {
+		i++;
+		while (i < len && s[i] >= '0' && s[i] <= '9') {
+			if (frac < 2) {
+				v = v * 10 + (s[i] - '0');
+				frac++;
+			}
+			i++;
+		}
+	}
+	while (frac < 2) {
+		v *= 10;
+		frac++;
+	}
+	if (!digits) {
+		*pos = i;
+		return 0;
+	}
+	if (i < len && s[i] == '%') {
+		*unit = 1;
+	} else if (i + 2 < len && s[i] == 'r' && s[i + 1] == 'e' &&
+		   s[i + 2] == 'm') {
+		*unit = 3;
+		i += 3;
+	} else if (i + 1 < len && s[i] == 'e' && s[i + 1] == 'm') {
+		*unit = 2;
+		i += 2;
+	} else {
+		v /= 100;
+	}
+	while (i < len && (s[i] == 'p' || s[i] == 'x' || s[i] == '%' ||
+			   s[i] == 'e' || s[i] == 'm' || s[i] == 'r' ||
+			   s[i] == 'a' || s[i] == 'd'))
+		i++;
+	*pos = i;
+	v *= sign;
+	if (v < -32768)
+		v = -32768;
+	if (v > 32767)
+		v = 32767;
+	return (int)v;
+}
+
 static int parse_margin_len(const char *s, unsigned int len,
-			    unsigned int *pos)
+			    unsigned int *pos, int *unit)
 {
 	unsigned int i = *pos;
 
@@ -2535,9 +2609,10 @@ static int parse_margin_len(const char *s, unsigned int len,
 	if (i + 4 <= len && ci_eq_n(s + i, "auto", 4) &&
 	    (i + 4 == len || is_space(s[i + 4]) || s[i + 4] == ';')) {
 		*pos = i + 4;
+		*unit = 4;
 		return CSS_LEN_AUTO;
 	}
-	return parse_len(s, len, pos);
+	return parse_css_len(s, len, pos, unit);
 }
 
 /* calc(P% +/- Npx) for the common width/margin forms. */
@@ -4334,43 +4409,53 @@ static void parse_decls(struct br_doc *d, const char *s,
 				}
 			}
 		} else if (str_eq(prop, "margin") || str_eq(prop, "padding")) {
-			int vals[4], nv = 0;
+			int vals[4], units[4], nv = 0;
 			unsigned int pos = 0;
 			int is_pad = prop[0] == 'p';
 			unsigned char base = is_pad ? PROP_PT : PROP_MT;
 
 			while (pos < vend - vstart && nv < 4) {
-				vals[nv++] = parse_margin_len(s + vstart,
-							      vend - vstart,
-							      &pos);
+				units[nv] = 0;
+				vals[nv] = parse_margin_len(s + vstart,
+							    vend - vstart,
+							    &pos, &units[nv]);
+				nv++;
 				while (pos < vend - vstart &&
 				       is_space(s[vstart + pos]))
 					pos++;
 			}
 			if (nv == 1) {
 				vals[1] = vals[2] = vals[3] = vals[0];
+				units[1] = units[2] = units[3] = units[0];
 			} else if (nv == 2) {
 				vals[2] = vals[0];
 				vals[3] = vals[1];
+				units[2] = units[0];
+				units[3] = units[1];
 			} else if (nv == 3) {
 				vals[3] = vals[1];
+				units[3] = units[1];
 			}
 			if (nv > 0) {
 				int k;
 
 				for (k = 0; k < 4; k++) {
 					int v = vals[k];
-					int au = 0;
+					int u = units[k];
+					int au = u == 4;
 
-					if (v == CSS_LEN_AUTO) {
-						au = 1;
+					if (au)
 						v = 0;
-					}
 					if (is_pad && au)
-						v = 0;
+						u = 0;
 					decl_add(out, nout,
 						 (unsigned char)(base + k), v,
 						 important);
+					decl_add(out, nout,
+						 (unsigned char)
+						 ((is_pad ? PROP_PT_U :
+							   PROP_MT_U) + k),
+						 u, important);
 					if (!is_pad && (k == 1 || k == 3))
 						decl_add(out, nout,
 							 k == 1 ? PROP_MR_AUTO :
@@ -4387,19 +4472,19 @@ static void parse_decls(struct br_doc *d, const char *s,
 			   str_eq(prop, "padding-bottom") ||
 			   str_eq(prop, "padding-left")) {
 			unsigned int pos = 0;
-			int v = parse_margin_len(s + vstart, vend - vstart, &pos);
+			int unit = 0;
+			int v = parse_margin_len(s + vstart, vend - vstart,
+						 &pos, &unit);
 			unsigned char p = PROP_MT;
 			const char *side;
-			int au = 0;
+			int au = unit == 4;
 
-			if (v == CSS_LEN_AUTO) {
-				au = 1;
+			if (au)
 				v = 0;
-			}
 			if (prop[0] == 'p') {
 				p = PROP_PT;
 				if (au)
-					v = 0;
+					unit = 0;
 			}
 			side = prop + (prop[0] == 'p' ? 8 : 7);
 			if (str_eq(side, "right"))
@@ -4409,6 +4494,12 @@ static void parse_decls(struct br_doc *d, const char *s,
 			else if (str_eq(side, "left"))
 				p = (unsigned char)(p + 3);
 			decl_add(out, nout, p, v, important);
+			decl_add(out, nout,
+				 (unsigned char)((prop[0] == 'p' ?
+						  PROP_PT_U : PROP_MT_U) +
+						 (p - (prop[0] == 'p' ?
+						       PROP_PT : PROP_MT))),
+				 unit, important);
 			if (str_eq(side, "right"))
 				decl_add(out, nout, PROP_MR_AUTO, au, important);
 			else if (str_eq(side, "left"))
@@ -5424,6 +5515,17 @@ static void apply_decl(struct br_style *st, const struct br_decl *dcl)
 	case PROP_PR: st->pr = dcl->val; break;
 	case PROP_PB: st->pb = dcl->val; break;
 	case PROP_PL: st->pl = dcl->val; break;
+	case PROP_MT_U:
+	case PROP_MR_U:
+	case PROP_MB_U:
+	case PROP_ML_U:
+	case PROP_PT_U:
+	case PROP_PR_U:
+	case PROP_PB_U:
+	case PROP_PL_U:
+		st->mp_unit[dcl->prop - PROP_MT_U] =
+			(unsigned char)dcl->val;
+		break;
 	case PROP_BORDER_W:
 		set_border_side_w(st, 0, dcl->val);
 		set_border_side_w(st, 1, dcl->val);
@@ -5635,6 +5737,8 @@ void br_style_for(struct br_doc *d, unsigned int node,
 	out->ml_auto = out->mr_auto = 0;
 	out->mt = out->mr = out->mb = out->ml = 0;
 	out->pt = out->pr = out->pb = out->pl = 0;
+	for (i = 0; i < 8; i++)
+		out->mp_unit[i] = 0;
 	out->flex_grow = out->flex_col = out->flex_wrap = 0;
 	out->justify = out->align_items = 0;
 	out->grid_ncols = out->grid_gap = out->grid_slot = 0;

+ 3 - 0
browser_html.h

@@ -143,6 +143,8 @@ struct br_style {
 	unsigned short line_h_px;   /* absolute px, 0 = default */
 	signed short mt, mb, ml, mr;
 	signed short pt, pb, pl, pr;
+	/* mt, mr, mb, ml, pt, pr, pb, pl: 0 px, 1 %, 2 em, 3 rem, 4 auto */
+	unsigned char mp_unit[8];
 };
 
 struct br_node {
@@ -264,6 +266,7 @@ int  br_tag_is_void(unsigned int tag);
 const char *br_tag_name(unsigned int tag);
 unsigned int br_tag_from_name(const char *name);
 const char *br_bg_image_url(unsigned int idx);
+unsigned int br_root_font_px(void);
 
 /* Runtime DOM helpers used by the JavaScript bindings.  br_find_id returns
  * node + 1 (0 means no match); br_text_content concatenates the subtree's

+ 24 - 12
js_browser.c

@@ -998,13 +998,18 @@ static void node_queryselectorall(js_State *state)
 
 static void node_getrect(js_State *state)
 {
+	unsigned int node = node_of(js_currentfunctiondata(state));
+	int x = 0, y = 0, w = 0, h = 0;
+
+	if (host.rect)
+		host.rect(node, &x, &y, &w, &h);
 	js_newobject(state);
-	js_pushnumber(state, 0); js_setproperty(state, -2, "top");
-	js_pushnumber(state, 0); js_setproperty(state, -2, "left");
-	js_pushnumber(state, 0); js_setproperty(state, -2, "right");
-	js_pushnumber(state, 0); js_setproperty(state, -2, "bottom");
-	js_pushnumber(state, 0); js_setproperty(state, -2, "width");
-	js_pushnumber(state, 0); js_setproperty(state, -2, "height");
+	js_pushnumber(state, y); js_setproperty(state, -2, "top");
+	js_pushnumber(state, x); js_setproperty(state, -2, "left");
+	js_pushnumber(state, x + w); js_setproperty(state, -2, "right");
+	js_pushnumber(state, y + h); js_setproperty(state, -2, "bottom");
+	js_pushnumber(state, w); js_setproperty(state, -2, "width");
+	js_pushnumber(state, h); js_setproperty(state, -2, "height");
 }
 
 static void node_noop(js_State *state)
@@ -1224,18 +1229,25 @@ static int node_has(js_State *state, void *p, const char *name)
 		{ push_func_data(state, "removeEventListener", node_noop, 2, node + 1); return 1; }
 	if (!strcmp(name, "dispatchEvent"))
 		{ push_func_data(state, "dispatchEvent", node_noop, 1, node + 1); return 1; }
-	if (!strcmp(name, "getBoundingClientRect")) {
-		node_getrect(state);
-		return 1;
-	}
+	if (!strcmp(name, "getBoundingClientRect"))
+		{ push_func_data(state, "getBoundingClientRect", node_getrect, 0, node + 1); return 1; }
 	if (!strcmp(name, "getClientRects")) {
 		js_newarray(state);
 		return 1;
 	}
 	if (!strcmp(name, "offsetWidth") || !strcmp(name, "offsetHeight") ||
 	    !strcmp(name, "clientWidth") || !strcmp(name, "clientHeight") ||
-	    !strcmp(name, "scrollWidth") || !strcmp(name, "scrollHeight") ||
-	    !strcmp(name, "scrollTop") || !strcmp(name, "scrollLeft")) {
+	    !strcmp(name, "scrollWidth") || !strcmp(name, "scrollHeight")) {
+		int x = 0, y = 0, w = 0, h = 0;
+
+		if (host.rect)
+			host.rect(node, &x, &y, &w, &h);
+		js_pushnumber(state, (!strcmp(name, "offsetHeight") ||
+				      !strcmp(name, "clientHeight") ||
+				      !strcmp(name, "scrollHeight")) ? h : w);
+		return 1;
+	}
+	if (!strcmp(name, "scrollTop") || !strcmp(name, "scrollLeft")) {
 		js_pushnumber(state, 0);
 		return 1;
 	}

+ 3 - 0
js_browser.h

@@ -14,6 +14,9 @@ struct js_browser_host {
 	void (*report)(const char *msg);
 	void (*navigate)(const char *url);
 	void (*changed)(void);
+	/* Viewport-relative border box for getBoundingClientRect(); returns 0
+	 * when the node has no laid-out box. */
+	int (*rect)(unsigned int node, int *x, int *y, int *w, int *h);
 	const char *page_url;   /* location.href for every script on the page */
 	unsigned int width;     /* viewport size for window.inner* */
 	unsigned int height;

+ 48 - 0
testdata/browser/compat/030-rowspan.html

@@ -0,0 +1,48 @@
+<!doctype html>
+<html>
+<head>
+<meta charset="utf-8">
+<title>030 table rowspan</title>
+<style>
+html, body { margin: 0; padding: 0; background: #ffffff; color: #202020; }
+body { font-family: sans-serif; font-size: 13px; }
+h1 { font-size: 20px; margin: 10px 0 4px 10px; }
+p { margin: 0 0 10px 10px; }
+.pane { float: left; width: 440px; margin-left: 10px; }
+.label { background: #eeeeee; padding: 4px 6px; margin-bottom: 4px; }
+.stage { background: #ffffff; padding: 8px; border: 1px solid #999999; }
+td { padding: 0; }
+.red { background: #cc3333; }
+.blue { background: #2244cc; }
+.green { background: #22aa44; }
+.cover { position: relative; width: 300px; height: 70px; }
+.box { position: absolute; }
+.after { background: #333333; color: #ffffff; height: 24px; margin-top: 8px; padding-left: 4px; }
+</style>
+</head>
+<body>
+<h1>030 &middot; table rowspan</h1>
+<p>The red cell must span both rows (70 px), beside a 30 px blue cell and a 40 px green cell.</p>
+<div class="pane">
+<div class="label">A: rowspan=2</div>
+<div class="stage">
+  <table style="width: 300px">
+    <tr><td class="red" rowspan="2" style="width: 100px"></td><td class="blue" style="height: 30px"></td></tr>
+    <tr><td class="green" style="height: 40px"></td></tr>
+  </table>
+  <div class="after">after</div>
+</div>
+</div>
+<div class="pane">
+<div class="label">B: absolute reference</div>
+<div class="stage">
+  <div class="cover">
+    <div class="box red" style="left: 0; top: 0; width: 100px; height: 70px"></div>
+    <div class="box blue" style="left: 100px; top: 0; width: 200px; height: 30px"></div>
+    <div class="box green" style="left: 100px; top: 30px; width: 200px; height: 40px"></div>
+  </div>
+  <div class="after">after</div>
+</div>
+</div>
+</body>
+</html>

+ 53 - 0
testdata/browser/compat/030a-rect.html

@@ -0,0 +1,53 @@
+<!doctype html>
+<html>
+<head>
+<meta charset="utf-8">
+<title>030a getBoundingClientRect</title>
+<style>
+html, body { margin: 0; padding: 0; background: #ffffff; color: #202020; }
+body { font-family: sans-serif; font-size: 13px; padding: 10px; }
+h1 { font-size: 20px; margin: 0 0 6px 0; }
+p { margin: 0 0 10px 0; }
+#box { width: 200px; height: 40px; background: #cc3333; }
+#below { height: 20px; background: #333333; color: #ffffff; }
+#stage { width: 300px; height: 100px; background: #eeeeee; margin-top: 10px; }
+#abs { position: absolute; left: 20px; top: 10px; width: 50px; height: 30px; background: #2244cc; }
+#pic { width: 100px; height: 60px; margin-top: 10px; }
+#result { margin-top: 12px; padding: 8px; background: #eeeeee; font-family: monospace; font-weight: bold; }
+</style>
+</head>
+<body>
+<h1>030a &middot; getBoundingClientRect</h1>
+<p>The result must say PASS. This page exercises block, absolute and image boxes.</p>
+<div id="box"></div>
+<div id="below">below</div>
+<div id="stage"><div id="abs"></div></div>
+<img id="pic" src="PIC.BMP" alt="pic">
+<div id="result">checking...</div>
+<script>
+function near(a, b) { return Math.abs(a - b) <= 2; }
+
+function check() {
+  var box = document.getElementById('box').getBoundingClientRect();
+  var below = document.getElementById('below').getBoundingClientRect();
+  var stage = document.getElementById('stage').getBoundingClientRect();
+  var abs = document.getElementById('abs').getBoundingClientRect();
+  var pic = document.getElementById('pic').getBoundingClientRect();
+  var ok = near(box.width, 200) && near(box.height, 40) &&
+           near(box.right - box.left, 200) &&
+           near(below.top - box.bottom, 0) &&
+           near(abs.width, 50) && near(abs.height, 30) &&
+           near(abs.left - stage.left, 20) &&
+           near(abs.top - stage.top, 10) &&
+           near(pic.width, 100) && near(pic.height, 60);
+  document.getElementById('result').textContent = ok ? 'PASS: rects match' :
+    ('FAIL: box=' + box.width + 'x' + box.height +
+     ' gap=' + (below.top - box.bottom) +
+     ' abs=' + (abs.left - stage.left) + ',' + (abs.top - stage.top) +
+     ' stageTop=' + stage.top + ' absTop=' + abs.top +
+     ' pic=' + pic.width + 'x' + pic.height);
+}
+setInterval(check, 500);
+</script>
+</body>
+</html>

+ 44 - 0
testdata/browser/compat/031-percent-padding.html

@@ -0,0 +1,44 @@
+<!doctype html>
+<html>
+<head>
+<meta charset="utf-8">
+<title>031 percentage padding and margin</title>
+<style>
+html, body { margin: 0; padding: 0; background: #ffffff; color: #202020; }
+body { font-family: sans-serif; font-size: 13px; }
+h1 { font-size: 20px; margin: 10px 0 4px 10px; }
+p { margin: 0 0 10px 10px; }
+.pane { float: left; width: 440px; margin-left: 10px; }
+.label { background: #eeeeee; padding: 4px 6px; margin-bottom: 4px; }
+.stage { background: #ffffff; padding: 8px; border: 1px solid #999999; }
+.outer { width: 400px; background: #eeeeee; }
+.red { height: 20px; background: #cc3333; }
+.em { font-size: 20px; width: 200px; height: 20px; }
+.after { background: #333333; color: #ffffff; height: 24px; margin-top: 8px; padding-left: 4px; }
+</style>
+</head>
+<body>
+<h1>031 &middot; percentage padding and margin</h1>
+<p>Both red boxes must have the same size and position (percentage padding and margins use the containing width).</p>
+<div class="pane">
+<div class="label">A: % padding/margin, then em</div>
+<div class="stage">
+  <div class="outer">
+    <div class="red" style="width: 200px; padding: 10%; margin-left: 10%"></div>
+    <div class="red em" style="padding: 1em; margin-left: 2em"></div>
+  </div>
+  <div class="after">after</div>
+</div>
+</div>
+<div class="pane">
+<div class="label">B: px reference</div>
+<div class="stage">
+  <div class="outer">
+    <div class="red" style="width: 200px; padding: 40px; margin-left: 40px"></div>
+    <div class="red em" style="padding: 20px; margin-left: 40px"></div>
+  </div>
+  <div class="after">after</div>
+</div>
+</div>
+</body>
+</html>

+ 32 - 0
testdata/browser/compat/033-forms.html

@@ -0,0 +1,32 @@
+<!doctype html>
+<html>
+<head>
+<meta charset="utf-8">
+<title>033 form controls</title>
+<style>
+html, body { margin: 0; padding: 0; background: #ffffff; color: #202020; }
+body { font-family: sans-serif; font-size: 13px; padding: 10px; }
+h1 { font-size: 20px; margin: 0 0 6px 0; }
+p { margin: 0 0 10px 0; }
+.row { margin: 6px 0; }
+label { margin-right: 8px; }
+input, select, textarea, button { font-family: sans-serif; font-size: 13px; }
+#result { margin-top: 10px; padding: 8px; background: #eeeeee; color: #000000; font-family: monospace; font-weight: bold; }
+</style>
+</head>
+<body>
+<h1>033 &middot; form controls</h1>
+<p>Render check: text, password, checkbox, radio, select, textarea, buttons, disabled.</p>
+<div class="row"><label>Text</label><input type="text" placeholder="type here"></div>
+<div class="row"><label>Value</label><input type="text" value="hello"></div>
+<div class="row"><label>Password</label><input type="password" value="secret"></div>
+<div class="row"><label>Number</label><input type="number" value="42"></div>
+<div class="row"><label>Check</label><input type="checkbox" checked> <label>Unchecked</label><input type="checkbox"></div>
+<div class="row"><label>Radio</label><input type="radio" name="r" checked> A <input type="radio" name="r"> B</div>
+<div class="row"><label>Select</label><select><option>One</option><option selected>Two</option><option>Three</option></select></div>
+<div class="row"><label>Textarea</label><textarea id="ta" rows="2">two lines of text</textarea></div>
+<div class="row"><button id="b1" type="button">Button</button> <button type="submit">Submit</button> <button type="reset">Reset</button></div>
+<div class="row"><label>Disabled</label><input type="text" value="no edit" disabled> <button disabled>Disabled</button></div>
+<div id="result">Click a control and type; the value should update.</div>
+</body>
+</html>

+ 12 - 0
testdata/browser/compat/034-form-submit.html

@@ -0,0 +1,12 @@
+<!doctype html>
+<html><head><meta charset="utf-8"><title>034 form submit</title>
+<style>html,body{margin:0;padding:0;background:#fff;color:#222;font-family:sans-serif;font-size:13px}body{padding:10px}h1{font-size:20px;margin:0 0 8px}form{margin-top:8px}input,select{margin-right:8px;font-size:13px}</style></head><body>
+<h1>034 &middot; form GET submission</h1>
+<p>Type in the text field and press Enter (or click Go). The URL should gain <code>?q=...&amp;c=yes&amp;s=b</code>.</p>
+<form action="/floppy1/034.htm" method="get">
+  <input type="text" name="q" value="hello">
+  <input type="checkbox" name="c" value="yes" checked>
+  <select name="s"><option value="a">One</option><option value="b" selected>Two</option></select>
+  <input type="submit" value="Go">
+</form>
+</body></html>

+ 4 - 4
testdata/browser/compat/README

@@ -17,10 +17,10 @@ Serve this directory from the host and open it on the board:
   browser http://<host>:8000/            # board
   browser http://10.0.2.2:8000/         # QEMU with -netdev user
 
-Status: 010-029 pass.  Still missing from the ladder: table rowspan,
-float text wrap/clear, @font-face, percentage margins/padding, and the
-full CSS background/transform property sets (the pages cover the forms
-that the engine implements).
+Status: 010-031, 033-034 and 030a pass.  Still missing from the ladder:
+float text wrap/clear, POST forms and JS form events, @font-face,
+background repeat/position/size, the rest of transform, sticky
+bottom/container clamping, and calc() beyond widths.
 
 Rules for new pages:
   - one behaviour per page;

+ 5 - 0
testdata/browser/compat/index.html

@@ -50,6 +50,11 @@ a { color: #0645ad; }
 <tr><td>027</td><td><a href="027-sticky.html">sticky</a></td><td>position: sticky top</td><td class="pass">PASS</td></tr>
 <tr><td>028</td><td><a href="028-background-image.html">background-image</a></td><td>background image stretched to the box</td><td class="pass">PASS</td></tr>
 <tr><td>029</td><td><a href="029-float-percent.html">percentage floats</a></td><td>float with width: 50%</td><td class="pass">PASS</td></tr>
+<tr><td>030</td><td><a href="030-rowspan.html">table rowspan</a></td><td>rowspan=2 cell beside two rows</td><td class="pass">PASS</td></tr>
+<tr><td>030a</td><td><a href="030a-rect.html">getBoundingClientRect</a></td><td>block, absolute and image rectangles</td><td class="pass">PASS</td></tr>
+<tr><td>031</td><td><a href="031-percent-padding.html">percentage padding</a></td><td>% padding/margins and em sizes</td><td class="pass">PASS</td></tr>
+<tr><td>033</td><td><a href="033-forms.html">form controls</a></td><td>text, password, checkbox, radio, select, textarea, buttons</td><td class="pass">PASS</td></tr>
+<tr><td>034</td><td><a href="034-form-submit.html">form submit</a></td><td>GET submission and reset</td><td class="pass">PASS</td></tr>
 </table>
 </body>
 </html>

Algúns arquivos non se mostraron porque demasiados arquivos cambiaron neste cambio