Skip to content

[css-text] 'tab-size' de facto applies to inline boxes #5489

@Loirooriol

Description

@Loirooriol

From https://drafts.csswg.org/css-text-3/#propdef-tab-size

Applies to: block containers

However, all Chromium, WebKit and Firefox also support it in inline boxes. Testcase

<!DOCTYPE html>
<div style="white-space: pre; tab-size: 100px; -moz-tab-size: 100px">
  A&#9;<span style="tab-size: 50px; -moz-tab-size: 50px">B&#9;C</span>
</div>

looks more or less like

A              B       C

So I guess the spec should be changed to reflect reality?

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions