On 9/28/14 9:30 AM, Josh Matthews wrote:
Right, but that's predicated on the existence of Web Components which is
going to be a gigantic project in all likelihood. I'm just seeing how
useful some small form control code written in Rust ends up being, but
I'm stuck on the layout bits.

So I guess you could just hardcode a check to see whether the tag name is "input" in flow construction and if so add an InlineFlow with the appropriate UnscannedTextFragment. Then scan for runs on that text fragment. That's probably the easiest way.

Experimentation along these lines is fine, though I'm wary of adding too much hackery like this in the long run. One of the main sources of complexity in layout in other engines is that things that could have been implemented in the script layer with a few hooks are implemented directly in layout instead (contenteditable, the blink tag, etc).

Patrick

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

Reply via email to