Intent to Deprecate: hspace/vspace attributes on table

63 views
Skip to first unread message

Philip Jägenstedt

unread,
Jul 28, 2014, 4:29:18 PM7/28/14
to blink-dev

Primary eng (and PM) emails

phi...@opera.com


Summary

Deprecate the hspace/vspace attributes on table, which are presentational attributes mapping to margin-left/right and margin-top/bottom respectively.


Motivation

There is a request to remove these from Simon Pieters:

https://code.google.com/p/chromium/issues/detail?id=277080


As described in the bug, these attributes aren't supported at all in IE, and only in quirks mode in Gecko. The spec bug is waiting for someone to make the first move:

Given the low usage, it seems worth trying.

Compatibility Risk

The margins around the table will be missing. This will likely not be catastrophic in most cases, but like any layout difference can be breaking.


Alternative implementation suggestion for web developers

Use CSS.


<table hspace="5"> => table { margin-left: 5px; margin-right: 5px; }


<table vspace="5"> => table { margin-top: 5px; margin-bottom: 5px; }

Usage information from UseCounter

vspace ~0.007%: http://www.chromestatus.com/metrics/feature/timeline/popularity/374

hspace ~0.005%: http://www.chromestatus.com/metrics/feature/timeline/popularity/375


Available in M38.

Entry on chromestatus.com, crbug.com, or MDN

None.


Requesting approval to remove too?

No, usage is low but still such that a deprecation message seems worthwhile.

Philip Jägenstedt

unread,
Jul 28, 2014, 5:32:45 PM7/28/14
to blink-dev
Correction: the use counters are available since M36, which has reached stable.

Tab Atkins Jr.

unread,
Jul 28, 2014, 8:05:02 PM7/28/14
to Philip Jägenstedt, blink-dev
Let's try for it. LGTM.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to blink-dev+...@chromium.org.

Eric Seidel

unread,
Jul 29, 2014, 12:45:37 AM7/29/14
to Tab Atkins Jr., Philip Jägenstedt, blink-dev
lgtm

Dimitri Glazkov

unread,
Jul 29, 2014, 12:56:29 AM7/29/14
to Eric Seidel, Tab Atkins Jr., Philip Jägenstedt, blink-dev
LGTM2

Jochen Eisinger

unread,
Jul 29, 2014, 5:03:09 AM7/29/14
to Dimitri Glazkov, Eric Seidel, Tab Atkins Jr., Philip Jägenstedt, blink-dev
lgtm3
Reply all
Reply to author
Forward
0 new messages