How a border's line is drawn, or that it is not drawn.
'none' is the initial value, as in CSS, and it zeroes the used width rather
than skipping the paint: a node with border: 4 and no style neither draws a
border nor reserves room for one, so its content is not inset. Write 'solid'
to get a line.
This default follows CSS where Style.display's does not, on purpose.
A container defaults to 'flex' because these defaults serve a scene-building
API, and a border is something a caller asks for rather than switches off.
Neither is to be "corrected" into agreement with the other.
How a border's line is drawn, or that it is not drawn.
'none'is the initial value, as in CSS, and it zeroes the used width rather than skipping the paint: a node withborder: 4and no style neither draws a border nor reserves room for one, so its content is not inset. Write'solid'to get a line.This default follows CSS where Style.display's does not, on purpose. A container defaults to
'flex'because these defaults serve a scene-building API, and a border is something a caller asks for rather than switches off. Neither is to be "corrected" into agreement with the other.