id
stringlengths
24
24
text
stringlengths
54
2.31k
task
stringclasses
8 values
phase
stringclasses
1 value
generator
stringclasses
1 value
group_id
stringlengths
14
18
prompt_chars
int64
45
2.16k
n_tokens
int64
24
865
text_sha256
stringlengths
64
64
meta
stringlengths
165
360
web_css-a58a3bba1b62171a
<|start|><|user|> Which declaration wins for width on the second <div> element in document order? Author origin only: !important beats normal, a style attribute beats rules, then higher specificity, then the later rule. Do not consider inherited values. Excerpt: HTML: <body class="label small"> <main id="footer" cla...
cascade
stable
deterministic
css|20261023|2780
1,100
386
35cbfb534b8fbd91c6f5ae13c2fde2fb1b4139bebae654a60d5a32b8a887a774
{"answer_form": "sentence", "frame_id": "casc:2", "gold": {"important": true, "n_cands": 1, "prop": "width", "value": "100%"}, "marker": "wrap:5", "presentation": "chat", "source": "generated", "stratum": "format:minified"}
web_css-c8371c69bbacc3f4
<|start|><|system|> You are a careful assistant. Follow the user's instructions exactly.<|eot|> <|user|> Specificity of the selector below? ``` #main ```<|eot|> <|assistant|> (1, 0, 0): 1 ID selector, 0 class / attribute / pseudo-class selectors, 0 type selectors.<|eot|> <|end|>
specificity
stable
deterministic
css|20261023|21298
176
70
2b789ace28e8b035c59f90d47ae51cc85f65f483f5a8613c4b2b41c00f44f0f2
{"answer_form": "sentence", "frame_id": "spec:5", "gold": {"spec": [1, 0, 0]}, "marker": "wrap:6", "presentation": "chat", "source": "generated", "stratum": "format:minified"}
web_css-8d72f9cb6f6a71d1
<|start|><|user|> Update the CSS below. Add "display: grid" as the last declaration of the rule for ".primary". Output the whole stylesheet, keeping its formatting. Passage: a, footer.primary > span#summary { margin-top: 4px; display: flex; } .primary { width: 20em; } footer.primary { background-color: lightgray; text...
edit
stable
deterministic
css|20261023|2167
434
226
f6d853c28c10ff9b38d7866383e3da646486091d790557e9825814f127864176
{"answer_form": "structured", "frame_id": "edit:2:add", "gold": {"op": "add", "rule": 1}, "marker": "wrap:3", "presentation": "chat", "source": "generated", "stratum": "format:compact"}
web_css-5cf5257bfd7f54ee
<|start|><|user|> What is the specificity of this selector? """ a[href="#top"] """<|eot|> <|assistant|> (0, 1, 1)<|eot|> <|end|>
specificity
stable
deterministic
css|20261023|2770
105
38
6ac61a0e9c6eb9461f39470581e39a0f55146cc614ebc69d1ec81c7f531a02fb
{"answer_form": "bare", "frame_id": "spec:0", "gold": {"spec": [0, 1, 1]}, "marker": "wrap:0", "presentation": "chat", "source": "generated", "stratum": "format:expanded2"}
web_css-b81b1e3780a8ef0c
<|start|><|user|> Edit the stylesheet. In the rule for "h1.alert", change text-align to justify. Output the whole stylesheet, keeping its formatting. """ h1, .small:last-child { border-color: #ccc; font-weight: 600; } .small { background-color: white; font-size: 14px; border-color: black; font...
edit
stable
deterministic
css|20261023|20125
726
501
93edee5e14903772e2bd36d209bed469b0e7f59ec8a95b6ab4e26f85d2623f69
{"answer_form": "structured", "frame_id": "edit:0:change", "gold": {"op": "change", "rule": 5}, "marker": "wrap:0", "presentation": "chat", "source": "generated", "stratum": "format:expanded4"}
web_css-f835bc5551e7f6c1
Query: Resolve text-align for the first <a> element in document order. Author origin only: !important beats normal, a style attribute beats rules, then higher specificity, then the later rule. Do not consider inherited values. --- HTML: <body> <nav id="header"> <a class="footer-link" href="#top">Updates</a> ...
cascade
stable
deterministic
css|20261023|26199
1,059
456
99dcc3d71bebcd77c7cce59ad9056e4716547bd611f7af91a228d395b71f3a8f
{"answer_form": "trace", "frame_id": "casc:4", "gold": {"important": false, "n_cands": 1, "prop": "text-align", "value": "center"}, "marker": "wrap:1|Query:", "presentation": "qa", "source": "generated", "stratum": "format:minified"}
web_css-8e41b4a45268205c
Write the equivalent longhand declarations. Keep the selector; one declaration per line, in the standard order (top, right, bottom, left). --- footer:not(.meta) { inset: 1em; } --- footer:not(.meta) { top: 1em; right: 1em; bottom: 1em; left: 1em; }
expand
stable
deterministic
css|20261023|3678
183
93
de53f893157f719934ce1dc3f213d0f51528cdb434bb99ead2521384d216600b
{"answer_form": "structured", "frame_id": "expand:4", "gold": {"longs": ["top: 1em", "right: 1em", "bottom: 1em", "left: 1em"], "short": "inset: 1em"}, "marker": "wrap:1", "presentation": "plain", "source": "generated", "stratum": "format:minified"}
web_css-593b7b95c4a7d879
Determine the text-align value that the <ul> element gets from these styles. Use the static cascade for author styles only (importance, then style attribute, then specificity, then source order). Ignore inheritance and user-agent defaults. Give just the value. ``` HTML: <body id="status" class="summary"> <header> ...
cascade
stable
deterministic
css|20261023|17859
1,339
452
257051017b9a639f1bba0dd7e92d9a2098c388cec7534fa81479caf3dc13e00b
{"answer_form": "bare", "frame_id": "casc:3", "gold": {"important": false, "n_cands": 1, "prop": "text-align", "value": "justify"}, "marker": "wrap:6", "presentation": "plain", "source": "generated", "stratum": "format:expanded4"}
web_css-c1c441ea519483a7
Question: Replace the shorthand with its longhand equivalents. Keep the selector; one declaration per line, in the standard order (top, right, bottom, left). Passage: ul li.title.card { padding: 8px 1em 1em auto; } Answer: ul li.title.card { padding-top: 8px; padding-right: 1em; padding-bottom: 1em; padding-l...
expand
stable
deterministic
css|20261023|27411
225
112
d038aec5a4a322a5f94870c7c33f1bfb4702b0b0f841cb5c24aaf5c0ee2ab42b
{"answer_form": "structured", "frame_id": "expand:2", "gold": {"longs": ["padding-top: 8px", "padding-right: 1em", "padding-bottom: 1em", "padding-left: auto"], "short": "padding: 8px 1em 1em auto"}, "marker": "wrap:3|Question:", "presentation": "qa", "source": "generated", "stratum": "format:expanded2"}
web_css-cff4df56c889204e
<|start|><|user|> What is the specificity of this selector? --- footer ---<|eot|> <|assistant|> (0, 0, 1): 0 ID selectors, 0 class / attribute / pseudo-class selectors, 1 type selector.<|eot|> <|end|>
specificity
stable
deterministic
css|20261023|12840
97
54
30fcba9f9dc296ecc5dae6e98e34e34a7e2dc14b969db0d45d37e33a2ccbf471
{"answer_form": "sentence", "frame_id": "spec:0", "gold": {"spec": [0, 0, 1]}, "marker": "wrap:1", "presentation": "chat", "source": "generated", "stratum": "format:minified"}
web_css-c72dd1097bd5af28
Q: Compute the selector's specificity as (a, b, c). ``` li.badge ``` A: (0, 1, 1)
specificity
stable
deterministic
css|20261023|7044
73
39
ad3aa0e11f5d0bff9c2a8bfa3d61d88e36849cd38182895ba102793c9c57421f
{"answer_form": "bare", "frame_id": "spec:1", "gold": {"spec": [0, 1, 1]}, "marker": "wrap:6|Q:", "presentation": "qa", "source": "generated", "stratum": "format:minified"}
web_css-59939239e688c421
<|start|><|user|> Produce the expanded form: one declaration per line, two-space indent, closing brace on its own line, no comments version of this stylesheet. Keep rule and declaration order. Excerpt: #notice ul#intro { text-align: left; color: #1a1a1a; font-size: small; } #notice ul.badge.card { font-weight: normal;...
reformat
stable
deterministic
css|20261023|28682
674
456
e6f4393c06a6f1700c3ed5257e0cda236afc7f44bac9160ca2219d7760737a63
{"answer_form": "structured", "frame_id": "fmt:3:expanded2", "gold": {"target": "expanded2"}, "marker": "wrap:5", "presentation": "chat", "source": "generated", "stratum": "format:compact"}
web_css-8d525089d6664537
Compute the selector's specificity as (a, b, c). Excerpt: div:first-child (0, 1, 1): 0 ID selectors, 1 class / attribute / pseudo-class selector, 1 type selector.
specificity
stable
deterministic
css|20261023|14145
76
58
691611cdb9f1a20d62ab639bdd4b9b137c2992dcbad7a0fe5ceb3e5bc2b20e2a
{"answer_form": "sentence", "frame_id": "spec:1", "gold": {"spec": [0, 1, 1]}, "marker": "wrap:5", "presentation": "plain", "source": "generated", "stratum": "format:minified"}
web_css-33869c7966dffa53
Request: Edit the stylesheet. In the rule for ".muted", change padding-left to 0. Output the whole stylesheet, keeping its formatting. Passage: nav.muted:last-child{color:red;padding-left:6px}a{text-align:justify;color:#000;font-size:0.9rem}#search{background-color:yellow}.muted{text-align:center;padding-left:1rem}.fo...
edit
stable
deterministic
css|20261023|17376
548
407
2c747485984b488e3b9e79ee5c702016ffa1a4e5898231ea067ec58feab6b090
{"answer_form": "structured", "frame_id": "edit:0:change", "gold": {"op": "change", "rule": 3}, "marker": "wrap:3|Request:", "presentation": "qa", "source": "generated", "stratum": "format:minified"}
web_css-a5ab4496191bc35c
<|start|><|user|> How specific is this selector? Answer as a triple. Excerpt: header .label<|eot|> <|assistant|> (0, 1, 1): 0 ID selectors, 1 class / attribute / pseudo-class selector, 1 type selector.<|eot|> <|end|>
specificity
stable
deterministic
css|20261023|28852
114
61
e571c1b905c6ece3b3c15ec5be1ebf579a016e77f9e28396e294408043c48555
{"answer_form": "sentence", "frame_id": "spec:4", "gold": {"spec": [0, 1, 1]}, "marker": "wrap:5", "presentation": "chat", "source": "generated", "stratum": "format:compact"}
web_css-506476787e1c6aad
Request: List the elements the selector selects. Describe each by id, or by tag and position in document order. --- HTML: <body id="header"> <nav id="notice"> <ul class="footer-link active"> <li class="muted">Fees <a id="status" class="muted" href="/help">Contact us</a> </li> <li id="ma...
matches
stable
deterministic
css|20261023|15458
644
231
fd0d38c9b9ea57d922df35494c31dbb6a6f756ffdc81e4113e93bf09562b8370
{"answer_form": "sentence", "frame_id": "match:1", "gold": {"k": [4]}, "marker": "wrap:1|Request:", "presentation": "qa", "source": "generated", "stratum": "format:expanded2"}
web_css-015c3c753a1de418
Instruction: Modify the CSS as requested. In the rule for ".section", change width to 100%. Output the whole stylesheet, keeping its formatting. Text: .section { font-weight: 400; width: 50%; margin-top: 12px; padding-left: 1rem; } main#terms { margin-top: 4px; } .section > p.highlight.notice { font-size: 12px; border...
edit
stable
deterministic
css|20261023|17377
744
534
12733ed02241bd6c0d998bee6aaed1d61f22267f161bd9aac060662353efea0c
{"answer_form": "structured", "frame_id": "edit:4:change", "gold": {"op": "change", "rule": 0}, "marker": "wrap:2|Instruction:", "presentation": "qa", "source": "generated", "stratum": "format:compact"}
web_css-bfe86c410446da61
Convert the CSS to minified form: no whitespace except inside values and descendant combinators, no comments, no final semicolon. Keep rule and declaration order. Excerpt: /* layout */ li.highlight:last-child { font-size: 14px; background-color: transparent; } /* overrides */ a.active, ul.warning.active { text-align: ...
reformat
stable
deterministic
css|20261023|879
787
512
33e1853355ce466414f380f3bacb68172ae32827d0913846bc7013eb213bb31a
{"answer_form": "structured", "frame_id": "fmt:2:minified", "gold": {"target": "minified"}, "marker": "wrap:5", "presentation": "plain", "source": "generated", "stratum": "format:compact"}
web_css-95644dc713f1538b
Convert the CSS to expanded form: one declaration per line, two-space indent, closing brace on its own line, no comments. Keep rule and declaration order. Excerpt: [href] { width: 50%; font-weight: 400; padding-left: 6px; } a#header { font-weight: 600; padding-left: 6px; margin-top: 1em; } footer a[href="/records"]:la...
reformat
stable
deterministic
css|20261023|3661
687
461
9a73e4ef43a80f7153540b5f09840d0bbfcb97fa028518a33fe26a4b5dcb47cd
{"answer_form": "structured", "frame_id": "fmt:2:expanded2", "gold": {"target": "expanded2"}, "marker": "wrap:5", "presentation": "plain", "source": "generated", "stratum": "format:compact"}
web_css-61a31d22084f50e7
<|start|><|user|> Calculate the specificity of the following CSS selector. Text: ul#nav<|eot|> <|assistant|> (1, 0, 1)<|eot|> <|end|>
specificity
stable
deterministic
css|20261023|2620
110
36
25c8b7b095626d89495f36b92a70ff9d781dee08558e8258359c1b05364e8f6c
{"answer_form": "bare", "frame_id": "spec:3", "gold": {"spec": [1, 0, 1]}, "marker": "wrap:2", "presentation": "chat", "source": "generated", "stratum": "format:expanded2"}
web_css-53a1b55aad2ebbf4
<|start|><|user|> What does this selector match in the HTML? Describe each by id, or by tag and position in document order. --- HTML: <body id="results" class="lead"> <nav id="footer" class="item"> <ul class="primary label"> <li class="note">Updates <span>Fees</span> </li> </ul> </nav> ...
matches
stable
deterministic
css|20261023|5390
375
128
a12b207913fe5d026018c48f3be701c850775d0a4df7c13bb90e1957ce3719f7
{"answer_form": "sentence", "frame_id": "match:2", "gold": {"k": [2]}, "marker": "wrap:1", "presentation": "chat", "source": "generated", "stratum": "format:expanded2"}
web_css-71fb9bc5d14f4f05
<|start|><|user|> Change the stylesheet. Add "width: 50%" as the last declaration of the rule for ".card". Output the whole stylesheet, keeping its formatting. --- a{background-color:#fff!important;font-weight:700!important;padding-left:6px}.note.active, [href]{font-size:16px}footer.card .active.note{margin-top:auto;b...
edit
stable
deterministic
css|20261023|20292
736
550
8392187d0335b4454fbf2984abda960356d3430e7eb1da683b54a3a1c797f310
{"answer_form": "structured", "frame_id": "edit:5:add", "gold": {"op": "add", "rule": 3}, "marker": "wrap:1", "presentation": "chat", "source": "generated", "stratum": "format:minified"}
web_css-1c006bbf85d5a052
Task: Specificity of the selector below? (:not() counts as its argument.) Excerpt: ul > li:not(.primary) Response: (0, 1, 2): 0 ID selectors, 1 class / attribute / pseudo-class selector, 2 type selectors.
specificity
stable
deterministic
css|20261023|28742
116
67
5fe56d7eacd1f89449ba400ca34b586f2e807e33252673fb41dc88238c090b4d
{"answer_form": "sentence", "frame_id": "spec:5", "gold": {"spec": [0, 1, 2]}, "marker": "wrap:5|Task:", "presentation": "qa", "source": "generated", "stratum": "format:expanded2"}
web_css-3e1d22f8444adb80
<|start|><|user|> Specificity of the selector below? Excerpt: footer<|eot|> <|assistant|> (0, 0, 1)<|eot|> <|end|>
specificity
stable
deterministic
css|20261023|4374
91
33
3492fdc8a06a25a1392cdb3add04b680d87d2fd4b8c00ccaf50440acc31c9a09
{"answer_form": "bare", "frame_id": "spec:5", "gold": {"spec": [0, 0, 1]}, "marker": "wrap:5", "presentation": "chat", "source": "generated", "stratum": "format:compact"}
web_css-8a5dda68c93530bd
<|start|><|user|> Expand the shorthand property. Keep the selector; one declaration per line, in the standard order (width, style, color). ``` main.card.label { border: 2px dotted red; } ```<|eot|> <|assistant|> main.card.label { border-width: 2px; border-style: dotted; border-color: red; }<|eot|> <|end|>
expand
stable
deterministic
css|20261023|29079
213
90
13321853a534e9b50668de3f98906236c9454be3c7d9829d58fba4e4024f91b7
{"answer_form": "structured", "frame_id": "expand:5", "gold": {"longs": ["border-width: 2px", "border-style: dotted", "border-color: red"], "short": "border: 2px dotted red"}, "marker": "wrap:6", "presentation": "chat", "source": "generated", "stratum": "format:expanded2"}
web_css-51cef5ea799cf692
Request: Find the syntax error in this CSS, if any. Line numbers are shown before the bars. ``` 1 | nav > .primary:last-child { 2 | font-weight: 700; 3 | margin-top: 12px; 4 | text-align: left; 5 | border-color: red; 6 | } 7 | .warning, p#terms { 8 | background-color: #222; 9 | font-si...
syntax
stable
deterministic
css|20261023|18613
864
402
b88b8bb9b5f2b7dfe15baa86013c14f0acdf133e3f606b38d5fe4fce7ad4b865
{"answer_form": "sentence", "frame_id": "syn:1", "gold": {"line": 28, "valid": false}, "marker": "wrap:6|Request:", "presentation": "qa", "source": "generated", "stratum": "format:expanded4"}
web_css-5d603c4ab9c9ffa1
<|start|><|user|> Change the stylesheet. In the rule for "main.badge section", change border-color to #ccc. Output the whole stylesheet, keeping its formatting. Excerpt: section > p:not(.menu) { text-align: center; display: inline-block; font-weight: 600; } ul .active.section:not(.card) { font-weight: bold; ...
edit
stable
deterministic
css|20261023|10715
596
404
1fdc319c8e7b9f3ac2c3cacc266aa4dc4f5818ec1c7c67183d67a0464b619ded
{"answer_form": "structured", "frame_id": "edit:5:change", "gold": {"op": "change", "rule": 5}, "marker": "wrap:5", "presentation": "chat", "source": "generated", "stratum": "format:expanded2"}
web_css-71f0ac5f6e91c64e
<|start|><|user|> What is the specificity of this selector? ``` #intro ```<|eot|> <|assistant|> (1, 0, 0): 1 ID selector, 0 class / attribute / pseudo-class selectors, 0 type selectors.<|eot|> <|end|>
specificity
stable
deterministic
css|20261023|3353
97
55
5885154a1cfa0a0c602b31f802498bcdf5f277c8af7378c1eaa83f5d261fabd6
{"answer_form": "sentence", "frame_id": "spec:0", "gold": {"spec": [1, 0, 0]}, "marker": "wrap:6", "presentation": "chat", "source": "generated", "stratum": "format:expanded2"}
web_css-cce25ac0f47a14df
### Task Which elements does the selector match? Describe each by id, or by tag and position in document order. Passage: HTML: <body> <div id="search"> <input id="content" type="submit" name="email"> <ul> <li class="summary alert">Records request</li> <li id="results">Submit <a id="summar...
matches
stable
deterministic
css|20261023|17567
968
336
76b6c5547f6ed9099ab12a0a7f05b42e4a29908c4f6c41743c53d54808259179
{"answer_form": "sentence", "frame_id": "match:0", "gold": {"k": [6, 17, 18]}, "marker": "wrap:3|### Task", "presentation": "qa", "source": "generated", "stratum": "format:expanded2"}
web_css-010627a476cc887b
<|start|><|user|> Reformat the stylesheet into compact form: one rule per line as 'selector { a: b; c: d; }', no comments. Keep rule and declaration order. Excerpt: div { margin-top: 1em; } div a:not(.card) { background-color: #222; width: 20em; color: #333; margin-top: 4px; } nav > a.item, ul li...
reformat
stable
deterministic
css|20261023|27555
552
344
343b096a873761258e171dc676d7b8c48303ff4ed5e8e897b5074cffce7d3586
{"answer_form": "structured", "frame_id": "fmt:0:compact", "gold": {"target": "compact"}, "marker": "wrap:5", "presentation": "chat", "source": "generated", "stratum": "format:expanded4"}
web_css-c5350b239d65db72
What is the cascaded padding-left for the <h1> element? Author origin only: !important beats normal, a style attribute beats rules, then higher specificity, then the later rule. Do not consider inherited values. ``` HTML: <body id="contact" class="lead highlight"> <header class="lead"> <h1>Hearing schedule</h1> ...
cascade
stable
deterministic
css|20261023|9937
986
412
f767ade8a205705a2161b6b06dbef17f263080c868b923eb442cf2b6499a727d
{"answer_form": "sentence", "frame_id": "casc:1", "gold": {"important": false, "n_cands": 1, "prop": "padding-left", "value": "2px"}, "marker": "wrap:6", "presentation": "plain", "source": "generated", "stratum": "format:minified"}
web_css-370531323f988ce3
<|start|><|user|> Edit the stylesheet. In the rule for "footer", change display to grid. Output the whole stylesheet, keeping its formatting. Excerpt: header { font-weight: 600; color: #000; margin-top: 0; font-size: 16px; } nav { width: auto; } header p { text-align: justify; background-color: #eef; f...
edit
stable
deterministic
css|20261023|5310
501
331
816a2767fffa96a26fa4311776a05b22cbf4f30b038725e877184abbc46f1609
{"answer_form": "structured", "frame_id": "edit:0:change", "gold": {"op": "change", "rule": 3}, "marker": "wrap:5", "presentation": "chat", "source": "generated", "stratum": "format:expanded2"}
web_css-bf2919787fb0a85a
<|start|><|user|> What is the cascaded display for the element with id "contact"? Author origin only: !important beats normal, a style attribute beats rules, then higher specificity, then the later rule. Do not consider inherited values. Text: HTML: <body id="header"> <nav> <ul id="main" class="label"> <li...
cascade
stable
deterministic
css|20261023|26214
1,414
544
6ae988daa5a3505b4900baee58723d499da16d1c21275a9bff0305d4fcdb50ef
{"answer_form": "sentence", "frame_id": "casc:1", "gold": {"important": true, "n_cands": 1, "prop": "display", "value": "inline"}, "marker": "wrap:2", "presentation": "chat", "source": "generated", "stratum": "format:expanded2"}
web_css-3e919bc1f4e67fad
Edit the stylesheet. In the rule for "div#nav > input[name="email"]", change display to flex. Output the whole stylesheet, keeping its formatting. Text: #nav { padding-left: 6px; display: inline-block; } div#nav > input[name="email"] { display: none; } #header { font-size: 120%; color: #1a1a1a; } p#notice...
edit
stable
deterministic
css|20261023|3365
596
424
2dbf4eb7323f90cdd63f6e2fbea86d182144d7d116ccf5c66eb9a706efff971a
{"answer_form": "structured", "frame_id": "edit:0:change", "gold": {"op": "change", "rule": 1}, "marker": "wrap:2", "presentation": "plain", "source": "generated", "stratum": "format:expanded2"}
web_css-8a28d1aae6fbdafb
[Task] Expand the shorthand into longhand properties. Keep the selector; one declaration per line, in the standard order (top, right, bottom, left). Text: a { inset: 5% 0 4px 4px; } [Response] a { top: 5%; right: 0; bottom: 4px; left: 4px; }
expand
stable
deterministic
css|20261023|2713
195
94
f3c0e1df6134e5b5625e3c137f73224dd250a7d5683bbdce269a0fd857f11879
{"answer_form": "structured", "frame_id": "expand:0", "gold": {"longs": ["top: 5%", "right: 0", "bottom: 4px", "left: 4px"], "short": "inset: 5% 0 4px 4px"}, "marker": "wrap:2|[Task]", "presentation": "qa", "source": "generated", "stratum": "format:expanded2"}
web_css-6ba3f6c22eefaf64
<|start|><|system|> You are a helpful assistant.<|eot|> <|user|> Which elements does the selector match? Describe each by id, or by tag and position in document order. ``` HTML: <body class="muted"> <nav class="summary badge"> <ul id="nav"> <li>Forms <span class="notice">Agenda</span> </li> ...
matches
stable
deterministic
css|20261023|12274
624
229
c04f75f9edb6c334ace6a4648e5164b9e00b8e329ddd902259b2b390a8d2012e
{"answer_form": "sentence", "frame_id": "match:0", "gold": {"k": [4, 8, 10]}, "marker": "wrap:6", "presentation": "chat", "source": "generated", "stratum": "format:expanded2"}
web_css-9fbd9403cd907108
Question: Make this change to the CSS. Add "width: auto" as the last declaration of the rule for "nav > ul". Output the whole stylesheet, keeping its formatting. <text> nav > ul { font-weight: 600; text-align: right; color: darkgreen; display: inline; } header > nav.summary { text-align: left; } header > p.warning { p...
edit
stable
deterministic
css|20261023|5352
580
378
12e5f1f3761381e3ad133b6462287fcf307634c38349246b3b858819a1c6bb57
{"answer_form": "structured", "frame_id": "edit:1:add", "gold": {"op": "add", "rule": 0}, "marker": "wrap:4|Question:", "presentation": "qa", "source": "generated", "stratum": "format:compact"}
web_css-5547e4c61a3ae2ed
List the elements the selector selects. Describe each by id, or by tag and position in document order. ``` HTML: <body> <nav> <ul id="main" class="muted"> <li id="summary">Home <a class="meta" href="/forms">Home</a> <span class="small badge">Filing deadlines</span> </li> <li id=...
matches
stable
deterministic
css|20261023|22757
1,030
355
be27e168ed771b43f8ce2b4126485507141b1f949aad7d6491a71c6ba18941ff
{"answer_form": "sentence", "frame_id": "match:1", "gold": {"k": [12]}, "marker": "wrap:6", "presentation": "plain", "source": "generated", "stratum": "format:minified"}
web_css-a743a213142a21b3
<|start|><|user|> Make this change to the CSS. Remove the width declaration from the rule for "li". Output the whole stylesheet, keeping its formatting. Passage: .highlight > button:not(.menu) { background-color: #f5f5f5; } .summary:last-child { background-color: #f5f5f5; font-size: 1.2em; } li { width: 100%; ...
edit
stable
deterministic
css|20261023|12249
574
367
af05cd5d4267cbf35991c92c571abb4c4344d63110cfba0169824863e02a1e84
{"answer_form": "structured", "frame_id": "edit:1:remove", "gold": {"op": "remove", "rule": 2}, "marker": "wrap:3", "presentation": "chat", "source": "generated", "stratum": "format:expanded2"}
web_css-0922e745d02afba7
[Task] Expand the shorthand into longhand properties. Keep the selector; one declaration per line, in the standard order (top, right, bottom, left). Excerpt: main.highlight .summary.menu .section.card { padding: 0 2rem auto; } [Response] main.highlight .summary.menu .section.card { padding-top: 0; padding-right: ...
expand
stable
deterministic
css|20261023|25145
240
124
b13c520ea7212db11b1bcfd939e6e732fc481a970dd2c7d191dcaeda83e288f9
{"answer_form": "structured", "frame_id": "expand:0", "gold": {"longs": ["padding-top: 0", "padding-right: 2rem", "padding-bottom: auto", "padding-left: 2rem"], "short": "padding: 0 2rem auto"}, "marker": "wrap:5|[Task]", "presentation": "qa", "source": "generated", "stratum": "format:expanded2"}
web_css-c7edafa1c0d09b7e
Determine the margin-top value that the element with id "menu" gets from these styles. Consider only the author stylesheet and the element's style attribute: no inheritance, no browser defaults, no layers. Give just the value. Excerpt: HTML: <body class="label"> <nav class="warning title"> <ul id="footer" class=...
cascade
stable
deterministic
css|20261023|14204
1,187
438
3f392f1d5ad6f6265be80812054d414913dc99a90b96acaac471b93eaa8cf47e
{"answer_form": "bare", "frame_id": "casc:3", "gold": {"important": true, "n_cands": 3, "prop": "margin-top", "value": "4px"}, "marker": "wrap:5", "presentation": "plain", "source": "generated", "stratum": "format:compact"}
web_css-0def91d5de72c554
<|start|><|user|> Apply the selector to the HTML: which elements? Describe each by id, or by tag and position in document order. <text> HTML: <body> <main id="footer"> <p class="lead warning">Annual report</p> <article class="menu section"> <span>Filing deadlines</span> <p id="nav" class="summary...
matches
stable
deterministic
css|20261023|12624
766
246
e983b6ca88c30f37695f3eefc8cefd3660e8bfd85013c03f04b0fcd4a7fd51bd
{"answer_form": "sentence", "frame_id": "match:3", "gold": {"k": [3]}, "marker": "wrap:4", "presentation": "chat", "source": "generated", "stratum": "format:minified"}
web_css-e7a1582e1bfe40ab
Request: Which value of display applies to the element with id "notice"? Resolve with the CSS cascade restricted to this stylesheet plus inline style (no inheritance, no defaults). <text> HTML: <body class="alert"> <header class="badge menu"> <p class="alert menu">Filing deadlines</p> <p class="item">Agenda<...
cascade
stable
deterministic
css|20261023|8196
1,300
497
fc9467fd8ccece9540a69563f6df70ee58d44f21be71bb33e014b92c102661ed
{"answer_form": "sentence", "frame_id": "casc:0", "gold": {"important": true, "n_cands": 1, "prop": "display", "value": "flex"}, "marker": "wrap:4|Request:", "presentation": "qa", "source": "generated", "stratum": "format:expanded2"}
web_css-01d6b1ceae01059d
<|start|><|system|> You are a careful assistant. Follow the user's instructions exactly.<|eot|> <|user|> Give the specificity (IDs, classes/attributes/pseudo-classes, types) of the selector. Passage: nav<|eot|> <|assistant|> (0, 0, 1)<|eot|> <|end|>
specificity
stable
deterministic
css|20261023|298
226
65
d71b7a1bf091676bfeda01bbfc98b25e569d0fdba440318a93f05d6a61953f5b
{"answer_form": "bare", "frame_id": "spec:2", "gold": {"spec": [0, 0, 1]}, "marker": "wrap:3", "presentation": "chat", "source": "generated", "stratum": "format:expanded4"}
web_css-be6e3f84f7c6f0bf
<|start|><|system|> You are a precise assistant for text and documents.<|eot|> <|user|> Change the stylesheet. Add "font-size: 0.9rem" as the last declaration of the rule for ".section". Output the whole stylesheet, keeping its formatting. Passage: header.item { margin-top: 4px !important; } header.item .section { ...
edit
stable
deterministic
css|20261023|18191
798
508
c0f381be03359be5a9e191257c91a387f3dcb77fa3c0098e3da0412ea189cd9a
{"answer_form": "structured", "frame_id": "edit:5:add", "gold": {"op": "add", "rule": 4}, "marker": "wrap:3", "presentation": "chat", "source": "generated", "stratum": "format:expanded2"}
web_css-8f536db7c94d6f13
Name every element matched by the selector. Describe each by id, or by tag and position in document order. Passage: HTML: <body> <main class="footer-link"> <p id="nav">Hearing schedule</p> <section class="alert"> <ul> <li class="primary">Submit</li> </ul> <div id="search" class="act...
matches
stable
deterministic
css|20261023|28138
769
263
ea234a6107c427c1639155a7eaf5a250dd68dae9110e7d3f1a622895833e51e7
{"answer_form": "sentence", "frame_id": "match:4", "gold": {"k": [11]}, "marker": "wrap:3", "presentation": "plain", "source": "generated", "stratum": "format:expanded2"}
web_css-b441eb26cf012b3a
Instruction: Find the winning border-color declaration for the second <h1> element in document order. Consider only the author stylesheet and the element's style attribute: no inheritance, no browser defaults, no layers. """ HTML: <body> <header id="notice"> <nav class="summary section"> <ul class="label s...
cascade
stable
deterministic
css|20261023|19795
1,582
636
1d59320a033515de86ae9781839719bde9247cf4ff1fda83f5b93bb3ec5815c3
{"answer_form": "trace", "frame_id": "casc:5", "gold": {"important": false, "n_cands": 1, "prop": "border-color", "value": "#999"}, "marker": "wrap:0|Instruction:", "presentation": "qa", "source": "generated", "stratum": "format:compact"}
web_css-d481e5d2eb2a7cc9
Determine the margin-top value that the second <ul> element in document order gets from these styles. Author origin only: !important beats normal, a style attribute beats rules, then higher specificity, then the later rule. Do not consider inherited values. Give just the value. <text> HTML: <body> <nav> <a id="s...
cascade
stable
deterministic
css|20261023|6415
1,098
409
4aeb62276188f3eeeeb3b8ef9356a5c72ca403f9ad69e0d0eee09b41085305a2
{"answer_form": "bare", "frame_id": "casc:3", "gold": {"important": false, "n_cands": 2, "prop": "margin-top", "value": "4px"}, "marker": "wrap:4", "presentation": "plain", "source": "generated", "stratum": "format:minified"}
web_css-fb29ad61a6f99070
<|start|><|user|> Rewrite the declaration as longhands. Keep the selector; one declaration per line, in the standard order (width, style, color). ``` footer { border: 2px dashed navy; } ```<|eot|> <|assistant|> footer { border-width: 2px; border-style: dashed; border-color: navy; }<|eot|> <|end|>
expand
stable
deterministic
css|20261023|11317
212
88
2b393c0d4bc32c8765582b3679fb971ddaa597711c3615cfec6cdd9f2f741e65
{"answer_form": "structured", "frame_id": "expand:1", "gold": {"longs": ["border-width: 2px", "border-style: dashed", "border-color: navy"], "short": "border: 2px dashed navy"}, "marker": "wrap:6", "presentation": "chat", "source": "generated", "stratum": "format:expanded2"}
web_css-50e3e1677a4508a2
Change the stylesheet. Remove the margin-top declaration from the rule for "p". Output the whole stylesheet, keeping its formatting. """ /* notice styles */ main.primary > section { background-color: #fff; } .small section.note { padding-left: 2px; } /* layout */ ul:last-child { font-size: 12px; } p.label { fo...
edit
stable
deterministic
css|20261023|4703
555
370
6ab52afab3f4e2390d875e8dc0cf1447ec83efbe49148b660303289020f00b4c
{"answer_form": "structured", "frame_id": "edit:5:remove", "gold": {"op": "remove", "rule": 4}, "marker": "wrap:0", "presentation": "plain", "source": "generated", "stratum": "format:expanded2"}
web_css-7d67d48eb8c757f4
What is the cascaded padding-left for the element with id "main"? Use the static cascade for author styles only (importance, then style attribute, then specificity, then source order). Ignore inheritance and user-agent defaults. Passage: HTML: <body class="alert"> <header id="search" class="menu"> <p id="intro" ...
cascade
stable
deterministic
css|20261023|20247
1,142
489
826a5e7f4ada30bc93447644b942e955030165643424210fd8dcc7b34544212f
{"answer_form": "trace", "frame_id": "casc:1", "gold": {"important": false, "n_cands": 2, "prop": "padding-left", "value": "1rem"}, "marker": "wrap:3", "presentation": "plain", "source": "generated", "stratum": "format:expanded2"}
web_css-f217cee0b812a02c
Instruction: Find the winning font-weight declaration for the element with id "content". Author origin only: !important beats normal, a style attribute beats rules, then higher specificity, then the later rule. Do not consider inherited values. """ HTML: <body id="footer"> <div class="summary"> <input id="terms"...
cascade
stable
deterministic
css|20261023|4906
1,267
530
14697d1f1ece32d0615fafa67436fefbc0edd2ee0d0b64b65e8b94ed9afca142
{"answer_form": "trace", "frame_id": "casc:5", "gold": {"important": false, "n_cands": 1, "prop": "font-weight", "value": "700"}, "marker": "wrap:0|Instruction:", "presentation": "qa", "source": "generated", "stratum": "format:minified"}
web_css-4c35c7d5c7174461
Find the winning display declaration for the first <p> element in document order. Resolve with the CSS cascade restricted to this stylesheet plus inline style (no inheritance, no defaults). Give just the value. Text: HTML: <body> <main class="menu lead"> <p class="note active">Office hours</p> <article id="s...
cascade
stable
deterministic
css|20261023|29487
1,352
476
ebb30632bdd2eb583273b8694d5b72ee352a32b232ee9018b87d44cef366366e
{"answer_form": "bare", "frame_id": "casc:5", "gold": {"important": false, "n_cands": 1, "prop": "display", "value": "inline"}, "marker": "wrap:2", "presentation": "plain", "source": "generated", "stratum": "format:compact"}
web_css-6550f9267696efad
<|start|><|user|> What does this selector match in the HTML? Describe each by id, or by tag and position in document order. Passage: HTML: <body> <main class="notice"> <div class="note"> <p id="results" class="card">Services</p> <button class="primary">Comment period</button> </div> <section ...
matches
stable
deterministic
css|20261023|18956
624
199
a3c032d943af6becace4c5584cf5ec20344731f92cccd7f2c6438fa38e94a754
{"answer_form": "sentence", "frame_id": "match:2", "gold": {"k": [6]}, "marker": "wrap:3", "presentation": "chat", "source": "generated", "stratum": "format:compact"}
web_css-919cf447d8472e3e
Request: Which value of margin-top applies to the <h1> element? Consider only the author stylesheet and the element's style attribute: no inheritance, no browser defaults, no layers. ``` HTML: <body class="active label"> <header class="note warning"> <h1 class="notice active">Home</h1> </header> </body> CSS: ...
cascade
stable
deterministic
css|20261023|15176
699
264
af0c355d9bf608294ae0637aefb0d471a67626d6f7b2b961c1220de8c61258da
{"answer_form": "sentence", "frame_id": "casc:0", "gold": {"important": false, "n_cands": 2, "prop": "margin-top", "value": "8px"}, "marker": "wrap:6|Request:", "presentation": "qa", "source": "generated", "stratum": "format:compact"}
web_css-9cea200864082970
### Task Write one shorthand declaration equivalent to these. Use the fewest values that keep the same meaning; keep the selector. Excerpt: ul > li { padding-top: 1em; padding-right: 4px; padding-bottom: 1em; padding-left: 4px; } ### Response ul > li { padding: 1em 4px; }
collapse
stable
deterministic
css|20261023|12419
253
96
b0b7f44911d36fa669c81513102a4c389ce9de375bb1ef222bd3ccd80c7acecf
{"answer_form": "structured", "frame_id": "collapse:4", "gold": {"longs": ["padding-top: 1em", "padding-right: 4px", "padding-bottom: 1em", "padding-left: 4px"], "short": "padding: 1em 4px"}, "marker": "wrap:5|### Task", "presentation": "qa", "source": "generated", "stratum": "format:expanded4"}
web_css-df66305ed535c66d
Question: Apply one edit to the stylesheet. In the rule for "li.highlight > #terms", change width to auto. Output the whole stylesheet, keeping its formatting. Excerpt: span:not(.card) { display: inline-block; margin-top: auto; font-weight: bold; } li.highlight > #terms { display: grid !important; width: 300px; } head...
edit
stable
deterministic
css|20261023|4927
508
300
bdf90cc881c5a2cf2f1b55c50a808d66826833f52ba35226366dc85533141f1c
{"answer_form": "structured", "frame_id": "edit:3:change", "gold": {"op": "change", "rule": 1}, "marker": "wrap:5|Question:", "presentation": "qa", "source": "generated", "stratum": "format:compact"}
web_css-b224d6220c78c51e
<|start|><|user|> Expand the shorthand into longhand properties. Keep the selector; one declaration per line, in the standard order (top, right, bottom, left). ``` a { margin: 12px 0 5% 2rem; } ```<|eot|> <|assistant|> a { margin-top: 12px; margin-right: 0; margin-bottom: 5%; margin-left: 2rem; }<|eot|> <|end|...
expand
stable
deterministic
css|20261023|28493
220
101
b1a0d4d19c8878d1eade458f774ae1ef865042d63720f23ef8598559cba50d4d
{"answer_form": "structured", "frame_id": "expand:0", "gold": {"longs": ["margin-top: 12px", "margin-right: 0", "margin-bottom: 5%", "margin-left: 2rem"], "short": "margin: 12px 0 5% 2rem"}, "marker": "wrap:6", "presentation": "chat", "source": "generated", "stratum": "format:expanded2"}
web_css-6489d196c2a2cbc3
<|start|><|user|> Is this stylesheet valid? If not, find the error. Line numbers are shown before the bars. <text> 1 | [href] { 2 | color: darkgreen; 3 | padding-left: 1rem; 4 | width: 300px; 5 | text-align: center; 6 | } 7 | 8 | nav ul.muted { 9 | margin-top: 8px !important; 10 | } 11 | 12 | head...
syntax
stable
deterministic
css|20261023|6555
873
391
de0461fd567a5d569d59ac524b833a99205dd6e6288437abae3f318f2a98e436
{"answer_form": "sentence", "frame_id": "syn:0", "gold": {"line": 36, "valid": false}, "marker": "wrap:4", "presentation": "chat", "source": "generated", "stratum": "format:expanded2"}
web_css-53332519c40ddf1c
### Task Find the winning border-color declaration for the <a> element. Use the static cascade for author styles only (importance, then style attribute, then specificity, then source order). Ignore inheritance and user-agent defaults. <text> HTML: <body> <nav class="meta card"> <a href="/records">Help</a> </na...
cascade
stable
deterministic
css|20261023|25598
866
420
defdd122f3b096cc04da834543a8f32f28dfddfc22c30e334303a0bffa36a992
{"answer_form": "trace", "frame_id": "casc:5", "gold": {"important": false, "n_cands": 2, "prop": "border-color", "value": "red"}, "marker": "wrap:4|### Task", "presentation": "qa", "source": "generated", "stratum": "format:compact"}
web_css-7dcd4ee728d1f99b
Expand the shorthand into longhand properties. Keep the selector; one declaration per line, in the standard order (top, right, bottom, left). """ ul { margin: 1em 5%; } """ ul { margin-top: 1em; margin-right: 5%; margin-bottom: 1em; margin-left: 5%; }
expand
stable
deterministic
css|20261023|17170
175
89
f674e15f1c7acbc972526a4a3f811d1e626dfc6f1f651d2a53e269b2c63c44c4
{"answer_form": "structured", "frame_id": "expand:0", "gold": {"longs": ["margin-top: 1em", "margin-right: 5%", "margin-bottom: 1em", "margin-left: 5%"], "short": "margin: 1em 5%"}, "marker": "wrap:0", "presentation": "plain", "source": "generated", "stratum": "format:compact"}
web_css-4cdac99e81461f9e
<|start|><|user|> Change the stylesheet. Remove the background-color declaration from the rule for "div.small a". Output the whole stylesheet, keeping its formatting. """ button.note.small:not(.muted) { border-color: red; color: navy; display: inline-block; } div { border-color: red; display: flex; width: 50%; } div.s...
edit
stable
deterministic
css|20261023|12585
465
246
c54ee0a5342f1d69b93c3faba62d80be303ebe3d89eb3bfcae06ce5c052422f3
{"answer_form": "structured", "frame_id": "edit:5:remove", "gold": {"op": "remove", "rule": 2}, "marker": "wrap:0", "presentation": "chat", "source": "generated", "stratum": "format:compact"}
web_css-aeed68b348171767
Question: Which nodes would querySelectorAll return? Describe each by id, or by tag and position in document order. <text> HTML: <body> <main id="contact"> <div class="menu"> <p class="section summary">Filing deadlines</p> </div> <p>Office hours</p> <section id="sidebar" class="alert"> <u...
matches
stable
deterministic
css|20261023|8594
674
233
3d89f2d486816bb0d35441e75fc4f54a2dcf1479b5ace5e5349f0718e625928b
{"answer_form": "sentence", "frame_id": "match:5", "gold": {"k": [12]}, "marker": "wrap:4|Question:", "presentation": "qa", "source": "generated", "stratum": "format:minified"}
web_css-e5f804351d59b0cb
Which nodes would querySelectorAll return? Describe each by id, or by tag and position in document order. Excerpt: HTML: <body> <footer> <p class="card">Board meeting</p> <a id="search" class="lead" href="/forms">Forms</a> <p class="footer-link">Annual report</p> </footer> </body> Selector: p.card 1 ...
matches
stable
deterministic
css|20261023|15847
318
122
be75d22038c701505df05d75025ae452fbbc34496814090c86061d00a2012683
{"answer_form": "sentence", "frame_id": "match:5", "gold": {"k": [2]}, "marker": "wrap:5", "presentation": "plain", "source": "generated", "stratum": "format:expanded2"}
web_css-38fd0d67939a52e2
Question: Change only the formatting to minified form: no whitespace except inside values and descendant combinators, no comments, no final semicolon. Keep rule and declaration order. """ main:not(.active) { color: rgb(20, 20, 20); width: 300px; } li.highlight { font-size: large; width: 50% !important; } main....
reformat
stable
deterministic
css|20261023|4489
473
272
07ad668fae4e07d970944d6553ec8c782a4b9fa625b42f5ec9d13aacf2669bc1
{"answer_form": "structured", "frame_id": "fmt:4:minified", "gold": {"target": "minified"}, "marker": "wrap:0|Question:", "presentation": "qa", "source": "generated", "stratum": "format:expanded2"}
web_css-5d46ab072350602a
Merge the longhand properties into their shorthand. Use the fewest values that keep the same meaning; keep the selector. Passage: main.menu.muted .muted { margin-top: 0; margin-right: 12px; margin-bottom: 4px; margin-left: 12px; } main.menu.muted .muted { margin: 0 12px 4px; }
collapse
stable
deterministic
css|20261023|19215
241
107
a20f3e8bf2c9059e7690fc307fb7320d034f0540b5bca745211590733d756590
{"answer_form": "structured", "frame_id": "collapse:5", "gold": {"longs": ["margin-top: 0", "margin-right: 12px", "margin-bottom: 4px", "margin-left: 12px"], "short": "margin: 0 12px 4px"}, "marker": "wrap:3", "presentation": "plain", "source": "generated", "stratum": "format:expanded2"}
web_css-d9893858dd1458b9
<|start|><|user|> Change only the formatting to minified form: no whitespace except inside values and descendant combinators, no comments, no final semicolon. Keep rule and declaration order. --- main > div.warning { font-size: 1.2em; font-weight: bold; } article span.summary { background-color: lightgray; te...
reformat
stable
deterministic
css|20261023|17686
871
520
edfc9b5bd63b29c092f2b5296dadf38d6c28f3b6cebe915089b50754c0830434
{"answer_form": "structured", "frame_id": "fmt:4:minified", "gold": {"target": "minified"}, "marker": "wrap:1", "presentation": "chat", "source": "generated", "stratum": "format:expanded2"}
web_css-c106b94cd4bbb8fe
Query: What is the specificity of this selector? <text> p:last-child </text> Result: (0, 1, 1): 0 ID selectors, 1 class / attribute / pseudo-class selector, 1 type selector.
specificity
stable
deterministic
css|20261023|2878
86
59
70ef02f93cd05e310c7d0d60c67d372930c7c400a6ec5a52a9b9234c9e48dbe0
{"answer_form": "sentence", "frame_id": "spec:0", "gold": {"spec": [0, 1, 1]}, "marker": "wrap:4|Query:", "presentation": "qa", "source": "generated", "stratum": "format:compact"}
web_css-2d59e2cc48b2f27f
<|start|><|user|> Apply the selector to the HTML: which elements? Describe each by id, or by tag and position in document order. <text> HTML: <body> <div> <ul class="badge muted"> <li class="meta">Updates</li> <li class="label">Annual report</li> </ul> </div> </body> Selector: div ul.muted </t...
matches
stable
deterministic
css|20261023|28523
346
122
ef5cf5af0c9149b124b97552df7c456a42a2cd0c505292963c7f67ff5df17d3e
{"answer_form": "sentence", "frame_id": "match:3", "gold": {"k": [2]}, "marker": "wrap:4", "presentation": "chat", "source": "generated", "stratum": "format:expanded2"}
web_css-4420cdc7f30af855
<|start|><|system|> You check your work before answering.<|eot|> <|user|> Determine the color value that the <li> element gets from these styles. Use the static cascade for author styles only (importance, then style attribute, then specificity, then source order). Ignore inheritance and user-agent defaults. <text> HTM...
cascade
stable
deterministic
css|20261023|745
879
308
0522f0fd5c1b07c95ded1df5a235161f1daff45d893407c9ccdcb0b2efae7d7f
{"answer_form": "sentence", "frame_id": "casc:3", "gold": {"important": false, "n_cands": 1, "prop": "color", "value": "gray"}, "marker": "wrap:4", "presentation": "chat", "source": "generated", "stratum": "format:compact"}
web_css-92380acff1245b8c
Which declaration wins for background-color on the <nav> element? Author origin only: !important beats normal, a style attribute beats rules, then higher specificity, then the later rule. Do not consider inherited values. Passage: HTML: <body class="item"> <div class="badge"> <span class="primary">Agenda</span> ...
cascade
stable
deterministic
css|20261023|24850
958
409
604630866e0f638d915f2c3acc90e9fb69039f1249997ed24719d75702d9b637
{"answer_form": "trace", "frame_id": "casc:2", "gold": {"important": false, "n_cands": 1, "prop": "background-color", "value": "white"}, "marker": "wrap:3", "presentation": "plain", "source": "generated", "stratum": "format:expanded2"}
web_css-fc5e115340daa595
Make this change to the CSS. Add "color: darkgreen" as the last declaration of the rule for "nav > ul". Output the whole stylesheet, keeping its formatting. Passage: nav > ul { display: inline-block; font-size: 0.9rem; font-weight: 600; } span { font-weight: normal; } .alert.active { text-align: left; } n...
edit
stable
deterministic
css|20261023|28888
561
377
3dc95580a640034bea86e2283b34cf3bdc2521dc8f04b97a04b0a08e9ed1cb7a
{"answer_form": "structured", "frame_id": "edit:1:add", "gold": {"op": "add", "rule": 0}, "marker": "wrap:3", "presentation": "plain", "source": "generated", "stratum": "format:expanded2"}
web_css-778451a205202162
Request: Merge the longhand properties into their shorthand. Use the fewest values that keep the same meaning; keep the selector. ``` main > section.card { top: 12px; right: 0; bottom: 1em; left: auto; } ``` Reply: main > section.card { inset: 12px 0 1em auto; }
collapse
stable
deterministic
css|20261023|3827
224
90
f0cfa862a8af17b14be50ed5dab2c5bd18ee920c37b273a691adc8d459a6979f
{"answer_form": "structured", "frame_id": "collapse:5", "gold": {"longs": ["top: 12px", "right: 0", "bottom: 1em", "left: auto"], "short": "inset: 12px 0 1em auto"}, "marker": "wrap:6|Request:", "presentation": "qa", "source": "generated", "stratum": "format:compact"}
web_css-3cd795124c5699b8
Which declaration wins for padding-left on the second <div> element in document order? Resolve with the CSS cascade restricted to this stylesheet plus inline style (no inheritance, no defaults). Text: HTML: <body class="notice"> <div class="lead"> <a href="/records">Home</a> </div> <nav class="summary"> ...
cascade
stable
deterministic
css|20261023|23010
1,254
492
c7f88fa1f1d8ac3d18e23fdd582cc0e9afd8933c48aa047f44a2bda4f222c9d3
{"answer_form": "trace", "frame_id": "casc:2", "gold": {"important": false, "n_cands": 1, "prop": "padding-left", "value": "0"}, "marker": "wrap:2", "presentation": "plain", "source": "generated", "stratum": "format:expanded4"}
web_css-2784975003eb6296
<|start|><|user|> Does this CSS contain an error? Name the line and problem. Line numbers are shown before the bars. Excerpt: 1 | .notice nav { 2 | font-weight: 600; 3 | font-size: 0.9rem; 4 | padding-left: 6px; 5 | margin-top: 4px; 6 | } 7 | header { 8 | border-color: black; 9 | width...
syntax
stable
deterministic
css|20261023|14239
951
399
bd23dbf99d381c6105ba1a9164d4271de565376e69d6223354ab3519a666ff71
{"answer_form": "sentence", "frame_id": "syn:3", "gold": {"line": 34, "valid": false}, "marker": "wrap:5", "presentation": "chat", "source": "generated", "stratum": "format:expanded4"}
web_css-581bae3a53907c4c
Instruction: Which value of color applies to the <a> element? Use the static cascade for author styles only (importance, then style attribute, then specificity, then source order). Ignore inheritance and user-agent defaults. ``` HTML: <body class="card"> <footer> <span class="warning">Office hours</span> <a ...
cascade
stable
deterministic
css|20261023|4762
660
296
345e9b79d5714691538884540fe86bccf6c7f0abeba413dca7f6886c5e17c93c
{"answer_form": "trace", "frame_id": "casc:0", "gold": {"important": false, "n_cands": 2, "prop": "color", "value": "gray"}, "marker": "wrap:6|Instruction:", "presentation": "qa", "source": "generated", "stratum": "format:expanded2"}
web_css-0baf5606ae728872
### Task Find the winning background-color declaration for the <a> element. Consider only the author stylesheet and the element's style attribute: no inheritance, no browser defaults, no layers. ``` HTML: <body class="card"> <header id="summary"> <nav class="title"> <a class="warning" href="/help">Filing d...
cascade
stable
deterministic
css|20261023|14078
991
429
4e2f3222863bd166d729708dc6dfb621fe6450c2ac1f7ec0e2796b76a452872f
{"answer_form": "trace", "frame_id": "casc:5", "gold": {"important": false, "n_cands": 1, "prop": "background-color", "value": "white"}, "marker": "wrap:6|### Task", "presentation": "qa", "source": "generated", "stratum": "format:expanded4"}
web_css-b529eeca3ac0f12d
<|start|><|system|> You check your work before answering.<|eot|> <|user|> How specific is this selector? Answer as a triple. """ ul """<|eot|> <|assistant|> (0, 0, 1)<|eot|> <|end|>
specificity
stable
deterministic
css|20261023|959
158
47
0d3dad61b367df34d2fa84c94059e6c63512fb6c0764f0e5af737ab4adc6edbb
{"answer_form": "bare", "frame_id": "spec:4", "gold": {"spec": [0, 0, 1]}, "marker": "wrap:0", "presentation": "chat", "source": "generated", "stratum": "format:expanded2"}
web_css-4ec8f82f6f20218d
<|start|><|user|> Produce the compact form: one rule per line as 'selector { a: b; c: d; }', no comments version of this stylesheet. Keep rule and declaration order. <text> nav > a { background-color: #eef !important; } nav.label > a[href="/forms"]:not(.lead), #footer:first-child { font-size: 0.9rem; text-align:...
reformat
stable
deterministic
css|20261023|14727
981
663
827d6ba221ba56de6427f60b5ba259d7a3ab156a750ba65f39185ac429915300
{"answer_form": "structured", "frame_id": "fmt:3:compact", "gold": {"target": "compact"}, "marker": "wrap:4", "presentation": "chat", "source": "generated", "stratum": "format:expanded2"}
web_css-e4dc59c315ab8be1
Question: List the elements the selector selects. Describe each by id, or by tag and position in document order. Passage: HTML: <body class="active"> <main id="notice"> <article> <p class="card">Agenda</p> </article> <section> <ul class="item badge"> <li id="menu" class="item">Fees</l...
matches
stable
deterministic
css|20261023|25265
701
246
48881918844775f88d1ec9235f39eab08fff5e505bbda64addcf0f6682f510fa
{"answer_form": "sentence", "frame_id": "match:1", "gold": {"k": [5]}, "marker": "wrap:3|Question:", "presentation": "qa", "source": "generated", "stratum": "format:compact"}
web_css-b2f3300d0a075313
Task: Merge the longhand properties into their shorthand. Use the fewest values that keep the same meaning; keep the selector. --- span.summary { top: 12px; right: 5%; bottom: 2rem; left: 5%; } --- Response: span.summary { inset: 12px 5% 2rem; }
collapse
stable
deterministic
css|20261023|16387
217
88
9c3156d79d73932b8f4e471de9fb8732923178deada7ae1e5274913952e374f5
{"answer_form": "structured", "frame_id": "collapse:5", "gold": {"longs": ["top: 12px", "right: 5%", "bottom: 2rem", "left: 5%"], "short": "inset: 12px 5% 2rem"}, "marker": "wrap:1|Task:", "presentation": "qa", "source": "generated", "stratum": "format:expanded2"}
web_css-8469702fb350419b
[Task] Change only the formatting to compact form: one rule per line as 'selector { a: b; c: d; }', no comments. Keep rule and declaration order. --- div > #header { font-weight: 400 !important; display: flex; border-color: currentColor; } li:not(.alert) { background-color: transparent !important; border-col...
reformat
stable
deterministic
css|20261023|19749
749
497
0540f878a58ecb2010f9ead117264a904e10494ed04340c55c3c02bb3caad52e
{"answer_form": "structured", "frame_id": "fmt:4:compact", "gold": {"target": "compact"}, "marker": "wrap:1|[Task]", "presentation": "qa", "source": "generated", "stratum": "format:expanded2"}
web_css-419a758180f6313e
Rewrite this CSS in expanded form: one declaration per line, two-space indent, closing brace on its own line, no comments. Keep rule and declaration order. --- article>p{background-color:#222}nav.meta{font-weight:400;width:100%;background-color:yellow}.meta{text-align:right;border-color:red}main.highlight>.notice{text...
reformat
stable
deterministic
css|20261023|28611
644
488
9e80209f839b95204d8c2617f8b236e7c47d01f75329f2fc01433789b86ad7d5
{"answer_form": "structured", "frame_id": "fmt:1:expanded2", "gold": {"target": "expanded2"}, "marker": "wrap:1", "presentation": "plain", "source": "generated", "stratum": "format:minified"}
web_css-60513275b6e8602b
Rewrite the declaration as longhands. Keep the selector; one declaration per line, in the standard order (top, right, bottom, left). <text> .active:first-child { inset: 8px 5%; } </text> .active:first-child { top: 8px; right: 5%; bottom: 8px; left: 5%; }
expand
stable
deterministic
css|20261023|7987
189
96
2169336acc82fb8242a6e87346284fea433771786f692056cdd82b34fc91073b
{"answer_form": "structured", "frame_id": "expand:1", "gold": {"longs": ["top: 8px", "right: 5%", "bottom: 8px", "left: 5%"], "short": "inset: 8px 5%"}, "marker": "wrap:4", "presentation": "plain", "source": "generated", "stratum": "format:expanded2"}
web_css-e9be464846c991e6
<|start|><|user|> Modify the CSS as requested. Add "width: 50%" as the last declaration of the rule for "ul, .footer-link". Output the whole stylesheet, keeping its formatting. Text: ul, .footer-link { padding-left: 1rem; border-color: black; display: grid; } nav.lead ul.footer-link { border-color: #999; fo...
edit
stable
deterministic
css|20261023|20653
530
340
8c78852c3c6fd9761671daa9c5740f85c290082f1a14dc546a0593be655a7da4
{"answer_form": "structured", "frame_id": "edit:4:add", "gold": {"op": "add", "rule": 0}, "marker": "wrap:2", "presentation": "chat", "source": "generated", "stratum": "format:expanded2"}
web_css-c8f97989c6978542
<|start|><|system|> You check your work before answering.<|eot|> <|user|> Calculate the specificity of the following CSS selector. --- nav.section ---<|eot|> <|assistant|> (0, 1, 1)<|eot|> <|end|>
specificity
stable
deterministic
css|20261023|20787
173
48
e3288109b15d2639a9e7905cd1529f8300045fbbb78ce207a42605f6f3d44c77
{"answer_form": "bare", "frame_id": "spec:3", "gold": {"spec": [0, 1, 1]}, "marker": "wrap:1", "presentation": "chat", "source": "generated", "stratum": "format:expanded2"}
web_css-a4eac66b6b118c92
Instruction: Which value of width applies to the element with id "notice"? Use the static cascade for author styles only (importance, then style attribute, then specificity, then source order). Ignore inheritance and user-agent defaults. Give just the value. ``` HTML: <body class="lead"> <header id="notice" class="a...
cascade
stable
deterministic
css|20261023|8843
1,116
386
87c1d0c2e73a725ead8f7856fd528a5076fe96adf34e9f3e80dcca089bf581c2
{"answer_form": "bare", "frame_id": "casc:0", "gold": {"important": false, "n_cands": 1, "prop": "width", "value": "20em"}, "marker": "wrap:6|Instruction:", "presentation": "qa", "source": "generated", "stratum": "format:compact"}
web_css-311ebe017374b644
List the elements the selector selects. Describe each by id, or by tag and position in document order. --- HTML: <body> <footer class="footer-link"> <a id="results" class="meta card" href="/help">Forms</a> <p class="item lead">Fees</p> <span>Hearing schedule</span> </footer> <main> <p id="sidebar...
matches
stable
deterministic
css|20261023|22563
518
188
2b694d4f43ff11421d89ce4b4f767cc16372dbda8dc11789505285ae261e74c7
{"answer_form": "sentence", "frame_id": "match:1", "gold": {"k": [7]}, "marker": "wrap:1", "presentation": "plain", "source": "generated", "stratum": "format:expanded4"}
web_css-479125682eaad039
Query: Merge the longhand properties into their shorthand. Use the fewest values that keep the same meaning; keep the selector. Passage: section:not(.card) { padding-top: 4px; padding-right: 4px; padding-bottom: 4px; padding-left: 4px; } Result: section:not(.card) { padding: 4px; }
collapse
stable
deterministic
css|20261023|11596
255
105
6eadf627cd7d11cb60862ee6cce78d7851cca1cfca7129d6aa870ec54c6feb41
{"answer_form": "structured", "frame_id": "collapse:5", "gold": {"longs": ["padding-top: 4px", "padding-right: 4px", "padding-bottom: 4px", "padding-left: 4px"], "short": "padding: 4px"}, "marker": "wrap:3|Query:", "presentation": "qa", "source": "generated", "stratum": "format:expanded2"}
web_css-38946e56fa1bab0a
Q: Which value of color applies to the first <footer> element in document order? Consider only the author stylesheet and the element's style attribute: no inheritance, no browser defaults, no layers. --- HTML: <body> <footer class="notice lead" style="color: navy !important"> <a class="footer-link" href="/forms"...
cascade
stable
deterministic
css|20261023|3098
1,154
449
bfc5630881d5935d1769799e09410275544294f1cf76eaa842aa8430958f8f59
{"answer_form": "sentence", "frame_id": "casc:0", "gold": {"important": true, "n_cands": 2, "prop": "color", "value": "navy"}, "marker": "wrap:1|Q:", "presentation": "qa", "source": "generated", "stratum": "format:minified"}
web_css-78adef7c5c30aefc
<|start|><|user|> Convert the longhands to a shorthand. Use the fewest values that keep the same meaning; keep the selector. --- .muted { border-top-left-radius: 8px; border-top-right-radius: 0; border-bottom-right-radius: 8px; border-bottom-left-radius: 0; } ---<|eot|> <|assistant|> .muted { border-radius: 8p...
collapse
stable
deterministic
css|20261023|7185
294
113
83af25fc066b2384005d6ba73d3a44ac4f24e424778622001539df9843664a3d
{"answer_form": "structured", "frame_id": "collapse:3", "gold": {"longs": ["border-top-left-radius: 8px", "border-top-right-radius: 0", "border-bottom-right-radius: 8px", "border-bottom-left-radius: 0"], "short": "border-radius: 8px 0"}, "marker": "wrap:1", "presentation": "chat", "source": "generated", "stratum": "for...
web_css-f3dc31a700de4490
Which elements does the selector match? Describe each by id, or by tag and position in document order. ``` HTML: <body class="notice"> <header class="highlight"> <h1 class="item lead">Fees</h1> </header> <nav class="lead"> <a href="#top">Office hours</a> <a class="alert" href="/forms">Fees</a> <u...
matches
stable
deterministic
css|20261023|21866
518
194
02abac6c4eb469e80abb43647f91f1115a44775bd821755c00bb286414b1ea82
{"answer_form": "sentence", "frame_id": "match:0", "gold": {"k": [1]}, "marker": "wrap:6", "presentation": "plain", "source": "generated", "stratum": "format:compact"}
web_css-fa5af06ce0e19e7f
Specificity of the selector below? Text: nav.warning.small > .item (0, 3, 1): 0 ID selectors, 3 class / attribute / pseudo-class selectors, 1 type selector.
specificity
stable
deterministic
css|20261023|17722
69
56
48727d90bee036a61658c2ae59457e1ae958c749a0fd679fa32201bae559776f
{"answer_form": "sentence", "frame_id": "spec:5", "gold": {"spec": [0, 3, 1]}, "marker": "wrap:2", "presentation": "plain", "source": "generated", "stratum": "format:minified"}
web_css-7070bd6665169098
Request: Find the winning font-weight declaration for the element with id "footer". Author origin only: !important beats normal, a style attribute beats rules, then higher specificity, then the later rule. Do not consider inherited values. ``` HTML: <body class="section"> <nav> <a href="/forms">Records request</...
cascade
stable
deterministic
css|20261023|13162
1,182
449
f2ee5eb8044f69a6bd2aa78dc9472c6e67af7c6b210ba34626afecd3e9b64f44
{"answer_form": "sentence", "frame_id": "casc:5", "gold": {"important": false, "n_cands": 1, "prop": "font-weight", "value": "600"}, "marker": "wrap:6|Request:", "presentation": "qa", "source": "generated", "stratum": "format:expanded2"}
web_css-b63523c388e69d69
Resolve font-weight for the element with id "footer". Resolve with the CSS cascade restricted to this stylesheet plus inline style (no inheritance, no defaults). Give just the value. Excerpt: HTML: <body id="content" class="primary item"> <footer class="muted note"> <a id="footer" href="/records">Records request...
cascade
stable
deterministic
css|20261023|20649
1,148
445
2ab3b7c3482d994fefd83d784566b09936fd255fb88b2ad14636a305345df989
{"answer_form": "bare", "frame_id": "casc:4", "gold": {"important": false, "n_cands": 4, "prop": "font-weight", "value": "400"}, "marker": "wrap:5", "presentation": "plain", "source": "generated", "stratum": "format:compact"}
web_css-4865251609642ae3
<|start|><|user|> Apply one edit to the stylesheet. In the rule for ".notice", change background-color to #f5f5f5. Output the whole stylesheet, keeping its formatting. --- header h1 { padding-left: 1rem; text-align: left; border-color: currentColor; } footer.notice { margin-top: 12px; color: #1a1a1a; backg...
edit
stable
deterministic
css|20261023|1679
825
572
2e25aab8d86ee127c036f263935f6f23dd590e0840f4234defe4b3bd6fe025ad
{"answer_form": "structured", "frame_id": "edit:3:change", "gold": {"op": "change", "rule": 5}, "marker": "wrap:1", "presentation": "chat", "source": "generated", "stratum": "format:expanded2"}
web_css-fafd3187bd2f8cb2
Task: Find the winning font-weight declaration for the <nav> element. Use the static cascade for author styles only (importance, then style attribute, then specificity, then source order). Ignore inheritance and user-agent defaults. <text> HTML: <body> <header> <h1 id="status">Agenda</h1> <nav class="meta"> ...
cascade
stable
deterministic
css|20261023|12740
951
400
58c92fdc004c9ceacadcaddfa27861134c82b66c835ef8e21c2127fdd2ea7759
{"answer_form": "trace", "frame_id": "casc:5", "gold": {"important": false, "n_cands": 1, "prop": "font-weight", "value": "700"}, "marker": "wrap:4|Task:", "presentation": "qa", "source": "generated", "stratum": "format:expanded2"}
web_css-53e07d4b33e1e4ad
<|start|><|user|> Check the CSS for a syntax mistake. Line numbers are shown before the bars. Passage: 1 | footer > span { 2 | display: flex; 3 | color: #333 !important; 4 | } 5 | 6 | footer:first-child { 7 | font-size: 14px; 8 | display: grid; 9 | border-color: currentColor !important; 10 | marg...
syntax
stable
deterministic
css|20261023|4494
572
251
1af0ff5db004e771a08c76634497daf0a5650c92fcfc1bd0e3b9646bf35123a5
{"answer_form": "sentence", "frame_id": "syn:2", "gold": {"line": null, "valid": true}, "marker": "wrap:3", "presentation": "chat", "source": "generated", "stratum": "format:expanded2"}
web_css-e9176bf9253add27
<|start|><|system|> You are a helpful assistant.<|eot|> <|user|> Resolve display for the first <a> element in document order. Author origin only: !important beats normal, a style attribute beats rules, then higher specificity, then the later rule. Do not consider inherited values. <text> HTML: <body id="terms"> <nav...
cascade
stable
deterministic
css|20261023|17850
1,791
639
cb694d96d2d48f7ccde66ca68bc4dc8b2e9a8a1317fb8ac476ec04571a397156
{"answer_form": "sentence", "frame_id": "casc:4", "gold": {"important": false, "n_cands": 1, "prop": "display", "value": "grid"}, "marker": "wrap:4", "presentation": "chat", "source": "generated", "stratum": "format:minified"}
web_css-ad4e2c6f5e946597
Spot the mistake in this CSS, or say it is fine. Line numbers are shown before the bars. Text: 1 | nav > [href] { 2 | font-size: small !important; 3 | width: 50%; 4 | } 5 | 6 | ul { 7 | font-size: 1.2em; 8 | width: auto; 9 | } 10 | 11 | ul .meta.card #summary:not(.title) { 12 | font-size: 1.2em; 1...
syntax
stable
deterministic
css|20261023|15335
847
457
90a4f37c8770695563e8588253885f64bfe4b870a4aced1e5a3aff66f80139ad
{"answer_form": "sentence", "frame_id": "syn:5", "gold": {"line": 27, "valid": false}, "marker": "wrap:2", "presentation": "plain", "source": "generated", "stratum": "format:expanded2"}