LibWeb: Apply nowrap attribute as presentational hint

This commit is contained in:
Tim Ledbetter
2025-02-21 11:13:11 +00:00
committed by Sam Atkins
parent a4ee3fb1f0
commit d3c51ea05e
Notes: github-actions[bot] 2025-02-22 09:13:06 +00:00
3 changed files with 21 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
<!DOCTYPE html>
<link rel="help" href="https://html.spec.whatwg.org/#tables-2">
<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=821915">
<link rel="match" href="../../../../../../expected/wpt-import/html/rendering/non-replaced-elements/tables/table-cell-nowrap-with-fixed-width-ref.html">
<title>A td element with the nowrap attribute should unconditionally apply white-space:nowrap</title>
<style>
table { border-spacing: 0; }
td { width: 10px; padding: 0; }
div { display: inline-block; background: green; width: 50px; height: 100px; }
</style>
<table>
<td nowrap>
<div></div><div></div>
</td>
</table>