I started trying to implement really basic form controls, and I've become stuck on my under-developed layout knowledge. HTMLInputElement is special, because it has no DOM children and instead needs to perform layout based on its value attribute (which contains the current text). This seems similar to generated content from pseudo-elements, but I can't see a good way to reuse that code for this purpose (I guess it's done by iterating over fake children so flows are created). What's the best way to go about this?

Cheers,
Josh
_______________________________________________
dev-servo mailing list
dev-servo@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-servo

Reply via email to