You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
These tests assume that the default font-size on the generic monospace property of font-family is 13px. It is indeed 13px on Chrome and Firefox etc but this isn't part of any spec I can find, for instance in the suggested default css https://www.w3.org/TR/CSS21/sample.html. It is also configurable by the user which means it shouldn't be relied upon as a value for testing.
A possible solution is to set the font-size explicitly.
For context, this came about whilst implementing tab-size in the Ladybird browser, in which monospaced fonts are defaulted to 16px. Forcing 13px would pass the aforementioned test.
I'm not sure if this affects other tests that make this assumption that would have implications that could lead to inconsistent results across browsers that choose to make monospaced default values different.
The text was updated successfully, but these errors were encountered:
These tests assume that the default
font-size
on the genericmonospace
property offont-family
is13px
. It is indeed13px
on Chrome and Firefox etc but this isn't part of any spec I can find, for instance in the suggested default css https://www.w3.org/TR/CSS21/sample.html. It is also configurable by the user which means it shouldn't be relied upon as a value for testing.To illustrate, when tab size is a number, it depends on the advance width of the space character https://drafts.csswg.org/css-text/#tab-size-property, if a browser chooses to have monospaced fonts default to
16px
this will result in the green box overshooting the red box in https://wpt.live/css/css-text/tab-size/tab-size-spacing-001.html.A possible solution is to set the
font-size
explicitly.For context, this came about whilst implementing
tab-size
in the Ladybird browser, in which monospaced fonts are defaulted to16px
. Forcing13px
would pass the aforementioned test.I'm not sure if this affects other tests that make this assumption that would have implications that could lead to inconsistent results across browsers that choose to make monospaced default values different.
The text was updated successfully, but these errors were encountered: