Datasets:
image imagewidth (px) 1.28k 1.45k | text stringlengths 6.44k 31.8k |
|---|---|
<!DOCTYPE html>
<html><head><title>Sysinfo OLM to PST Converter (free version) download for PC</title></head><body class="p-program"><div class="container"><div class="header"><div class="header_block l"><div class="mobile_menu"></div><a class="logo_wrapper"><img class="logo lazy" height="37" src="//en.freedownloadman... | |
<!DOCTYPE html>
<html class="ltr"><head><title>SBY: Tak Ada yang Bisa Perintah Saya sebagai Presiden</title><noscript></noscript></head><body class="item"><div class="theme-options" style="display:none"><div class="sora-panel section" id="sora-panel"><div class="widget LinkList" id="LinkList70"></div><div class="widge... | |
<!DOCTYPE html>
<!DOCTYPE html>
<html><head> </head><body class="post-template-default single single-post postid-4521 single-format-standard wp-embed-responsive post-image-above-header post-image-aligned-center wp-schema-pro-2.7.10 no-sidebar nav-float-right one-container header-aligned-left dropdown-hover"><a class=... | |
<!DOCTYPE html>
<html><head><title>POS 10. MODALITA’ OPERATIVE PER L’UTILIZZO DELLE AREE SPERIMENTALI | Ricerca | Dipartimento di Neuroscienze, Psicologia, Area del Farmaco e Salute del Bambino (NEUROFARBA) | UniFI</title></head><body class="app" id="app"><div class="side"><div class="header-side"></div><div class="s... | |
<!DOCTYPE html>
<html><head></head><body class="archive tag tag-pg-slot tag-482 nirvana-image-two caption-simple nirvana-comment-placeholders nirvana-menu-left"><a class="skip-link screen-reader-text"> Skip to content </a><div class="hfeed" id="wrapper"><div id="topbar"><div id="topbar-inner"> <div class="socials" id=... | |
<!DOCTYPE html>
<html><head><title>Vacature software engineer | Careerdesq</title></head><body class="page-template page-template-page-templates page-template-cat_vacatures page-template-page-templatescat_vacatures-php page page-id-671"><noscript><iframe height="0" src="https://www.googletagmanager.com/ns.html?id=GTM-... | |
<!DOCTYPE html>
<html><head><title>Preparing Your Child for Testing – Handout | Explaining Brains</title></head><body class="page-template-default page page-id-8532 theme-Divi woocommerce-no-js et_bloom et_pb_button_helper_class et_fixed_nav et_show_nav et_primary_nav_dropdown_animation_fade et_secondary_nav_dropdown_... | |
<!DOCTYPE html>
<html><head><title>NHL 16 News, Guides, Wiki</title><noscript></noscript></head><body class="home"><div id="top-page"></div><amp-sidebar id="sidebar"><form class="menu-layer primary"><button class="close-button" id="menu-button"></button><div class="items"><a class="menu-item item-layer-2">Madden NFL 1... | |
"<!DOCTYPE html>\n\n<html><head><title>RESUME | melisscious</title></head><body class=\"\"><pages-cs(...TRUNCATED) | |
"<!DOCTYPE html>\n\n<html><head></head><body class=\"page-template-default page page-id-522 wp-embed(...TRUNCATED) |
🧠 CC-HARD: A Challenging Dataset for Design-to-Code Generation
📄 Paper on arXiv 📄 Paper on ACM
CC-HARD is a challenging benchmark dataset introduced in the KDD 2025 paper LaTCoder: Converting Webpage Design to Code with Layout-as-Thought. It was specifically designed to evaluate layout fidelity in webpage design-to-code generation.
The dataset consists of 128 webpage screenshots and their corresponding HTML/CSS code, manually curated from the Common Crawl corpus. Unlike prior datasets, CC-HARD emphasizes:
- Deep DOM hierarchies
- Visually complex and diverse layouts
- High tag density and structural variability
LaTCoder uses CC-HARD to demonstrate that existing MLLM-based design-to-code approaches struggle with layout preservation when faced with real-world webpages. This dataset provides a strong testbed for evaluating both general-purpose MLLMs and layout-aware code generation systems.
📦 Dataset Details
Each example in CC-HARD consists of:
image: A high-resolution PNG screenshot of a real-world webpage designtext: The corresponding HTML/CSS code used to render that design
Dataset Comparison: CC-HARD vs. Design2Code-HARD
We compare CC-HARD with Design2Code-HARD dataset across multiple structural and content dimensions. The following table summarizes the key statistics, as reported in the LaTCoder paper (Table 2):
| Metric | Design2Code-HARD | CC-HARD |
|---|---|---|
| Number of Samples | 80 | 128 |
| Avg. Total Length (tokens) | 8,900 ± 2,399 | 8,416 ± 2,190 |
| Avg. Text Length (tokens) | 3,554 ± 2,820 | 969 ± 762 |
| Avg. HTML Tags | 251 ± 232 | 274 ± 66 |
| Avg. DOM Depth | 10 ± 4 | 16 ± 3 |
| Avg. Unique Tags | 23 ± 5 | 27 ± 5 |
Key Differences and Analysis
As discussed in the paper:
- While overall token lengths of samples are similar across datasets, text content in Design2Code-HARD is much longer, meaning it emphasizes textual richness.
- In contrast, CC-HARD’s token budget is dominated by HTML structure, not content, making it harder for models to learn from context or infer layout from semantic cues.
- CC-HARD samples are structurally deeper (DOM depth 16 vs. 10), with more HTML tags and greater tag diversity, increasing layout reasoning complexity.
- CC-HARD features a larger number of nested layout blocks, which amplifies the difficulty for MLLMs in preserving spatial relationships and hierarchy during code generation.
As a result, models that perform well on Design2Code-HARD often struggle on CC-HARD — a trend clearly shown in the benchmark results. This highlights the increased layout sensitivity and real-world difficulty embedded in CC-HARD, making it a more suitable testbed for evaluating layout-aware design-to-code systems.
🧾 Citation
@inproceedings{gui2025latcoder,
author = {Gui, Yi and Li, Zhen and Zhang, Zhongyi and Wang, Guohao and Lv, Tianpeng and Jiang, Gaoyang and Liu, Yi and Chen, Dongping and Wan, Yao and Zhang, Hongyu and Jiang, Wenbin and Shi, Xuanhua and Jin, Hai},
title = {LaTCoder: Converting Webpage Design to Code with Layout-as-Thought},
year = {2025},
isbn = {9798400714542},
publisher = {Association for Computing Machinery},
address = {New York, NY, USA},
url = {https://doi.org/10.1145/3711896.3737016},
doi = {10.1145/3711896.3737016},
booktitle = {Proceedings of the 31st ACM SIGKDD Conference on Knowledge Discovery and Data Mining V.2},
pages = {721–732},
numpages = {12},
keywords = {code generation, design to code, ui automation},
location = {Toronto ON, Canada},
series = {KDD '25}
}
- Downloads last month
- 24